texture changes, cow model, spinner

master
D00Med 2017-01-04 14:55:41 +10:00
parent 755e77c8cc
commit 4dc1b0d7d1
14 changed files with 55 additions and 13 deletions

View File

@ -2,7 +2,7 @@ hunger = {}
hunger.players = {}
hunger.food = {}
HUNGER_TICK = 800 -- time in seconds after that 1 hunger point is taken
HUNGER_TICK = 400 -- time in seconds after that 1 hunger point is taken
HUNGER_HEALTH_TICK = 4 -- time in seconds after player gets healed/damaged
HUNGER_MOVE_TICK = 0.5 -- time in seconds after the movement is checked

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 251 B

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 382 B

After

Width:  |  Height:  |  Size: 958 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 351 B

After

Width:  |  Height:  |  Size: 902 B

View File

@ -12,7 +12,7 @@ mobs:register_mob("mobs_animal:cow", {
armor = 200,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
visual = "mesh",
mesh = "mobs_cow.x",
mesh = "cow.b3d",
textures = {
{"mobs_cow.png"},
{"mobs_cow2.png"},
@ -33,15 +33,15 @@ mobs:register_mob("mobs_animal:cow", {
light_damage = 0,
animation = {
speed_normal = 15,
speed_run = 15,
stand_start = 0,
stand_end = 30,
walk_start = 35,
walk_end = 65,
speed_run = 18,
stand_start = 1,
stand_end = 25,
walk_start = 47,
walk_end = 67,
run_start = 105,
run_end = 135,
punch_start = 70,
punch_end = 100,
run_end = 47,
punch_start = 67,
punch_end = 45,
},
follow = "farming:wheat",
view_range = 7,

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 948 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -73,7 +73,7 @@ function object_detach(entity, player, offset)
default.player_attached[player:get_player_name()] = false
default.player_set_animation(player, "stand" , 30)
player:set_properties({visual_size = {x=1, y=1}})
player:set_eye_offset({x=0, y=0, z=0}, {x=0, y=0, z=0})
player:set_eye_offset({x=0,y=0,z=0},{x=3,y=3,z=-1})
local pos = player:getpos()
pos = {x = pos.x + offset.x, y = pos.y + 0.2 + offset.y, z = pos.z + offset.z}
minetest.after(0.1, function()

View File

@ -37,11 +37,53 @@ minetest.register_entity("vehicles:horse", {
end,
on_step = function(self, dtime)
if self.driver then
object_drive(self, dtime, 13, 0.5, false, nil, nil, {x=75, y=100}, {x=25, z=25}, "jump", {x=25, y=75}, {}, 0, 1.57)
object_drive(self, dtime, 13, 0.5, false, nil, nil, {x=75, y=100}, {x=25, y=25}, "jump", {x=25, y=75}, {}, 0, 1.57)
return false
end
return true
end,
})
register_vehicle_spawner("vehicles:horse", "Horse", "vehicles_horse_inv.png")
register_vehicle_spawner("vehicles:horse", "Horse", "vehicles_horse_inv.png")
minetest.register_entity("vehicles:spinner", {
visual = "mesh",
mesh = "spinner.b3d",
textures = {"vehicles_spinner.png"},
velocity = 15,
acceleration = -5,
stepheight = 1.5,
hp_max = 200,
physical = true,
collisionbox = {-0.4, -0.2, -0.4, 0.4, 0.3, 0.4},
on_rightclick = function(self, clicker)
if self.driver and clicker == self.driver then
object_detach(self, clicker, {x=1, y=0, z=1})
elseif not self.driver then
object_attach(self, clicker, {x=0, y=10, z=0}, true, {x=0, y=2, z=0})
end
end,
on_punch = function(self, puncher)
if not self.driver then
local name = self.object:get_luaentity().name
local pos = self.object:getpos()
minetest.env:add_item(pos, name.."_spawner")
self.object:remove()
end
if self.object:get_hp() == 0 then
if self.driver then
object_detach(self, self.driver, {x=1, y=0, z=1})
end
explode(self, 5)
end
end,
on_step = function(self, dtime)
if self.driver then
object_drive(self, dtime, 12, 0.6, false, nil, nil, {x=3, y=18}, {x=1, y=1}, "jump", {x=3, y=18}, {}, 0, 0)
return false
end
return true
end,
})
register_vehicle_spawner("vehicles:spinner", "Spinner", "vehicles_spinner_inv.png")

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B