How do you make a node cuboid when dropped?

User avatar
InfinityProject
Member
 
Posts: 1009
Joined: Sat Mar 17, 2012 00:52

How do you make a node cuboid when dropped?

by InfinityProject » Thu Sep 06, 2012 02:04

Right now whenever I drop a node from one of my mods It's a 2d dummy image. What is needed to make it a 3d cube?
Example code of what I use:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_node ("cyro:kyroblock_off", {
    drawtype = draw,
    description = "Kyro Block Off",
    tile_images = {"kyro_block.png"},
    inventory_image = {"kyro_block.png"},
    sunlight_propagates = true,
    paramtype = 'light',
    walkable = true,
    material = minetest.digprop_constanttime(1.0),
    groups = {cracky=3,oddly_breakable_by_hand=12,}
   })
Last edited by InfinityProject on Thu Sep 06, 2012 02:05, edited 1 time in total.
 

celeron55
Member
 
Posts: 430
Joined: Tue Apr 19, 2011 10:10

by celeron55 » Thu Sep 06, 2012 05:31

Remove the inventory_image field.
 


Return to WIP Mods

Who is online

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

cron