forked from MineClone5/MineClone5
Add in basic movement rotation testing
This commit is contained in:
parent
67259891a8
commit
8b200c7352
|
@ -651,7 +651,6 @@ local mob_step = function(self, dtime)
|
||||||
--end
|
--end
|
||||||
|
|
||||||
-- smooth rotation by ThomasMonroe314
|
-- smooth rotation by ThomasMonroe314
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
if self.delay and self.delay > 0 then
|
if self.delay and self.delay > 0 then
|
||||||
|
|
||||||
|
@ -1067,6 +1066,12 @@ minetest.register_entity(name, {
|
||||||
_cmi_is_mob = true,
|
_cmi_is_mob = true,
|
||||||
pushable = def.pushable or true,
|
pushable = def.pushable or true,
|
||||||
|
|
||||||
|
--j4i stuff
|
||||||
|
--automatic_rotate = 360,
|
||||||
|
automatic_face_movement_dir = def.rotate or 0, -- 0=front, 90=side, 180=back, 270=side2
|
||||||
|
automatic_face_movement_max_rotation_per_sec = 360,
|
||||||
|
backface_culling = true,
|
||||||
|
--end j4i stuff
|
||||||
|
|
||||||
-- MCL2 extensions
|
-- MCL2 extensions
|
||||||
teleport = teleport,
|
teleport = teleport,
|
||||||
|
|
|
@ -9,6 +9,7 @@ local cow_def = {
|
||||||
hp_max = 10,
|
hp_max = 10,
|
||||||
xp_min = 1,
|
xp_min = 1,
|
||||||
xp_max = 3,
|
xp_max = 3,
|
||||||
|
rotate = 270,
|
||||||
collisionbox = {-0.45, -0.01, -0.45, 0.45, 1.39, 0.45},
|
collisionbox = {-0.45, -0.01, -0.45, 0.45, 1.39, 0.45},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_mc_cow.b3d",
|
mesh = "mobs_mc_cow.b3d",
|
||||||
|
|
Loading…
Reference in New Issue