Oh thank you! Now one more question...I been messin wit it only for like an hour now, but think I'm understanding a bit now.
I'm currently looking through more_ores mod and have stumbled across this...
Edited this part: Alright good thanks guys for this, but theres still more under this now! :/and how could I make it so I could obtain the node upon hitting it once with anything? O.e
Sorry, working on a flower mod so thats why I asked for the walkthrough as well. xD
This is what I got so far... still need help though xD
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
--[[
****
Flowers
by Lunarhiro
Version 1.0
****
--]]
-- Flowers
minetest.register_node( "flowers:flowers_flower_red", {
description = "Red Flower",
tile_images = { "flowers_flower_red.png" },
walkable = false,
inventory_inventory_image = minetest.inventorycube( "flowers_flower_red.png" ),
is_ground_content = true,
material = minetest.digprop_constanttime(0.5),
drop = 'craft "flowers:flowers_flower_red" 1',
})
-- Items
minetest.register_craftitem( "flowers:flowers_flower_red", {
description = "Red Flower",
inventory_image = "flowers_flower_red.png",
on_place_on_ground = minetest.craftitem_place_item,
})
Now I also...need to know, how can I make it spawn on top of grass? And how can I place the flower like if it was an actual ...well node? When I right click to drop it, it just falls down onto the floor like if I dropped iron or something xD. Thanks ;D