Compare commits
2 Commits
f733553652
...
303b434362
Author | SHA1 | Date | |
---|---|---|---|
303b434362 | |||
c809d45c39 |
@ -390,6 +390,19 @@ minetest.register_craftitem("poop:plumba", {
|
|||||||
minetest.add_node(pointed_thing.under, {name="poop:box"})
|
minetest.add_node(pointed_thing.under, {name="poop:box"})
|
||||||
minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.." shits!")
|
minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.." shits!")
|
||||||
pooped_things = pooped_things + 1
|
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.nodesDestroyed = pooped_things
|
||||||
destruction_counter.updateCounter(user)
|
destruction_counter.updateCounter(user)
|
||||||
pakuj_guwno()
|
pakuj_guwno()
|
||||||
@ -447,7 +460,7 @@ minetest.register_on_joinplayer(function(player)
|
|||||||
player:get_inventory():set_list("main", {})
|
player:get_inventory():set_list("main", {})
|
||||||
-- set time to day
|
-- set time to day
|
||||||
minetest.set_timeofday(0.5)
|
minetest.set_timeofday(0.5)
|
||||||
minetest.sound_play("pooping_together", {
|
first_music = minetest.sound_play("pooping_together", {
|
||||||
gain = 1,
|
gain = 1,
|
||||||
pitch = 1,
|
pitch = 1,
|
||||||
loop = true,
|
loop = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user