Add kill_mob and punch_entity triggers; it's now possible to create awards for killing mobs and punching entities

This commit is contained in:
Methacrylon
2018-06-14 07:54:44 +02:00
parent 21e1ce6675
commit d25e638cfb
3 changed files with 93 additions and 0 deletions

View File

@ -958,3 +958,35 @@ if minetest.get_modpath("nyancat") then
}
})
end
if minetest.get_modpath("mobs_animal") then
awards.register_award("mobs:kill_chicken", {
title = S("Chicken"),
description = S("A test award when mobs mod on"),
difficulty = 0.001,
trigger = {
type = "kill_mob",
mob = "mobs_animal:chicken",
target = 5
}
})
awards.register_award("mobs:kill_cow", {
title = S("Cows"),
description = S("A test award when mobs mod on"),
difficulty = 0.001,
trigger = {
type = "kill_mob",
mob = "mobs_animal:cow",
target = 5
}
})
awards.register_award("mobs:kill_all", {
title = S("All"),
description = S("A test award when mobs mod on"),
difficulty = 0.001,
trigger = {
type = "kill_mob",
target = 5
}
})
end