drawtype="craftitemlike"

User avatar
MasterGollum
Member
 
Posts: 79
Joined: Thu Sep 27, 2012 14:48

drawtype="craftitemlike"

by MasterGollum » Mon Oct 15, 2012 16:14

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 :(
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Mon Oct 15, 2012 18:09

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.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Mon Oct 15, 2012 18:13

You can't animate nodeboxes.
 

User avatar
MasterGollum
Member
 
Posts: 79
Joined: Thu Sep 27, 2012 14:48

by MasterGollum » Mon Oct 15, 2012 18:18

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 :(
 

User avatar
MasterGollum
Member
 
Posts: 79
Joined: Thu Sep 27, 2012 14:48

by MasterGollum » Mon Oct 15, 2012 18:22

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.
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Mon Oct 15, 2012 18:57

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.
 

User avatar
MasterGollum
Member
 
Posts: 79
Joined: Thu Sep 27, 2012 14:48

by MasterGollum » Mon Oct 15, 2012 19:18

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.
 

User avatar
Mito551
Member
 
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Mon Oct 15, 2012 19:46

maybe you could use 3dfurniture way of drawing stuff?
 

User avatar
MasterGollum
Member
 
Posts: 79
Joined: Thu Sep 27, 2012 14:48

by MasterGollum » Mon Oct 15, 2012 19:49

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...".
 


Return to WIP Mods

Who is online

Users browsing this forum: Google [Bot] and 6 guests

cron