forked from mtcontrib/farming
fix string/wool
This commit is contained in:
parent
5107d18079
commit
cc0668bc57
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
local S = farming.translate
|
local S = farming.translate
|
||||||
|
local a = farming.recipe_items
|
||||||
|
|
||||||
-- wild cotton as a source of cotton seed and a chance of cotton itself
|
-- wild cotton as a source of cotton seed and a chance of cotton itself
|
||||||
minetest.register_node("farming:cotton_wild", {
|
minetest.register_node("farming:cotton_wild", {
|
||||||
@ -57,15 +58,18 @@ minetest.register_craftitem("farming:cotton", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- string
|
-- string
|
||||||
minetest.register_craftitem("farming:string", {
|
if not farming.mcl then
|
||||||
description = S("String"),
|
|
||||||
inventory_image = "farming_string.png",
|
minetest.register_craftitem("farming:string", {
|
||||||
groups = {flammable = 2}
|
description = S("String"),
|
||||||
})
|
inventory_image = "farming_string.png",
|
||||||
|
groups = {flammable = 2}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
-- cotton to wool
|
-- cotton to wool
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "wool:white",
|
output = a.wool,
|
||||||
recipe = {
|
recipe = {
|
||||||
{"farming:cotton", "farming:cotton"},
|
{"farming:cotton", "farming:cotton"},
|
||||||
{"farming:cotton", "farming:cotton"}
|
{"farming:cotton", "farming:cotton"}
|
||||||
@ -74,7 +78,7 @@ minetest.register_craft({
|
|||||||
|
|
||||||
-- cotton to string
|
-- cotton to string
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:string 2",
|
output = a.string .. " 2",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"farming:cotton"},
|
{"farming:cotton"},
|
||||||
{"farming:cotton"}
|
{"farming:cotton"}
|
||||||
|
@ -51,6 +51,8 @@ farming.recipe_items = {
|
|||||||
cactus = "default:cactus",
|
cactus = "default:cactus",
|
||||||
paper = "default:paper",
|
paper = "default:paper",
|
||||||
snow = "default:snow",
|
snow = "default:snow",
|
||||||
|
string = "farming:string",
|
||||||
|
wool = "wool:white"
|
||||||
}
|
}
|
||||||
|
|
||||||
-- change recipe items to mineclone variations
|
-- change recipe items to mineclone variations
|
||||||
@ -81,6 +83,8 @@ if farming.mcl then
|
|||||||
a.cactus = "mcl_core:cactus"
|
a.cactus = "mcl_core:cactus"
|
||||||
a.paper = "mcl_core:paper"
|
a.paper = "mcl_core:paper"
|
||||||
a.snow = "mcl_throwing:snowball"
|
a.snow = "mcl_throwing:snowball"
|
||||||
|
a.string = "mcl_mobitems:string"
|
||||||
|
a.wool = "mcl_wool:white"
|
||||||
|
|
||||||
add_groups("mcl_core:sugar", {food_sugar = 1})
|
add_groups("mcl_core:sugar", {food_sugar = 1})
|
||||||
add_groups("mcl_throwing:egg", {food_egg = 1})
|
add_groups("mcl_throwing:egg", {food_egg = 1})
|
||||||
|
Loading…
Reference in New Issue
Block a user