change spelling
This commit is contained in:
parent
ee50d60f07
commit
cb588eca6b
58
init.lua
58
init.lua
@ -21,55 +21,55 @@ local big_dots = {
|
|||||||
}
|
}
|
||||||
-- items
|
-- items
|
||||||
|
|
||||||
minetest.register_craftitem("rosery:small_0", {
|
minetest.register_craftitem("rosary:small_0", {
|
||||||
description = "Small Rosery",
|
description = "Small rosary",
|
||||||
inventory_image = "rosery_small.png",
|
inventory_image = "rosary_small.png",
|
||||||
wield_scale = {x=1, y=1, z=0.5},
|
wield_scale = {x=1, y=1, z=0.5},
|
||||||
groups = {rosery=1, rosery_small=1},
|
groups = {rosary=1, rosary_small=1},
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
itemstack:set_name("rosery:small_10")
|
itemstack:set_name("rosary:small_10")
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("rosery:big_0", {
|
minetest.register_craftitem("rosary:big_0", {
|
||||||
description = "Large Rosery",
|
description = "Large rosary",
|
||||||
inventory_image = "rosery_big.png",
|
inventory_image = "rosary_big.png",
|
||||||
wield_image = "[combine:96x96:0,0=rosery_big.png:",
|
wield_image = "[combine:96x96:0,0=rosary_big.png:",
|
||||||
wield_scale = {x=1.5, y=1.5, z=0.5},
|
wield_scale = {x=1.5, y=1.5, z=0.5},
|
||||||
groups = {rosery=1, rosery_big=1},
|
groups = {rosary=1, rosary_big=1},
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
itemstack:set_name("rosery:big_59")
|
itemstack:set_name("rosary:big_59")
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
for i, p in ipairs(small_dots) do
|
for i, p in ipairs(small_dots) do
|
||||||
minetest.register_craftitem("rosery:small_"..i, {
|
minetest.register_craftitem("rosary:small_"..i, {
|
||||||
description = "Small Rosery",
|
description = "Small rosary",
|
||||||
inventory_image = "[combine:32x32:0,0=rosery_small.png:"..p.x..","..p.y.."=rosery_dot.png",
|
inventory_image = "[combine:32x32:0,0=rosary_small.png:"..p.x..","..p.y.."=rosary_dot.png",
|
||||||
wield_scale = {x=1, y=1, z=0.5},
|
wield_scale = {x=1, y=1, z=0.5},
|
||||||
groups = {rosery=1, rosery_small=1, not_in_creative_inventory=1},
|
groups = {rosary=1, rosary_small=1, not_in_creative_inventory=1},
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
itemstack:set_name("rosery:small_"..(i-1))
|
itemstack:set_name("rosary:small_"..(i-1))
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
for i, p in ipairs(big_dots) do
|
for i, p in ipairs(big_dots) do
|
||||||
minetest.register_craftitem("rosery:big_"..i, {
|
minetest.register_craftitem("rosary:big_"..i, {
|
||||||
description = "Large Rosery",
|
description = "Large rosary",
|
||||||
inventory_image = "[combine:64x64:0,0=rosery_big.png:"..p.x..","..p.y.."=rosery_dot.png",
|
inventory_image = "[combine:64x64:0,0=rosary_big.png:"..p.x..","..p.y.."=rosary_dot.png",
|
||||||
wield_image = "[combine:96x96:0,0=rosery_big.png:"..p.x..","..p.y.."=rosery_dot.png",
|
wield_image = "[combine:96x96:0,0=rosary_big.png:"..p.x..","..p.y.."=rosary_dot.png",
|
||||||
wield_scale = {x=1.5, y=1.5, z=0.5},
|
wield_scale = {x=1.5, y=1.5, z=0.5},
|
||||||
groups = {rosery=1, rosery_big=1, not_in_creative_inventory=1},
|
groups = {rosary=1, rosary_big=1, not_in_creative_inventory=1},
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
itemstack:set_name("rosery:big_"..(i-1))
|
itemstack:set_name("rosary:big_"..(i-1))
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
@ -79,18 +79,18 @@ end
|
|||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "rosery:big_0",
|
output = "rosary:big_0",
|
||||||
recipe = {
|
recipe = {
|
||||||
"group:rosery_small",
|
"group:rosary_small",
|
||||||
"group:rosery_small",
|
"group:rosary_small",
|
||||||
"group:rosery_small",
|
"group:rosary_small",
|
||||||
"group:rosery_small",
|
"group:rosary_small",
|
||||||
"group:rosery_small",
|
"group:rosary_small",
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "rosery:small_0",
|
output = "rosary:small_0",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:steel_ingot","farming:string","default:steel_ingot"},
|
{"default:steel_ingot","farming:string","default:steel_ingot"},
|
||||||
{"farming:string","","farming:string"},
|
{"farming:string","","farming:string"},
|
||||||
|
Before Width: | Height: | Size: 1015 B After Width: | Height: | Size: 1015 B |
Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 202 B |
Before Width: | Height: | Size: 477 B After Width: | Height: | Size: 477 B |
Loading…
x
Reference in New Issue
Block a user