Refinements and new textures

This commit is contained in:
echoes91
2020-04-19 21:53:10 +02:00
parent 119116b89e
commit fc1fd99541
10 changed files with 17 additions and 5 deletions

View File

@ -38,12 +38,17 @@ function spears_set_entity(spear_type, base_damage, toughness)
initial_properties = {
physical = false,
visual = "item",
visual_size = {x = 0.3, y = 0.3, z = 0.3},
visual_size = {x = 0.5, y = 0.5, z = 0.5},
wield_item = "spears:spear_" .. spear_type,
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
automatic_rotate = 10,
},
on_punch = function(self, puncher)
on_activate = function (self, staticdata, dtime_s)
self.object:set_armor_groups({immortal = 1})
end,
on_punch = function (self, puncher)
if puncher:is_player() then
local stack = {name='spears:spear_' .. spear_type, wear = self._wear}
local inv = puncher:get_inventory()