Set label for 'The Killer Bunny' as attribute

This commit is contained in:
Benjamin Schötz 2021-04-20 23:33:54 +02:00
parent fda2d41b4e
commit fe9c998ba2
1 changed files with 2 additions and 6 deletions

View File

@ -97,12 +97,8 @@ killer_bunny.replace_rate = nil
killer_bunny.replace_what = nil
killer_bunny.on_rightclick = nil
killer_bunny.run_velocity = 6
killer_bunny.do_custom = function(self)
if not self._killer_bunny_nametag_set then
self.nametag = S("The Killer Bunny")
self._killer_bunny_nametag_set = true
end
end
killer_bunny.nametag = S("The Killer Bunny")
mobs:register_mob("mobs_mc:killer_bunny", killer_bunny)