Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on_use = function(itemstack, user, pointed_thing)
- local player
- if pointed_thing.type == "object" then
- if pointed_thing.ref:is_player() then
- player = pointed_thing.ref
- else return end
- else return end
- if not ace.goded[player:get_player_name()] then
- if player:get_hp() <= 0 then return end
- player:set_hp(player:get_hp() - math.random(1,3))
- if player:get_hp() <= 0 then
- do_death(user:get_player_name(), player:get_player_name(), "grounded")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement