123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- mobs:register_mob("tmw_slimes:dark_slime", {
- group_attack = true,
- type = "monster",
- passive = false,
- attack_animals = true,
- attack_npcs = true,
- attack_monsters = false,
- attack_type = "dogfight",
- reach = 2,
- sounds = {random = "steps_in_the_mud_shorter",},
- damage = tmw_slimes.stronger_dmg,
- hp_min = 20,
- hp_max = 40,
- armor = 180,
- collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.4, 0.2},
- visual_size = {x = 2, y = 2},
- visual = "mesh",
- mesh = "slime_land.b3d",
- blood_texture = "tmw_slime_goo.png^[colorize:"..tmw_slimes.colors["dark"],
- textures = {
- {"tmw_slime_goo_block.png^[colorize:"..tmw_slimes.colors["dark"],"tmw_slime_goo_block.png^[colorize:"..tmw_slimes.colors["dark"],"tmw_slime_goo_block.png^[colorize:"..tmw_slimes.colors["dark"]},
- },
- makes_footstep_sound = false,
- walk_velocity = 0.5,
- run_velocity = 1.25,
- jump_height = 7,
- jump = true,
- view_range = 15,
- --fly_in = {"default:water_source", "default:water_flowing", "default:river_water_source", "default:river_water_flowing"},
- drops = {
- {name = "tmw_slimes:dark_goo", chance = 1, min = 0, max = 2},
- },
- water_damage = 0,
- lava_damage = 0,
- light_damage = 1,
- animation = {
- idle_start = 0,
- idle_end = 20,
- move_start = 21,
- move_end = 41,
- fall_start = 42,
- fall_end = 62,
- jump_start = 63,
- jump_end = 83
- },
- do_custom = function(self)
- --tmw_slimes.animate(self)
- tmw_slimes.absorb_nearby_items(self)
- end,
- on_die = function(self, pos)
- tmw_slimes.drop_items(self, pos)
- end
- })
- minetest.override_item("tmw_slimes:dark_goo", {on_use = function(item, player, ...)
- if tmw_slimes.poisoned_players then
- tmw_slimes.poisoned_players[player:get_player_name()] = 3
- minetest.item_eat(-5)(item, player,...)
- else
- minetest.item_eat(-20)(item, player,...)
- end
- end})
- if minetest.get_modpath("mythology") then
- minetest.register_craft({
- type = "cooking",
- output = "mythology:evil_matter",
- recipe = "tmw_slimes:dark_goo_block",
- cooktime = 40
- })
-
- end
- local g = table.copy(minetest.registered_nodes["tmw_slimes:dark_goo_block"].groups)
- g.harmful_slime = tmw_slimes.medium_dmg
- minetest.override_item("tmw_slimes:dark_goo_block", {groups=table.copy(g)})
- mobs:spawn({
- name = "tmw_slimes:dark_slime",
- nodes = {
- "default:stone"
- },
- min_light = 0,
- max_light = 7,
- chance = tmw_slimes.rare,
- active_object_count = tmw_slimes.rare_max,
- min_height = -31000,
- max_height = -1000,
- })
|