Push broken sheep for now

This commit is contained in:
oilboi 2020-06-01 23:35:52 -04:00
parent 5fa3842964
commit f63695d577
4 changed files with 61 additions and 0 deletions

View File

@ -74,6 +74,67 @@ mobs.register_mob(
}
)
mobs.register_mob(
{
mobname = "sheep",
physical = true,
collide_with_objects = false,
collisionbox = {-0.37, 0, -0.37, 0.37, 0.85, 0.37},
visual = "mesh",
visual_size = {x = 3, y = 3},
mesh = "sheep.b3d",
textures = {
--blank out the first two to create adult pig
"nothing.png","sheep.png"
},
--these are used to anchor a point to the head position
-----
head_bone = "head",
debug_head_pos = false,
head_directional_offset = 0.5, --used in vector.multiply(minetest.yaw_to_dir(body_yaw),head_offset)
head_height_offset = 0.8, --added to the base y position
--use this to correct the head position initially because it becomes severly offset - look at your blender model to get this perfect
head_position_correction = vector.new(0,3,-0.5),
--this is used to tell the game the orientation of the bone (swaps x to and y, then z and y)
head_coord = "horizontal",
-----
is_visible = true,
pointable = true,
automatic_face_movement_dir = 0,
automatic_face_movement_max_rotation_per_sec = 300,
makes_footstep_sound = false,
hp = 10,
gravity = {x = 0, y = -9.81, z = 0},
movement_type = "walk",
max_speed = 5,
state = 0,
view_distance = 15,
item_drop = "mob:raw_porkchop",
standing_frame = {x=0,y=0},
moving_frame = {x=0,y=40},
animation_multiplier = 20,
----
----
death_rotation = "x",
hurt_sound = "pig",
die_sound = "pig_die",
hostile = false,
attacked_hostile = false,
attack_type = "punch",
group_attack = true,
--explosion_radius = 4, -- how far away the mob has to be to initialize the explosion
--explosion_power = 7, -- how big the explosion has to be
--explosion_time = 3, -- how long it takes for a mob to explode
}
)
mobs.register_mob(
{

BIN
mods/mob/models/sheep.b3d Normal file

Binary file not shown.

BIN
mods/mob/textures/sheep.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB