mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-23 06:32:25 +01:00
Farming: Make cotton look like cotton, add crafted string item
Remove string -> cotton alias.
This commit is contained in:
parent
f928780946
commit
08727bcd69
@ -35,3 +35,6 @@ Created by Gambit (CC BY 3.0):
|
|||||||
farming_flour.png
|
farming_flour.png
|
||||||
farming_cotton_seed.png
|
farming_cotton_seed.png
|
||||||
farming_wheat_seed.png
|
farming_wheat_seed.png
|
||||||
|
|
||||||
|
Created by Napiophelios (CC BY-SA 3.0):
|
||||||
|
farming_cotton.png
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
-- Global farming namespace
|
-- Global farming namespace
|
||||||
|
|
||||||
farming = {}
|
farming = {}
|
||||||
farming.path = minetest.get_modpath("farming")
|
farming.path = minetest.get_modpath("farming")
|
||||||
|
|
||||||
|
|
||||||
-- Load files
|
-- Load files
|
||||||
|
|
||||||
dofile(farming.path .. "/api.lua")
|
dofile(farming.path .. "/api.lua")
|
||||||
dofile(farming.path .. "/nodes.lua")
|
dofile(farming.path .. "/nodes.lua")
|
||||||
dofile(farming.path .. "/hoes.lua")
|
dofile(farming.path .. "/hoes.lua")
|
||||||
|
|
||||||
|
|
||||||
-- WHEAT
|
-- WHEAT
|
||||||
|
|
||||||
farming.register_plant("farming:wheat", {
|
farming.register_plant("farming:wheat", {
|
||||||
description = "Wheat Seed",
|
description = "Wheat Seed",
|
||||||
paramtype2 = "meshoptions",
|
paramtype2 = "meshoptions",
|
||||||
@ -19,6 +24,7 @@ farming.register_plant("farming:wheat", {
|
|||||||
groups = {flammable = 4},
|
groups = {flammable = 4},
|
||||||
place_param2 = 3,
|
place_param2 = 3,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("farming:flour", {
|
minetest.register_craftitem("farming:flour", {
|
||||||
description = "Flour",
|
description = "Flour",
|
||||||
inventory_image = "farming_flour.png",
|
inventory_image = "farming_flour.png",
|
||||||
@ -45,7 +51,9 @@ minetest.register_craft({
|
|||||||
recipe = "farming:flour"
|
recipe = "farming:flour"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
-- Cotton
|
-- Cotton
|
||||||
|
|
||||||
farming.register_plant("farming:cotton", {
|
farming.register_plant("farming:cotton", {
|
||||||
description = "Cotton Seed",
|
description = "Cotton Seed",
|
||||||
inventory_image = "farming_cotton_seed.png",
|
inventory_image = "farming_cotton_seed.png",
|
||||||
@ -56,7 +64,11 @@ farming.register_plant("farming:cotton", {
|
|||||||
groups = {flammable = 4},
|
groups = {flammable = 4},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_alias("farming:string", "farming:cotton")
|
minetest.register_craftitem("farming:string", {
|
||||||
|
description = "String",
|
||||||
|
inventory_image = "farming_string.png",
|
||||||
|
groups = {flammable = 2},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "wool:white",
|
output = "wool:white",
|
||||||
@ -66,7 +78,17 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "farming:string 2",
|
||||||
|
recipe = {
|
||||||
|
{"farming:cotton"},
|
||||||
|
{"farming:cotton"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
-- Straw
|
-- Straw
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:straw 3",
|
output = "farming:straw 3",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -83,7 +105,9 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
-- Fuels
|
-- Fuels
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "fuel",
|
type = "fuel",
|
||||||
recipe = "farming:straw",
|
recipe = "farming:straw",
|
||||||
@ -102,6 +126,12 @@ minetest.register_craft({
|
|||||||
burntime = 1,
|
burntime = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "fuel",
|
||||||
|
recipe = "farming:string",
|
||||||
|
burntime = 1,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "fuel",
|
type = "fuel",
|
||||||
recipe = "farming:hoe_wood",
|
recipe = "farming:hoe_wood",
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 316 B |
BIN
mods/farming/textures/farming_string.png
Normal file
BIN
mods/farming/textures/farming_string.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 166 B |
Loading…
Reference in New Issue
Block a user