mckaygerhard
66952a26ac
* this cherry pícked from comit at6861a44b60
*74702c6ada
* Carts: Replace old, deprecated function names mods/carts/cart_entity.lua * Mushroom spread: make overridable and reduce spread * Move mushroom spread ABM action into a global and overridable function. but do not optimise spread code mods/flowers/init.lua * backported bcf98df5fac3eb59b02d9fdb066ab92c6228d787 * Reduce spread range to reduce spread through walls. *657f7cee6e
set art and game default, use minenux name and logo venenux * backportedd5cc8c46f6
* Flowers: More flowers * now we are into minenux so minetest4 stable-4.0 branch for engine *95e70da3a6
Default: Increase the maximum level of the diamond axe to 3 * backported https://github.com/minetest/minetest_game/pull/1854 * This is the maximum level of the other diamond tools and makes the number of uses similar to them at mods/default/tools.lua * fixed https://github.com/minetest/minetest_game/issues/1456 Diamond axe breaks earlier than mese axe *535204298e
* Farming: Make cotton look like cotton, add crafted string item * Remove string -> cotton alias. * mods/farming/README.txt, mods/farming/init.lua, mods/farming/textures/farming_cotton.png, mods/farming/textures/farming_string.png *2b6de659cb
Floatland biomes: Add ocean biomes to fix missing sandstone * Update biome lists for blob ores mods/default/mapgen.lua * backported bdc09d2313e5734400d2283549c4906d77a546d0 *e07ad71d11
aa7f6cd060
4a1fc02e82
Make sapling, leaves and fence descriptions consistent Descriptions: Make capitalization consistent also in Improve node descriptions for most default items and nodes * backported https://github.com/minetest/minetest_game/pull/1834 * addressed consistency issues previously discussed in: * https://github.com/minetest/minetest_game/issues/1473 Bad item descriptions: Too generic descriptions among specific descriptions also cos has a strong tendency towards mixing generic item names * https://github.com/minetest/minetest_game/issues/1817 Add tree species to descriptions for appletree and jungletree No change to node technical names though. Normal wood is obviously an appletree * mods/default/nodes.lua, mods/doors/init.lua, mods/flowers/init.lua, mods/vessels/init.lua, mods/default/nodes.lua, mods/doors/init.lua, mods/flowers/init.lua, mods/carts/rails.lua, mods/dye/init.lua, mods/farming/init.lua and mods/xpanes/init.lua * backported https://github.com/minetest/minetest_game/pull/1795 *fb610ffa59
Allow mossy cobble slabs to combine mods/stairs/init.lua * backported https://github.com/minetest/minetest_game/pull/1791 * fixed https://github.com/minetest/minetest_game/issues/1790 *d37c1d2312
* Creative: Do not give creative priv to admin mods/creative/init.lua * https://codeberg.org/minenux/minetest-game-minetest/commit/commit fea78bdf541e6106408018441937d77d163963e5 * Creative: Add 'creative' privilege for survival servers * This adds a 'creative' privilege to survival servers which OPs can bestow on admin or competent builders to give access to the creative inventory. * backported from 0157175346f9af8cf9ea5ffeb5f3d91fa474d044
140 lines
2.5 KiB
Lua
140 lines
2.5 KiB
Lua
-- Global farming namespace
|
|
|
|
farming = {}
|
|
farming.path = minetest.get_modpath("farming")
|
|
|
|
|
|
-- Load files
|
|
|
|
dofile(farming.path .. "/api.lua")
|
|
dofile(farming.path .. "/nodes.lua")
|
|
dofile(farming.path .. "/hoes.lua")
|
|
|
|
|
|
-- WHEAT
|
|
|
|
farming.register_plant("farming:wheat", {
|
|
description = "Wheat Seed",
|
|
paramtype2 = "meshoptions",
|
|
inventory_image = "farming_wheat_seed.png",
|
|
steps = 8,
|
|
minlight = 13,
|
|
maxlight = default.LIGHT_MAX,
|
|
fertility = {"grassland"},
|
|
groups = {flammable = 4},
|
|
place_param2 = 3,
|
|
})
|
|
|
|
minetest.register_craftitem("farming:flour", {
|
|
description = "Flour",
|
|
inventory_image = "farming_flour.png",
|
|
groups = {flammable = 1},
|
|
})
|
|
|
|
minetest.register_craftitem("farming:bread", {
|
|
description = "Bread",
|
|
inventory_image = "farming_bread.png",
|
|
on_use = minetest.item_eat(5),
|
|
groups = {flammable = 2},
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "shapeless",
|
|
output = "farming:flour",
|
|
recipe = {"farming:wheat", "farming:wheat", "farming:wheat", "farming:wheat"}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "cooking",
|
|
cooktime = 15,
|
|
output = "farming:bread",
|
|
recipe = "farming:flour"
|
|
})
|
|
|
|
|
|
-- Cotton
|
|
|
|
farming.register_plant("farming:cotton", {
|
|
description = "Cotton Seed",
|
|
inventory_image = "farming_cotton_seed.png",
|
|
steps = 8,
|
|
minlight = 13,
|
|
maxlight = default.LIGHT_MAX,
|
|
fertility = {"grassland", "desert"},
|
|
groups = {flammable = 4},
|
|
})
|
|
|
|
minetest.register_craftitem("farming:string", {
|
|
description = "String",
|
|
inventory_image = "farming_string.png",
|
|
groups = {flammable = 2},
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "wool:white",
|
|
recipe = {
|
|
{"farming:cotton", "farming:cotton"},
|
|
{"farming:cotton", "farming:cotton"},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "farming:string 2",
|
|
recipe = {
|
|
{"farming:cotton"},
|
|
{"farming:cotton"},
|
|
}
|
|
})
|
|
|
|
|
|
-- Straw
|
|
|
|
minetest.register_craft({
|
|
output = "farming:straw 3",
|
|
recipe = {
|
|
{"farming:wheat", "farming:wheat", "farming:wheat"},
|
|
{"farming:wheat", "farming:wheat", "farming:wheat"},
|
|
{"farming:wheat", "farming:wheat", "farming:wheat"},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "farming:wheat 3",
|
|
recipe = {
|
|
{"farming:straw"},
|
|
}
|
|
})
|
|
|
|
|
|
-- Fuels
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "farming:straw",
|
|
burntime = 3,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "farming:wheat",
|
|
burntime = 1,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "farming:cotton",
|
|
burntime = 1,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "farming:string",
|
|
burntime = 1,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "farming:hoe_wood",
|
|
burntime = 5,
|
|
})
|