Ajuste para a nova api mob-engine

master
BrunoMine 2019-10-01 13:25:01 -03:00
parent fb787453ea
commit 31506bca1f
2 changed files with 12 additions and 8 deletions

View File

@ -22,7 +22,6 @@ local desc_item_moeda = taverna_barbara.desc_item_moeda
local def = { local def = {
-- Geral -- Geral
name = "taverna_barbara:barman",
stats = { stats = {
hp = 18, hp = 18,
lifetime = 1800, -- 30 Minutos lifetime = 1800, -- 30 Minutos
@ -44,8 +43,11 @@ local def = {
model = { model = {
mesh = "taverna_barbara_pessoa_comum.b3d", mesh = "taverna_barbara_pessoa_comum.b3d",
textures = {"taverna_barbara_barman.png"}, textures = {"taverna_barbara_barman.png"},
collisionbox = {-0.25, -1, -0.3, 0.25, 1.0, 0.3}, collisionbox_width = 0.7,
rotation = -90.0, collisionbox_height = 1.8,
center_height = -1,
rotation = 0.0,
vision_height = 0,
animations = { animations = {
idle = {start = 0, stop = 80, speed = 15}, idle = {start = 0, stop = 80, speed = 15},
walk = {start = 168, stop = 188, speed = 15.5}, walk = {start = 168, stop = 188, speed = 15.5},
@ -106,7 +108,7 @@ local def = {
} }
creatures.register_mob(def) creatures.register_mob("taverna_barbara:barman", def)
-- receptor dos botoes do menu do barman -- receptor dos botoes do menu do barman
minetest.register_on_player_receive_fields(function(player, formname, fields) minetest.register_on_player_receive_fields(function(player, formname, fields)

View File

@ -100,7 +100,6 @@ end)
local def = { local def = {
-- Geral -- Geral
name = "taverna_barbara:trambiqueiro",
stats = { stats = {
hp = 18, hp = 18,
lifetime = 1800, -- 30 Minutos lifetime = 1800, -- 30 Minutos
@ -121,8 +120,11 @@ local def = {
model = { model = {
mesh = "taverna_barbara_pessoa_comum.b3d", mesh = "taverna_barbara_pessoa_comum.b3d",
textures = {"taverna_barbara_trambiqueiro.png"}, textures = {"taverna_barbara_trambiqueiro.png"},
collisionbox = {-0.25, -1, -0.3, 0.25, 1.0, 0.3}, collisionbox_width = 0.7,
rotation = -90.0, collisionbox_height = 1.8,
center_height = -1,
rotation = 0.0,
vision_height = 0,
animations = { animations = {
idle = {start = 0, stop = 80, speed = 15}, idle = {start = 0, stop = 80, speed = 15},
walk = {start = 168, stop = 188, speed = 15.5}, walk = {start = 168, stop = 188, speed = 15.5},
@ -220,7 +222,7 @@ local def = {
} }
creatures.register_mob(def) creatures.register_mob("taverna_barbara:trambiqueiro", def)
-- Node Bau do Trambiqueiro -- Node Bau do Trambiqueiro
minetest.register_node("taverna_barbara:bau_trambiqueiro", { minetest.register_node("taverna_barbara:bau_trambiqueiro", {