added oats, rye and rice thanks to ademants grains mod
@ -110,5 +110,13 @@ farming.registered_plants["farming:barley"] = {
|
||||
seed = "farming:seed_barley",
|
||||
minlight = 13,
|
||||
maxlight = 15,
|
||||
steps = 8
|
||||
steps = 7
|
||||
}
|
||||
|
||||
-- Fuel
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:barley",
|
||||
burntime = 1,
|
||||
})
|
||||
|
132
crops/ryeoatrice.lua
Normal file
@ -0,0 +1,132 @@
|
||||
|
||||
--= A nice addition from Ademant's grain mod :)
|
||||
|
||||
-- Rye
|
||||
|
||||
farming.register_plant("farming:rye", {
|
||||
description = "Rye seed",
|
||||
paramtype2 = "meshoptions",
|
||||
inventory_image = "farming_rye_seed.png",
|
||||
steps = 8,
|
||||
minlight = 13,
|
||||
maxlight = default.LIGHT_MAX,
|
||||
fertility = {"savannah"},
|
||||
groups = {flammable = 4},
|
||||
place_param2 = 3,
|
||||
})
|
||||
|
||||
minetest.override_item("farming:rye", {
|
||||
groups = {food_rye = 1, flammable = 4}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:flour",
|
||||
recipe = {
|
||||
"farming:rye", "farming:rye", "farming:rye", "farming:rye",
|
||||
"farming:mortar_pestle"
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
|
||||
})
|
||||
|
||||
-- Oats
|
||||
|
||||
farming.register_plant("farming:oat", {
|
||||
description = "Oat seed",
|
||||
paramtype2 = "meshoptions",
|
||||
inventory_image = "farming_oat_seed.png",
|
||||
steps = 8,
|
||||
minlight = 13,
|
||||
maxlight = default.LIGHT_MAX,
|
||||
fertility = {"savannah"},
|
||||
groups = {flammable = 4},
|
||||
place_param2 = 3,
|
||||
})
|
||||
|
||||
minetest.override_item("farming:oat", {
|
||||
groups = {food_oats = 1, flammable = 4}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:flour",
|
||||
recipe = {
|
||||
"farming:oat", "farming:oat", "farming:oat", "farming:oat",
|
||||
"farming:mortar_pestle"
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
|
||||
})
|
||||
|
||||
-- Rice
|
||||
|
||||
farming.register_plant("farming:rice", {
|
||||
description = "Rice grains",
|
||||
paramtype2 = "meshoptions",
|
||||
inventory_image = "farming_rice_seed.png",
|
||||
steps = 8,
|
||||
minlight = 13,
|
||||
maxlight = default.LIGHT_MAX,
|
||||
fertility = {"savannah"},
|
||||
groups = {flammable = 4},
|
||||
place_param2 = 3,
|
||||
})
|
||||
|
||||
minetest.override_item("farming:rice", {
|
||||
groups = {food_rice = 1, flammable = 4}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:rice_bread", {
|
||||
description = "Rice Bread",
|
||||
inventory_image = "farming_rice_bread.png",
|
||||
on_use = minetest.item_eat(5),
|
||||
groups = {food_rice_bread = 1, flammable = 2},
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:rice_flour", {
|
||||
description = "Rice Flour",
|
||||
inventory_image = "farming_rice_flour.png",
|
||||
groups = {food_rice_flour = 1, flammable = 1},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:rice_flour",
|
||||
recipe = {
|
||||
"farming:rice", "farming:rice", "farming:rice", "farming:rice",
|
||||
"farming:mortar_pestle"
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
cooktime = 15,
|
||||
output = "farming:rice_bread",
|
||||
recipe = "farming:rice_flour"
|
||||
})
|
||||
|
||||
-- Fuels
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:rice_bread",
|
||||
burntime = 1,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:rye",
|
||||
burntime = 1,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:oat",
|
||||
burntime = 1,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "farming:rice",
|
||||
burntime = 1,
|
||||
})
|
@ -29,6 +29,7 @@ farming.pepper = true
|
||||
farming.pineapple = true
|
||||
farming.peas = true
|
||||
farming.beetroot = true
|
||||
farming.grains = true
|
||||
|
||||
-- rarety of crops on map, default is 0.001 (higher number = more crops)
|
||||
farming.rarety = 0.002
|
||||
|
@ -8,6 +8,7 @@ for i = 4, 5 do
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'farming:seed_wheat'}, rarity = 5},
|
||||
{items = {'farming:seed_oat'},rarity = 10},
|
||||
{items = {'default:grass_1'}},
|
||||
}
|
||||
},
|
||||
@ -21,7 +22,8 @@ for i = 4, 5 do
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'farming:seed_barley'}, rarity = 6},
|
||||
{items = {'farming:seed_barley'}, rarity = 5},
|
||||
{items = {'farming:seed_rye'},rarity = 10},
|
||||
{items = {'default:dry_grass_1'}},
|
||||
}
|
||||
},
|
||||
@ -37,6 +39,7 @@ minetest.override_item("default:junglegrass", {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {'farming:seed_cotton'}, rarity = 8},
|
||||
{items = {'farming:seed_rice'},rarity = 16},
|
||||
{items = {'default:junglegrass'}},
|
||||
}
|
||||
},
|
||||
|
4
init.lua
@ -591,7 +591,7 @@ farming.registered_plants[mname .. ":" .. pname] = {
|
||||
minlight = def.minlight,
|
||||
maxlight = def.maxlight
|
||||
}
|
||||
print(dump(farming.registered_plants[mname .. ":" .. pname]))
|
||||
--print(dump(farming.registered_plants[mname .. ":" .. pname]))
|
||||
-- Return info
|
||||
return {seed = mname .. ":seed_" .. pname, harvest = mname .. ":" .. pname}
|
||||
end
|
||||
@ -621,6 +621,7 @@ farming.pepper = true
|
||||
farming.pineapple = true
|
||||
farming.peas = true
|
||||
farming.beetroot = true
|
||||
farming.grains = true
|
||||
farming.rarety = 0.002 -- 0.006
|
||||
|
||||
|
||||
@ -685,6 +686,7 @@ ddoo("pineapple.lua", farming.pineapple)
|
||||
ddoo("peas.lua", farming.peas)
|
||||
ddoo("beetroot.lua", farming.beetroot)
|
||||
ddoo("chili.lua", farming.chili)
|
||||
ddoo("ryeoatrice.lua", farming.grains)
|
||||
|
||||
dofile(farming.path.."/food.lua")
|
||||
dofile(farming.path.."/mapgen.lua")
|
||||
|
@ -128,3 +128,8 @@ Created by TenPlus1
|
||||
farming_rhubarb.png
|
||||
farming_rhubarb_pie.png
|
||||
farming_hemp*.png
|
||||
|
||||
Created by ademant (CC-BY-3.0)
|
||||
farming_rye*.png
|
||||
farming_oat*.png
|
||||
farming_rice*.png
|
||||
|
BIN
textures/farming_oat.png
Normal file
After Width: | Height: | Size: 274 B |
BIN
textures/farming_oat_1.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
textures/farming_oat_2.png
Normal file
After Width: | Height: | Size: 143 B |
BIN
textures/farming_oat_3.png
Normal file
After Width: | Height: | Size: 173 B |
BIN
textures/farming_oat_4.png
Normal file
After Width: | Height: | Size: 190 B |
BIN
textures/farming_oat_5.png
Normal file
After Width: | Height: | Size: 219 B |
BIN
textures/farming_oat_6.png
Normal file
After Width: | Height: | Size: 236 B |
BIN
textures/farming_oat_7.png
Normal file
After Width: | Height: | Size: 255 B |
BIN
textures/farming_oat_8.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
textures/farming_oat_seed.png
Normal file
After Width: | Height: | Size: 142 B |
BIN
textures/farming_rice.png
Normal file
After Width: | Height: | Size: 325 B |
BIN
textures/farming_rice_1.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
textures/farming_rice_2.png
Normal file
After Width: | Height: | Size: 143 B |
BIN
textures/farming_rice_3.png
Normal file
After Width: | Height: | Size: 173 B |
BIN
textures/farming_rice_4.png
Normal file
After Width: | Height: | Size: 189 B |
BIN
textures/farming_rice_5.png
Normal file
After Width: | Height: | Size: 217 B |
BIN
textures/farming_rice_6.png
Normal file
After Width: | Height: | Size: 245 B |
BIN
textures/farming_rice_7.png
Normal file
After Width: | Height: | Size: 261 B |
BIN
textures/farming_rice_8.png
Normal file
After Width: | Height: | Size: 336 B |
BIN
textures/farming_rice_bread.png
Normal file
After Width: | Height: | Size: 392 B |
BIN
textures/farming_rice_flour.png
Normal file
After Width: | Height: | Size: 272 B |
BIN
textures/farming_rice_seed.png
Normal file
After Width: | Height: | Size: 201 B |
BIN
textures/farming_rye.png
Normal file
After Width: | Height: | Size: 242 B |
BIN
textures/farming_rye_1.png
Normal file
After Width: | Height: | Size: 114 B |
BIN
textures/farming_rye_2.png
Normal file
After Width: | Height: | Size: 143 B |
BIN
textures/farming_rye_3.png
Normal file
After Width: | Height: | Size: 173 B |
BIN
textures/farming_rye_4.png
Normal file
After Width: | Height: | Size: 189 B |
BIN
textures/farming_rye_5.png
Normal file
After Width: | Height: | Size: 217 B |
BIN
textures/farming_rye_6.png
Normal file
After Width: | Height: | Size: 237 B |
BIN
textures/farming_rye_7.png
Normal file
After Width: | Height: | Size: 254 B |
BIN
textures/farming_rye_8.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
textures/farming_rye_seed.png
Normal file
After Width: | Height: | Size: 142 B |