Add TRUE ephemeral sounds
parent
f7be8e81cf
commit
1feb5bbf1e
2
init.lua
2
init.lua
|
@ -16,7 +16,7 @@ function dice2.throw(pos, node, clicker, itemstack, pointed_thing)
|
|||
Don’t worry, the probability is still 1/6 for each facing direction. ]]
|
||||
newnode.param2 = math.random(0,23)
|
||||
minetest.swap_node(pos,newnode)
|
||||
minetest.sound_play( {name="dice2_dice_throw", gain=1 }, {pos=pos, loop=false}, false)
|
||||
minetest.sound_play( {name="dice2_dice_throw", gain=1 }, {pos=pos, loop=false}, true)
|
||||
return itemstack
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue