register_decoration not working
I'm trying to create a simple mod where a new block will spawn above dirt and sand... I'm trying to use a code similar to what I found in the wiki in my init.lua, but it does not work. Nothing appears when the map is generated.
What is wrong here? (I know nothing about modding.. this is my first attempt. Hitherto, the only thing I was able to do successfully was to create a custom node)
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_decoration({
deco_type = "simple",
place_on = {"default:dirt", "default:dirt_with_grass", "default:sand"},
sidelen = 16,
fill_ratio = 0.1,
decoration = "whatever:whatever", -- I tried lots of different blocks here
})
What is wrong here? (I know nothing about modding.. this is my first attempt. Hitherto, the only thing I was able to do successfully was to create a custom node)