Compare commits

..

2 Commits

View File

@ -390,6 +390,19 @@ minetest.register_craftitem("poop:plumba", {
minetest.add_node(pointed_thing.under, {name="poop:box"})
minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.." shits!")
pooped_things = pooped_things + 1
if pooped_things == 100 then
-- stop first music loop
minetest.sound_stop(first_music)
-- play second music loop
minetest.sound_play("shit_all_over_the_place", {
gain = 1,
pitch = 1,
loop = true,
})
end
destruction_counter.nodesDestroyed = pooped_things
destruction_counter.updateCounter(user)
pakuj_guwno()
@ -447,7 +460,7 @@ minetest.register_on_joinplayer(function(player)
player:get_inventory():set_list("main", {})
-- set time to day
minetest.set_timeofday(0.5)
minetest.sound_play("pooping_together", {
first_music = minetest.sound_play("pooping_together", {
gain = 1,
pitch = 1,
loop = true,