1
0
Fork 0

Add in unused head code elements

This commit is contained in:
jordan4ibanez 2021-04-25 20:46:45 -04:00
parent e52aab45c0
commit ddb33acf0d
7 changed files with 102 additions and 6 deletions

View File

@ -834,15 +834,15 @@ mobs.mob_step = function(self, dtime)
--DEBUG TIME! --DEBUG TIME!
--REMEMBER TO MOVE THIS AFTER DEATH CHECK --REMEMBER TO MOVE THIS AFTER DEATH CHECK
if self.has_head then --if self.has_head then
mobs.do_head_logic(self,dtime) -- mobs.do_head_logic(self,dtime)
end --end
if true then--DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG --if true then--DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG DEBUG
return -- return
end --end
--despawn mechanism --despawn mechanism
--don't despawned tamed or bred mobs --don't despawned tamed or bred mobs

View File

@ -19,6 +19,22 @@ mobs:register_mob("mobs_mc:pig", {
"mobs_mc_pig.png", -- base "mobs_mc_pig.png", -- base
"blank.png", -- saddle "blank.png", -- saddle
}}, }},
--head code
has_head = true,
head_bone = "head",
swap_y_with_x = false,
reverse_head_yaw = false,
head_bone_pos_y = 2.4,
head_bone_pos_z = 0,
head_height_offset = 1.1,
head_direction_offset = 0,
head_pitch_modifier = 0,
--end head code
visual_size = {x=2.5, y=2.5}, visual_size = {x=2.5, y=2.5},
makes_footstep_sound = true, makes_footstep_sound = true,
walk_velocity = 1, walk_velocity = 1,

View File

@ -78,6 +78,22 @@ mobs:register_mob("mobs_mc:sheep", {
makes_footstep_sound = true, makes_footstep_sound = true,
walk_velocity = 1, walk_velocity = 1,
run_velocity = 3, run_velocity = 3,
--head code
has_head = true,
head_bone = "head",
swap_y_with_x = false,
reverse_head_yaw = false,
head_bone_pos_y = 3.6,
head_bone_pos_z = -0.6,
head_height_offset = 1.0525,
head_direction_offset = 0.5,
head_pitch_modifier = 0,
--end head code
drops = { drops = {
{name = mobs_mc.items.mutton_raw, {name = mobs_mc.items.mutton_raw,
chance = 1, chance = 1,

View File

@ -34,6 +34,22 @@ local skeleton = {
"mcl_bows_bow_0.png", -- bow "mcl_bows_bow_0.png", -- bow
"mobs_mc_skeleton.png", -- skeleton "mobs_mc_skeleton.png", -- skeleton
} }, } },
--head code
has_head = false,
head_bone = "head",
swap_y_with_x = true,
reverse_head_yaw = true,
head_bone_pos_y = 2.4,
head_bone_pos_z = 0,
head_height_offset = 1.1,
head_direction_offset = 0,
head_pitch_modifier = 0,
--end head code
visual_size = {x=1, y=1}, visual_size = {x=1, y=1},
makes_footstep_sound = true, makes_footstep_sound = true,
textures = { textures = {

View File

@ -30,6 +30,22 @@ local wolf = {
rotate = 270, rotate = 270,
passive = false, passive = false,
group_attack = true, group_attack = true,
--head code
has_head = false,
head_bone = "head",
swap_y_with_x = false,
reverse_head_yaw = false,
head_bone_pos_y = 3.6,
head_bone_pos_z = -0.6,
head_height_offset = 1.0525,
head_direction_offset = 0.5,
head_pitch_modifier = 0,
--end head code
collisionbox = {-0.3, -0.00, -0.3, 0.3, 0.85, 0.3}, collisionbox = {-0.3, -0.00, -0.3, 0.3, 0.85, 0.3},
visual = "mesh", visual = "mesh",
mesh = "mobs_mc_wolf.b3d", mesh = "mobs_mc_wolf.b3d",

View File

@ -75,6 +75,22 @@ local zombie = {
damage = "mobs_mc_zombie_hurt", damage = "mobs_mc_zombie_hurt",
distance = 16, distance = 16,
}, },
--head code
has_head = false,
head_bone = "Head",
swap_y_with_x = true,
reverse_head_yaw = true,
head_bone_pos_y = 2.4,
head_bone_pos_z = 0,
head_height_offset = 1.1,
head_direction_offset = 0,
head_pitch_modifier = 0,
--end head code
eye_height = 1.65, eye_height = 1.65,
walk_velocity = 1, walk_velocity = 1,
run_velocity = 3.5, run_velocity = 3.5,

View File

@ -43,6 +43,22 @@ local pigman = {
damage = "mobs_mc_zombiepig_hurt", damage = "mobs_mc_zombiepig_hurt",
distance = 16, distance = 16,
}, },
--head code
has_head = false,
head_bone = "head",
swap_y_with_x = true,
reverse_head_yaw = true,
head_bone_pos_y = 2.4,
head_bone_pos_z = 0,
head_height_offset = 1.1,
head_direction_offset = 0,
head_pitch_modifier = 0,
--end head code
jump = true, jump = true,
makes_footstep_sound = true, makes_footstep_sound = true,
walk_velocity = .8, walk_velocity = .8,