Add 1 XP when punching chicken

master
Solebull 2019-01-02 02:01:51 +01:00
parent b30cf2319e
commit 2a0a1f8f4f
2 changed files with 4 additions and 3 deletions

3
TODO
View File

@ -11,7 +11,8 @@ minetest-solebull - LGPL-2.1 - A PVP/faction game for minetest based on Cobalt.
* v0.0.2-4 (29 Dec. 2018 - ???) CLOC ???,???
- (6) Removed owner meta data from doors
- (7) Add 1 XP when punching chicken
- Removed owner meta data from doors
- Bump version to 0.0.2
- Now earning XPs for technic ores
- show_level mod works

View File

@ -69,8 +69,8 @@ mobs:register_mob("mobs_mc:chicken", {
end,
do_punch = function (self, hitter, time_from_last_punch,
tool_capabilities, direction)
minetest.log("error", "Chicken punched")
xpro.add_xp(hitter:get_player_name(), 1)
return true
end,
on_die = function(self, pos)