This commit is contained in:
Functioning Member of Society 2022-11-21 19:01:27 -05:00
commit c2791bb267

View File

@ -397,6 +397,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()
@ -454,7 +467,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,
@ -462,5 +475,9 @@ minetest.register_on_joinplayer(function(player)
player:get_inventory():add_item("main", "poop:plumba")
player:get_inventory():add_item("main", "poop:pooper")
minetest.setting_set("time_speed", 0)
minetest.set_timeofday(0)
begining()
end)