The source code link doesn't work for you?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
-- _______ _ _______
-- (_______) | | (_______) _
-- _____ ___ ____| | _ _____ ___ ____ ____ ____ ____ ____| |_
-- | ___) _ \ / ___) | / ) ___) _ \ / ___) _ |/ _ ) | _ \ / _ ) _)
-- | | | |_| | | | |< (| | | |_| | | ( ( | ( (/ / _| | | ( (/ /| |__
-- |_| \___/|_| |_| \_)_| \___/|_| \_|| |\____|_)_| |_|\____)\___)
-- (_____|
--
-- ######################################################################
-- LULZPACK | BLOCKFORGE 2#
-- ######################################################################
--
--
-- This project is granted under the zlib license.
-- You can modify or redistribute it under the zlib conditions.
pwned=function(player, drops)
pos=player:getpos()
itempos={x=pos.x,y=pos.y+1,z=pos.z}
local inv=player:get_inventory()
for i=1,32 do
local item=inv:get_stack("main", i)
for i=1,item:get_count() do
minetest.env:add_item(itempos,item:get_name()) end
inv:set_stack("main", i, nil)
for i=1,9 do inv:set_stack("craft", i,nil) end
inv:set_stack("craftpreview", 1,nil)
end
end
minetest.register_on_dieplayer(pwned)
I don't know how to hide text in a spoiler. Sorry :)