Page 1 of 1

drawtype="craftitemlike"

PostPosted: Mon Oct 15, 2012 16:14
by MasterGollum
It is any way to do that a node looks as a craftitem when it is placed? I was trying to do a scroll that supports writing (like the signs) but I want it looks like the book (smaller and it spins to face the player when he moves around).

I don't see any drawtype that fits what I want
http://www.rabbibob.com/index.php/Minetest:Drawtype

Alternatively I tried to add the events to the register_craftitem as the sign has (on_construct and on_receive_fields), but they don't work :(

PostPosted: Mon Oct 15, 2012 18:09
by PilzAdam
If you put items on the ground they arent nodes with a drawtype "craftitem", but they are entities. Read lua-api.txt to know how to create them.

PostPosted: Mon Oct 15, 2012 18:13
by Calinou
You can't animate nodeboxes.

PostPosted: Mon Oct 15, 2012 18:18
by MasterGollum
No I don't want to animate them, I mean just the look of the book. The book is very nice as decoration item, but useless. I thought I would be great to provide items with this kind of look more functionality. But maybe can't be done :(

PostPosted: Mon Oct 15, 2012 18:22
by MasterGollum
PilzAdam wrote:If you put items on the ground they arent nodes with a drawtype "craftitem", but they are entities. Read lua-api.txt to know how to create them.


I know how to create a craftitem, but I can't put text on it, or at least I don't know how to do it. I love how they look in game, so I thought it would be great to add them more functionality. But maybe can't be done as craftitem, for this I was trying to do it as node, but I didn't see anyway to make a node look as craftitem. Just I wanted an image that spins looking ever to the player just as the book does.

PostPosted: Mon Oct 15, 2012 18:57
by Mito551
maybe you could make a node and a craftitem. and link them. like dropping a craftitem and when you rightclick it, it places a node. two things. close to apple, perhaps.

PostPosted: Mon Oct 15, 2012 19:18
by MasterGollum
Mito551 wrote:maybe you could make a node and a craftitem. and link them. like dropping a craftitem and when you rightclick it, it places a node. two things. close to apple, perhaps.


Not sure if I know what you means, apples are plantlike drawn. Maybe I will just draw them as raillike, it is not what I wanted but well, for a scroll it can work and it will allow me to add text on it.

PostPosted: Mon Oct 15, 2012 19:46
by Mito551
maybe you could use 3dfurniture way of drawing stuff?

PostPosted: Mon Oct 15, 2012 19:49
by MasterGollum
Mito551 wrote:maybe you could use 3dfurniture way of drawing stuff?


Too much work and then it breaks the minimalist look of Minetest :)
Anyway don't worry, thank you so much for your ideas, it was just if I was missing something and someone could tell me "yes, just do this...".