Update 'mods/adv_lightsabers/register_lightsabers.lua'

This commit is contained in:
thunderdog1138 2020-07-21 22:34:22 +00:00
parent 781729a84e
commit 9bac22f89a
1 changed files with 9 additions and 9 deletions

View File

@ -222,7 +222,7 @@ function adv_lightsabers.register_lightsaber(type,color)
minetest.register_craftitem("adv_lightsabers:lightsaber_single_"..color.."_off", {
description = "Lightsaber",
inventory_image = "adv_lightsabers_hilt_single_inv.png",
inventory_image = "hilt_single_inv.png",
stack_max = 1,
on_use = function(itemstack,player)
local activate = "adv_lightsabers_activate"
@ -234,8 +234,8 @@ function adv_lightsabers.register_lightsaber(type,color)
minetest.register_craftitem("adv_lightsabers:lightsaber_single_"..color.."_on", {
description = "Lightsaber",
inventory_image = "adv_lightsabers_hilt_single_inv.png",
wield_image = "adv_lightsabers_blade_single_"..color..".png^adv_lightsabers_hilt_single.png",
inventory_image = "hilt_single_inv.png",
wield_image = "blade_single_"..color..".png^hilt_single.png",
wield_scale = {x = 2,y = 2,z = 1},
stack_max = 1,
on_use = function(_,player,pointed_thing)
@ -270,7 +270,7 @@ function adv_lightsabers.register_lightsaber(type,color)
minetest.register_craftitem("adv_lightsabers:lightsaber_cross_"..color.."_off", {
description = "Crossguarded Lightsaber",
inventory_image = "adv_lightsabers_hilt_cross_inv.png",
inventory_image = "hilt_cross_inv.png",
stack_max = 1,
on_use = function(itemstack,player)
local activate = "adv_lightsabers_activate_cross"
@ -282,8 +282,8 @@ function adv_lightsabers.register_lightsaber(type,color)
minetest.register_craftitem("adv_lightsabers:lightsaber_cross_"..color.."_on", {
description = "Crossguarded Lightsaber",
inventory_image = "adv_lightsabers_hilt_cross_inv.png",
wield_image = "adv_lightsabers_blade_cross_"..color..".png^adv_lightsabers_hilt_cross.png",
inventory_image = "hilt_cross_inv.png",
wield_image = "blade_cross_"..color..".png^hilt_cross.png",
wield_scale = {x = 2,y = 2,z = 1},
stack_max = 1,
on_use = function(_,player,pointed_thing)
@ -318,7 +318,7 @@ function adv_lightsabers.register_lightsaber(type,color)
minetest.register_craftitem("adv_lightsabers:lightsaber_double_"..color.."_off", {
description = "Double Bladed Lightsaber",
inventory_image = "adv_lightsabers_hilt_double_inv.png",
inventory_image = "hilt_double_inv.png",
stack_max = 1,
on_use = function(itemstack,player)
local activate = "adv_lightsabers_activate"
@ -330,8 +330,8 @@ function adv_lightsabers.register_lightsaber(type,color)
minetest.register_craftitem("adv_lightsabers:lightsaber_double_"..color.."_on", {
description = "Lightsaber",
inventory_image = "adv_lightsabers_hilt_double_inv.png",
wield_image = "adv_lightsabers_hilt_double.png^adv_lightsabers_blade_double_"..color..".png",
inventory_image = "hilt_double_inv.png",
wield_image = "hilt_double.png^blade_double_"..color..".png",
wield_scale = {x = 4,y = 4,z = 1},
stack_max = 1,
on_use = function(_,player,pointed_thing)