illuna/entities.lua

103 lines
2.5 KiB
Lua
Raw Normal View History

2018-12-28 18:21:07 +01:00
minetest.register_entity("illuna:rulehint", {
visual = "sprite",
visual_size = {x=3,y=3},
collisionbox = {0},
physical = false,
glow = 10,
textures = {"illuna_rulehint.png"},
})
minetest.register_entity("illuna:travelcenter_ne", {
visual = "sprite",
visual_size = {x=2.5,y=2.5},
collisionbox = {0},
physical = false,
glow = 10,
textures = {"illuna_travelcenter_ne.png"},
})
minetest.register_entity("illuna:travelcenter_nw", {
visual = "sprite",
visual_size = {x=2.5,y=2.5},
collisionbox = {0},
physical = false,
glow = 10,
textures = {"illuna_travelcenter_nw.png"},
})
minetest.register_entity("illuna:travelcenter_se", {
visual = "sprite",
visual_size = {x=2.5,y=2.5},
collisionbox = {0},
physical = false,
glow = 10,
textures = {"illuna_travelcenter_se.png"},
})
minetest.register_entity("illuna:travelcenter_sw", {
visual = "sprite",
visual_size = {x=2.5,y=2.5},
collisionbox = {0},
physical = false,
glow = 10,
textures = {"illuna_travelcenter_sw.png"},
})
minetest.register_entity("illuna:kingdom_entrance", {
visual = "sprite",
visual_size = {x=2.5,y=2.5},
collisionbox = {0},
physical = false,
glow = 10,
textures = {"illuna_kingdom_entrance.png"},
})
minetest.register_entity("illuna:market", {
visual = "sprite",
visual_size = {x=2.5,y=2.5},
collisionbox = {0},
physical = false,
glow = 10,
textures = {"illuna_market.png"},
})
2019-04-13 11:32:08 +02:00
mobs:register_mob("illuna:event_egg", {
type = "animal",
passive = true,
reach = 1,
2019-04-13 17:11:40 +02:00
hp_min = 80,
hp_max = 170,
2019-04-13 11:32:08 +02:00
armor = 600,
collisionbox = {-0.1, -0.12, -0.1, 0.1, 0.12, 0.1},
visual = "mesh",
mesh = "event_egg.obj",
textures = {
{"event_egg.png"},
},
visual_size = {x=2, y=2},
sounds = {},
makes_footstep_sound = false,
runaway = true,
jump = true,
2019-04-13 17:11:40 +02:00
walk_chance = 20,
walk_velocity = .4,
run_velocity = 2,
runaway_from = "player",
glow = 4,
2019-04-13 11:32:08 +02:00
stepheight = 0.6,
2019-04-13 17:11:40 +02:00
jump_chance = 18,
2019-04-13 11:32:08 +02:00
water_damage = 0,
lava_damage = 50,
light_damage = 0,
2019-04-13 17:11:40 +02:00
fear_height = 8,
2019-04-13 11:32:08 +02:00
view_range = 8,
drops = {
{name = "bows:arrow_rainbow", chance = 1, min = 2, max = 15},
{name = "mobs:egg", chance = 5, min = 1, max = 1},
{name = "illuna:donorcoin", chance = 22, min = 1, max = 1},
},
})
mobs:register_spawn("illuna:event_egg", {"default:grass_5"}, 20, 10, 700, 2, 31000, true)
2019-04-13 11:36:49 +02:00
mobs:register_egg("illuna:event_egg", "Event Egg", "event_egg_item.png", 0)