Compare commits
3 Commits
742042729b
...
bcfc53e348
Author | SHA1 | Date | |
---|---|---|---|
bcfc53e348 | |||
0c97b63c2a | |||
2fcfe46ba8 |
@ -169,7 +169,7 @@ function destruction_counter.updateCounter(player)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local totalDestruction = destruction_counter.nodesDestroyed + math.floor(nodesDestroyedByHand / 10)
|
local totalDestruction = destruction_counter.nodesDestroyed + math.floor(nodesDestroyedByHand / 10)
|
||||||
local percentage = (totalDestruction / 200 * 4)
|
local percentage = (totalDestruction / 100 * 4)
|
||||||
if percentage > 100 then
|
if percentage > 100 then
|
||||||
percentage = 100
|
percentage = 100
|
||||||
end
|
end
|
||||||
@ -391,10 +391,12 @@ minetest.register_craftitem("poop:plumba", {
|
|||||||
local node = minetest.get_node(pointed_thing.under)
|
local node = minetest.get_node(pointed_thing.under)
|
||||||
-- check if node is poop
|
-- check if node is poop
|
||||||
if node.name == "poop:Poop" then
|
if node.name == "poop:Poop" then
|
||||||
|
pooped_things = pooped_things + 1
|
||||||
|
destruction_counter.nodesDestroyed = pooped_things
|
||||||
|
destruction_counter.updateCounter(user)
|
||||||
minetest.remove_node(pointed_thing.under)
|
minetest.remove_node(pointed_thing.under)
|
||||||
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.."/200 shits!")
|
||||||
pooped_things = pooped_things + 1
|
|
||||||
|
|
||||||
if pooped_things >= 100 then
|
if pooped_things >= 100 then
|
||||||
if(b == false)then
|
if(b == false)then
|
||||||
@ -410,18 +412,18 @@ minetest.register_craftitem("poop:plumba", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
destruction_counter.nodesDestroyed = pooped_things
|
|
||||||
destruction_counter.updateCounter(user)
|
|
||||||
pakuj_guwno()
|
pakuj_guwno()
|
||||||
return itemstack
|
return itemstack
|
||||||
else if node.name == "poop:Poop2" then
|
else if node.name == "poop:Poop2" then
|
||||||
|
pooped_things = pooped_things + 1
|
||||||
|
destruction_counter.nodesDestroyed = pooped_things
|
||||||
|
destruction_counter.updateCounter(user)
|
||||||
minetest.remove_node(pointed_thing.under)
|
minetest.remove_node(pointed_thing.under)
|
||||||
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!")
|
||||||
pakuj_guwno()
|
pakuj_guwno()
|
||||||
pooped_things = pooped_things + 1
|
|
||||||
destruction_counter.nodesDestroyed = pooped_things
|
|
||||||
destruction_counter.updateCounter(user)
|
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user