Add setting "rainbow_ore:stick" to change tool craft recipe item...
Default is "default:stick". If default mod not available then default is "rainbow_ore:rainbow_ore_ingot".
This commit is contained in:
parent
78d7eed320
commit
0b1a7d3358
10
init.lua
10
init.lua
@ -56,9 +56,13 @@ minetest.register_tool("rainbow_ore:rainbow_ore_pickaxe", {
|
||||
})
|
||||
|
||||
|
||||
local stick = "rainbow_ore:rainbow_ore_ingot"
|
||||
if minetest.registered_items["default:stick"] then
|
||||
stick = "default:stick"
|
||||
local stick = minetest.settings:get("rainbow_ore.stick")
|
||||
if not stick then
|
||||
if minetest.registered_items["default:stick"] then
|
||||
stick = "default:stick"
|
||||
else
|
||||
stick = "rainbow_ore:rainbow_ore_ingot"
|
||||
end
|
||||
end
|
||||
|
||||
--Define Rainbow_Ore_Pickaxe crafting recipe
|
||||
|
@ -1,4 +1,9 @@
|
||||
|
||||
# Determines the item used as "stick" component in rainbow tool craft recipes.
|
||||
# Default is "default:stick". If default mod is not available, then default
|
||||
# is "rainbow_ore:rainbow_ore_block".
|
||||
rainbow_ore.stick (Stick item for rainbow tools recipes) string default:stick
|
||||
|
||||
# Determines node that will be replaced with "rainbow_ore:rainbow_ore_block"
|
||||
# when ore is spawned.
|
||||
rainbow_ore.spawn_within (Ore spawns within) string default:stone
|
||||
|
Loading…
x
Reference in New Issue
Block a user