Refinements and new textures

This commit is contained in:
echoes91 2020-04-19 22:06:25 +02:00
parent fc1fd99541
commit 07a5f951c0
2 changed files with 2 additions and 3 deletions

View File

@ -38,10 +38,9 @@ function spears_set_entity(spear_type, base_damage, toughness)
initial_properties = {
physical = false,
visual = "item",
visual_size = {x = 0.5, y = 0.5, z = 0.5},
visual_size = {x = 0.25, y = 0.25, z = 0.25},
wield_item = "spears:spear_" .. spear_type,
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
automatic_rotate = 10,
},
on_activate = function (self, staticdata, dtime_s)

View File

@ -4,7 +4,7 @@ function spears_register_spear(spear_type, desc, base_damage, toughness, materia
description = desc .. " spear",
wield_image = "spears_spear_" .. spear_type .. ".png",
inventory_image = "spears_spear_" .. spear_type .. ".png^[transform4",
wield_scale= {x = 2, y = 2, z = 1},
wield_scale= {x = 1.5, y = 1.5, z = 1.5},
on_secondary_use = function(itemstack, user, pointed_thing)
spears_throw(itemstack, user, pointed_thing)
if not minetest.setting_getbool("creative_mode") then