forked from VoxeLibre/VoxeLibre
Implement no-op head operations for enderman
This commit is contained in:
parent
ac85230938
commit
e52aab45c0
|
@ -102,9 +102,9 @@ mobs.do_head_logic = function(self,dtime)
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.swap_y_with_x then
|
if self.swap_y_with_x then
|
||||||
self.object:set_bone_position("head", bone_pos, vector_new(degrees(head_pitch),degrees(head_yaw),0))
|
self.object:set_bone_position(self.head_bone, bone_pos, vector_new(degrees(head_pitch),degrees(head_yaw),0))
|
||||||
else
|
else
|
||||||
self.object:set_bone_position("head", bone_pos, vector_new(degrees(head_pitch),0,degrees(head_yaw)))
|
self.object:set_bone_position(self.head_bone, bone_pos, vector_new(degrees(head_pitch),0,degrees(head_yaw)))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -224,6 +224,22 @@ mobs:register_mob("mobs_mc:enderman", {
|
||||||
max = 1,
|
max = 1,
|
||||||
looting = "common"},
|
looting = "common"},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
--head code
|
||||||
|
has_head = false,
|
||||||
|
head_bone = "head.low",
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
animation = select_enderman_animation("normal"),
|
animation = select_enderman_animation("normal"),
|
||||||
_taken_node = "",
|
_taken_node = "",
|
||||||
do_custom = function(self, dtime)
|
do_custom = function(self, dtime)
|
||||||
|
|
Loading…
Reference in New Issue