1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- mobs:register_mob("mobs_flat:rat", {
- type = "animal",
- passive = true,
- attack_type = "dogfight",
- group_attack = true,
- pathfinding = true,
- reach = 0.5,
- damage = 1,
- hp_min = 1,
- hp_max = 4,
- armor = 200,
- collisionbox = {-0.4, -0.5, -0.4, 0.4, 0.2, 0.4},
- visual = "upright_sprite",
- drawtype = "side",
- textures = {
- "mobs_flat_rat.png",
- "mobs_flat_rat.png",
- },
- makes_footstep_sound = false,
- sounds = {
- random = "mobs_rat",
- },
- walk_velocity = 1,
- run_velocity = 2,
- jump = true,
- drops = {},
- water_damage = 1,
- lava_damage = 4,
- light_damage = 0,
- fear_height = 2,
- floats = 1,
- on_rightclick = function(self, clicker)
- mobs:capture_mob(self, clicker, 50, 90, 0, true, "mobs_flat:rat_caught")
- end,
- })
- mobs:spawn({
- name = "mobs_flat:rat",
- nodes = {"default:dirt_with_grass", "default:dirt"},
- chance = 70,
- active_object_count = 2
- })
- mobs:register_egg("mobs_flat:rat", "Rat", "default_gravel.png", 1)
|