Use emphemeral sounds
parent
b4363e9c1e
commit
fb8f0e4e36
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})
|
||||
minetest.sound_play( {name="dice2_dice_throw", gain=1 }, {pos=pos, loop=false}, false)
|
||||
return itemstack
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue