mirror of
https://github.com/minetest-mods/moreores.git
synced 2025-07-01 15:40:32 +02:00
Merge branch 'master' of github.com:JamesClarke7283/moreores
This commit is contained in:
8
init.lua
8
init.lua
@ -45,8 +45,8 @@ end
|
|||||||
-- Returns the crafting recipe table for a given material and item.
|
-- Returns the crafting recipe table for a given material and item.
|
||||||
local function get_recipe(material, item)
|
local function get_recipe(material, item)
|
||||||
if is_mcl_core_present then
|
if is_mcl_core_present then
|
||||||
material = material:gsub("default:", "mcl_core:")
|
material = material:gsub("default:", "mcl_core:")
|
||||||
end
|
end
|
||||||
|
|
||||||
if item == "sword" then
|
if item == "sword" then
|
||||||
return {
|
return {
|
||||||
@ -95,8 +95,8 @@ end
|
|||||||
local function add_ore(modname, description, mineral_name, oredef, extra_node_def)
|
local function add_ore(modname, description, mineral_name, oredef, extra_node_def)
|
||||||
|
|
||||||
if mineral_name == "copper" and is_mcl_copper_present then
|
if mineral_name == "copper" and is_mcl_copper_present then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local img_base = modname .. "_" .. mineral_name
|
local img_base = modname .. "_" .. mineral_name
|
||||||
local toolimg_base = modname .. "_tool_"..mineral_name
|
local toolimg_base = modname .. "_tool_"..mineral_name
|
||||||
|
2
mod.conf
2
mod.conf
@ -2,4 +2,4 @@ name = moreores
|
|||||||
description = Adds new ore types.
|
description = Adds new ore types.
|
||||||
optional_depends = carts,farming,frame,mg,toolranks,mcl_core,mcl_sounds
|
optional_depends = carts,farming,frame,mg,toolranks,mcl_core,mcl_sounds
|
||||||
min_minetest_version = 5.0.0
|
min_minetest_version = 5.0.0
|
||||||
supported_games mineclone2,mineclonia,minetest_game
|
supported_games = mineclone2,mineclonia,minetest_game
|
||||||
|
Reference in New Issue
Block a user