brunob.santos wrote:I'm learning.
Because I could not put the music on the node?
The music in this folder of the mod in "sounds".
Can you explain how?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
-- mods/caixa/init.lua
minetest.register_node("caixa:caixa", {
description = "Caixa",
tiles = {"caixa_simples.png"},
is_ground_content = true,
groups = {cracky=3, stone=1},
drop = 'caixa:caixa',
legacy_mineral = true,
sounds = musica_caixa.ogg,
})
i think sounds needs registered sound tables - look in functions.lua in default