1
0
Fork 0

Pigs now stare you in the eyes!

This commit is contained in:
epCode 2022-06-09 10:21:01 -07:00
parent 7d68c4faf3
commit 65b0908135
2 changed files with 13 additions and 4 deletions

View File

@ -15,10 +15,19 @@ mcl_mobs:register_mob("mobs_mc:pig", {
visual = "mesh", visual = "mesh",
mesh = "mobs_mc_pig.b3d", mesh = "mobs_mc_pig.b3d",
textures = {{ textures = {{
"blank.png", -- baby
"mobs_mc_pig.png", -- base
"blank.png", -- saddle "blank.png", -- saddle
"mobs_mc_pig.png", -- base
"blank.png",
}}, }},
--EXPERIMENTAL
head_swivel = "Head_Control",
bone_eye_height = 2.9,
head_eye_height = 0.8,
horrizonatal_head_height=-.4,
curiosity = 3,
head_yaw="z",
-------------------------------
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,
@ -111,9 +120,9 @@ mcl_mobs:register_mob("mobs_mc:pig", {
local item = clicker:get_wielded_item() local item = clicker:get_wielded_item()
if item:get_name() == "mcl_mobitems:saddle" and self.saddle ~= "yes" then if item:get_name() == "mcl_mobitems:saddle" and self.saddle ~= "yes" then
self.base_texture = { self.base_texture = {
"blank.png", -- baby
"mobs_mc_pig.png", -- base
"mobs_mc_pig_saddle.png", -- saddle "mobs_mc_pig_saddle.png", -- saddle
"mobs_mc_pig.png", -- base
"blank.png", -- baby
} }
self.object:set_properties({ self.object:set_properties({
textures = self.base_texture textures = self.base_texture