-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathscorpion.lua
72 lines (68 loc) · 2.3 KB
/
scorpion.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
local S = minetest.get_translator("animalworld")
mobs:register_mob("animalworld:scorpion", {
type = "monster",
passive = false,
attack_type = "dogfight",
attack_animals = true,
reach = 2,
damage = 10,
hp_min = 5,
hp_max = 30,
armor = 100,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.5, 0.4},
visual = "mesh",
mesh = "Scorpion.b3d",
visual_size = {x = 1, y = 1},
textures = {
{"texturescorpion.png"},
},
sounds = {
},
makes_footstep_sound = true,
view_range = 5,
walk_velocity = 0.5,
run_velocity = 2,
runaway = false,
stay_near = {{"livingdesert:date_palm_leaves", "mcl_core:deadbush", "mcl_core:cactus", "livingdesert:yucca", "default:dry_shrub", "livingdesert:figcactus_trunk", "livingdesert:coldsteppe_grass1", "livingdesert:cactus", "livingdesert:cactus3", "livingdesert:cactus2", "livingdesert:cactus4"}, 4},
jump = true,
jump_height = 0,
stepheight = 3,
drops = {
{name = "animalworld:raw_athropod", chance = 1, min = 0, max = 2},
},
water_damage = 1,
lava_damage = 4,
light_damage = 0,
fear_height = 3,
animation = {
speed_normal = 75,
stand_speed = 50,
stand_start = 0,
stand_end = 100,
walk_start = 100,
walk_end = 200,
punch_speed = 100,
punch_start = 200,
punch_end = 300,
die_start = 200,
die_end = 300,
die_speed = 50,
die_loop = false,
die_rotate = true,
},
})
if not mobs.custom_spawn_animalworld then
mobs:spawn({
name = "animalworld:scorpion",
nodes = {"default:desert_sand", "mcl_core:sand", "mcl_core:redsand", "default:desert_sandstone", "default:sandstone", "ethereal:dry_dirt", "ethereal:fiery_dirt", "naturalbiomes:bambooforest_litter", "livingdesert:coldsteppe_ground"},
neighbors = {"livingdesert:date_palm_leaves", "mcl_core:deadbush", "mcl_core:cactus", "livingdesert:yucca", "default:dry_shrub", "livingdesert:figcactus_trunk", "livingdesert:cactus", "livingdesert:cactus3", "livingdesert:cactus2", "livingdesert:cactus4", "livingdesert:saxaul_trunk", "naturalbiomes:bambooforest_groundgrass", "naturalbiomes:bambooforest_groundgrass2"},
min_light = 0,
interval = 60,
chance = 500, -- 15000
active_object_count = 2,
min_height = -20,
max_height = 50,
day_toggle = false,
})
end
mobs:register_egg("animalworld:scorpion", S("Scorpion"), "ascorpion.png")