upgrade beds,boats,bucket,carts,creative,doors,farming,fire,stairs,tnt,wool
* beds https://codeberg.org/minenux/minetest-mod-beds/commit/7b6fae96d5e273dad9a373e63eb958145c9bfbef
* boats https://codeberg.org/minenux/minetest-mod-boats/commit/3832de08f705d5d2e7b5a971760e5fad1653305f
* bucket https://codeberg.org/minenux/minetest-mod-bucket/commit/1d9f32295aba3ef2a86be302050f34c1766e93d5
* carts https://codeberg.org/minenux/minetest-mod-carts/commit/dcbca916cffdcec281f0129ef350db2686bda933
* creative https://codeberg.org/minenux/minetest-mod-creative/commit/ca09e773701f834fec7de18bf13598b3323778db
* doors https://codeberg.org/minenux/minetest-mod-doors/commit/a89ab0454deb4933b6e4971c57055c40b7938e5b
* farming https://codeberg.org/minenux/minetest-mod-farming/commit/00e4b3cb89d3c1b1d66b6af4821191c1d667e1bc
* fire https://codeberg.org/minenux/minetest-mod-fire/commit/4e5f7ad55314bd9b126fb133cfc5a32fa58b20d2
* stairs https://codeberg.org/minenux/minetest-mod-stairs/commit/c3a5af6c452daca599d226df694df1b75f15c110
* tnt https://codeberg.org/minenux/minetest-mod-tnt/commit/8195861f905a90b53cd52348deb34df41a053027
* wool https://codeberg.org/minenux/minetest-mod-wool/commit/de642a08e80bfd7a4a1e5629e50458a609dbda3a
2022-03-09 12:47:54 -04:00
|
|
|
|
|
|
|
local S = farming.intllib
|
|
|
|
|
|
|
|
--= Helpers
|
|
|
|
|
|
|
|
local eth = minetest.get_modpath("ethereal")
|
|
|
|
local alias = function(orig, new)
|
|
|
|
minetest.register_alias(orig, new)
|
|
|
|
end
|
|
|
|
|
2023-06-07 17:24:12 -04:00
|
|
|
local boxapple = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.1875, -0.4375, -0.1875, 0.1875, 0.0625, 0.1875}, -- Bottom
|
|
|
|
{-0.25, -0.375, -0.25, 0.25, 0, 0.25}, -- Middle
|
|
|
|
-- {-0.1875, 0.0625, -0.1875, 0.1875, 0, 0.1875}, -- Top
|
|
|
|
{-0.0625, 0.0625, -0.0625, 0, 0.125, 0}, -- NodeBox4
|
|
|
|
{0.0625, 0.0625, 0.0625, 0, 0.125, 0}, -- NodeBox5
|
|
|
|
{0.0625, 0.125, -0.0625, 0, 0.1875, 0}, -- NodeBox4
|
|
|
|
{-0.0625, 0.125, 0.0625, 0, 0.1875, 0}, -- NodeBox5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
upgrade beds,boats,bucket,carts,creative,doors,farming,fire,stairs,tnt,wool
* beds https://codeberg.org/minenux/minetest-mod-beds/commit/7b6fae96d5e273dad9a373e63eb958145c9bfbef
* boats https://codeberg.org/minenux/minetest-mod-boats/commit/3832de08f705d5d2e7b5a971760e5fad1653305f
* bucket https://codeberg.org/minenux/minetest-mod-bucket/commit/1d9f32295aba3ef2a86be302050f34c1766e93d5
* carts https://codeberg.org/minenux/minetest-mod-carts/commit/dcbca916cffdcec281f0129ef350db2686bda933
* creative https://codeberg.org/minenux/minetest-mod-creative/commit/ca09e773701f834fec7de18bf13598b3323778db
* doors https://codeberg.org/minenux/minetest-mod-doors/commit/a89ab0454deb4933b6e4971c57055c40b7938e5b
* farming https://codeberg.org/minenux/minetest-mod-farming/commit/00e4b3cb89d3c1b1d66b6af4821191c1d667e1bc
* fire https://codeberg.org/minenux/minetest-mod-fire/commit/4e5f7ad55314bd9b126fb133cfc5a32fa58b20d2
* stairs https://codeberg.org/minenux/minetest-mod-stairs/commit/c3a5af6c452daca599d226df694df1b75f15c110
* tnt https://codeberg.org/minenux/minetest-mod-tnt/commit/8195861f905a90b53cd52348deb34df41a053027
* wool https://codeberg.org/minenux/minetest-mod-wool/commit/de642a08e80bfd7a4a1e5629e50458a609dbda3a
2022-03-09 12:47:54 -04:00
|
|
|
--= Overrides (add food_* group to apple and brown mushroom)
|
|
|
|
|
|
|
|
minetest.override_item("default:apple", {
|
2023-06-07 17:24:12 -04:00
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = boxapple,
|
|
|
|
selection_box = boxapple,
|
|
|
|
tiles = { -- +Y, -Y, +X, -X, +Z, -Z
|
|
|
|
"apple_bottom.png^apple_top_overlay.png",
|
|
|
|
"apple_bottom.png",
|
|
|
|
"apple_side.png",
|
|
|
|
"apple_side.png",
|
|
|
|
"apple_side.png",
|
|
|
|
"apple_side.png",
|
|
|
|
},
|
upgrade beds,boats,bucket,carts,creative,doors,farming,fire,stairs,tnt,wool
* beds https://codeberg.org/minenux/minetest-mod-beds/commit/7b6fae96d5e273dad9a373e63eb958145c9bfbef
* boats https://codeberg.org/minenux/minetest-mod-boats/commit/3832de08f705d5d2e7b5a971760e5fad1653305f
* bucket https://codeberg.org/minenux/minetest-mod-bucket/commit/1d9f32295aba3ef2a86be302050f34c1766e93d5
* carts https://codeberg.org/minenux/minetest-mod-carts/commit/dcbca916cffdcec281f0129ef350db2686bda933
* creative https://codeberg.org/minenux/minetest-mod-creative/commit/ca09e773701f834fec7de18bf13598b3323778db
* doors https://codeberg.org/minenux/minetest-mod-doors/commit/a89ab0454deb4933b6e4971c57055c40b7938e5b
* farming https://codeberg.org/minenux/minetest-mod-farming/commit/00e4b3cb89d3c1b1d66b6af4821191c1d667e1bc
* fire https://codeberg.org/minenux/minetest-mod-fire/commit/4e5f7ad55314bd9b126fb133cfc5a32fa58b20d2
* stairs https://codeberg.org/minenux/minetest-mod-stairs/commit/c3a5af6c452daca599d226df694df1b75f15c110
* tnt https://codeberg.org/minenux/minetest-mod-tnt/commit/8195861f905a90b53cd52348deb34df41a053027
* wool https://codeberg.org/minenux/minetest-mod-wool/commit/de642a08e80bfd7a4a1e5629e50458a609dbda3a
2022-03-09 12:47:54 -04:00
|
|
|
groups = {food_apple = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
|
|
|
|
leafdecay = 3, leafdecay_drop = 1}
|
|
|
|
})
|
|
|
|
|
|
|
|
--= Aliases
|
|
|
|
|
|
|
|
-- Banana
|
|
|
|
if eth then
|
|
|
|
alias("farming_plus:banana_sapling", "ethereal:banana_tree_sapling")
|
|
|
|
alias("farming_plus:banana_leaves", "ethereal:bananaleaves")
|
|
|
|
alias("farming_plus:banana", "ethereal:banana")
|
|
|
|
else
|
|
|
|
minetest.register_node(":ethereal:banana", {
|
|
|
|
description = S("Banana"),
|
|
|
|
drawtype = "torchlike",
|
|
|
|
tiles = {"farming_banana_single.png"},
|
|
|
|
inventory_image = "farming_banana_single.png",
|
|
|
|
wield_image = "farming_banana_single.png",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.2, -0.5, -0.2, 0.2, 0.2, 0.2}
|
|
|
|
},
|
|
|
|
groups = {food_banana = 1, fleshy = 3, dig_immediate = 3, flammable = 2},
|
|
|
|
on_use = minetest.item_eat(2),
|
|
|
|
sounds = default.node_sound_leaves_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(":ethereal:bananaleaves", {
|
|
|
|
description = S("Banana Leaves"),
|
|
|
|
tiles = {"farming_banana_leaf.png"},
|
|
|
|
inventory_image = "farming_banana_leaf.png",
|
|
|
|
wield_image = "farming_banana_leaf.png",
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
|
|
|
sounds = default.node_sound_leaves_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
alias("farming_plus:banana_sapling", "default:sapling")
|
|
|
|
alias("farming_plus:banana_leaves", "ethereal:bananaleaves")
|
|
|
|
alias("farming_plus:banana", "ethereal:banana")
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Carrot
|
|
|
|
alias("farming_plus:carrot_seed", "farming:carrot")
|
|
|
|
alias("farming_plus:carrot_1", "farming:carrot_1")
|
|
|
|
alias("farming_plus:carrot_2", "farming:carrot_4")
|
|
|
|
alias("farming_plus:carrot_3", "farming:carrot_6")
|
|
|
|
alias("farming_plus:carrot", "farming:carrot_8")
|
|
|
|
alias("farming_plus:carrot_item", "farming:carrot")
|
|
|
|
|
|
|
|
-- Cocoa
|
|
|
|
alias("farming_plus:cocoa_sapling", "farming:cocoa_beans")
|
|
|
|
alias("farming_plus:cocoa_leaves", "default:leaves")
|
|
|
|
alias("farming_plus:cocoa", "default:apple")
|
|
|
|
alias("farming_plus:cocoa_bean", "farming:cocoa_beans")
|
|
|
|
|
|
|
|
-- Orange
|
|
|
|
alias("farming_plus:orange_1", "farming:tomato_1")
|
|
|
|
alias("farming_plus:orange_2", "farming:tomato_4")
|
|
|
|
alias("farming_plus:orange_3", "farming:tomato_6")
|
|
|
|
|
|
|
|
if eth then
|
|
|
|
alias("farming_plus:orange_item", "ethereal:orange")
|
|
|
|
alias("farming_plus:orange", "ethereal:orange")
|
|
|
|
alias("farming_plus:orange_seed", "ethereal:orange_tree_sapling")
|
|
|
|
else
|
|
|
|
minetest.register_node(":ethereal:orange", {
|
|
|
|
description = S("Orange"),
|
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = {"farming_orange.png"},
|
|
|
|
inventory_image = "farming_orange.png",
|
|
|
|
wield_image = "farming_orange.png",
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2}
|
|
|
|
},
|
|
|
|
groups = {food_orange = 1, fleshy = 3, dig_immediate = 3, flammable = 2},
|
|
|
|
on_use = minetest.item_eat(4),
|
|
|
|
sounds = default.node_sound_leaves_defaults()
|
|
|
|
})
|
|
|
|
|
|
|
|
alias("farming_plus:orange_item", "ethereal:orange")
|
|
|
|
alias("farming_plus:orange", "ethereal:orange")
|
|
|
|
alias("farming_plus:orange_seed", "default:sapling")
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Potato
|
|
|
|
alias("farming_plus:potato_item", "farming:potato")
|
|
|
|
alias("farming_plus:potato_1", "farming:potato_1")
|
|
|
|
alias("farming_plus:potato_2", "farming:potato_2")
|
|
|
|
alias("farming_plus:potato", "farming:potato_3")
|
|
|
|
alias("farming_plus:potato_seed", "farming:potato")
|
|
|
|
|
|
|
|
-- Pumpkin
|
|
|
|
alias("farming:pumpkin_seed", "farming:pumpkin_slice")
|
|
|
|
alias("farming:pumpkin_face", "farming:jackolantern")
|
|
|
|
alias("farming:pumpkin_face_light", "farming:jackolantern_on")
|
|
|
|
alias("farming:big_pumpkin", "farming:jackolantern")
|
|
|
|
alias("farming:big_pumpkin_side", "air")
|
|
|
|
alias("farming:big_pumpkin_top", "air")
|
|
|
|
alias("farming:big_pumpkin_corner", "air")
|
|
|
|
alias("farming:scarecrow", "farming:jackolantern")
|
|
|
|
alias("farming:scarecrow_light", "farming:jackolantern_on")
|
|
|
|
alias("farming:pumpkin_flour", "farming:pumpkin_dough")
|
|
|
|
|
|
|
|
-- Rhubarb
|
|
|
|
alias("farming_plus:rhubarb_seed", "farming:rhubarb")
|
|
|
|
alias("farming_plus:rhubarb_1", "farming:rhubarb_1")
|
|
|
|
alias("farming_plus:rhubarb_2", "farming:rhubarb_2")
|
|
|
|
alias("farming_plus:rhubarb", "farming:rhubarb_3")
|
|
|
|
alias("farming_plus:rhubarb_item", "farming:rhubarb")
|
|
|
|
|
|
|
|
-- Strawberry
|
2023-06-06 11:30:05 -04:00
|
|
|
alias("farming_plus:strawberry_item", "ethereal:strawberry")
|
|
|
|
alias("farming_plus:strawberry_seed", "ethereal:strawberry")
|
|
|
|
alias("farming_plus:strawberry_1", "ethereal:strawberry_1")
|
|
|
|
alias("farming_plus:strawberry_2", "ethereal:strawberry_3")
|
|
|
|
alias("farming_plus:strawberry_3", "ethereal:strawberry_5")
|
|
|
|
alias("farming_plus:strawberry", "ethereal:strawberry_7")
|
upgrade beds,boats,bucket,carts,creative,doors,farming,fire,stairs,tnt,wool
* beds https://codeberg.org/minenux/minetest-mod-beds/commit/7b6fae96d5e273dad9a373e63eb958145c9bfbef
* boats https://codeberg.org/minenux/minetest-mod-boats/commit/3832de08f705d5d2e7b5a971760e5fad1653305f
* bucket https://codeberg.org/minenux/minetest-mod-bucket/commit/1d9f32295aba3ef2a86be302050f34c1766e93d5
* carts https://codeberg.org/minenux/minetest-mod-carts/commit/dcbca916cffdcec281f0129ef350db2686bda933
* creative https://codeberg.org/minenux/minetest-mod-creative/commit/ca09e773701f834fec7de18bf13598b3323778db
* doors https://codeberg.org/minenux/minetest-mod-doors/commit/a89ab0454deb4933b6e4971c57055c40b7938e5b
* farming https://codeberg.org/minenux/minetest-mod-farming/commit/00e4b3cb89d3c1b1d66b6af4821191c1d667e1bc
* fire https://codeberg.org/minenux/minetest-mod-fire/commit/4e5f7ad55314bd9b126fb133cfc5a32fa58b20d2
* stairs https://codeberg.org/minenux/minetest-mod-stairs/commit/c3a5af6c452daca599d226df694df1b75f15c110
* tnt https://codeberg.org/minenux/minetest-mod-tnt/commit/8195861f905a90b53cd52348deb34df41a053027
* wool https://codeberg.org/minenux/minetest-mod-wool/commit/de642a08e80bfd7a4a1e5629e50458a609dbda3a
2022-03-09 12:47:54 -04:00
|
|
|
|
|
|
|
-- Tomato
|
|
|
|
alias("farming_plus:tomato_seed", "farming:tomato")
|
|
|
|
alias("farming_plus:tomato_item", "farming:tomato")
|
|
|
|
alias("farming_plus:tomato_1", "farming:tomato_2")
|
|
|
|
alias("farming_plus:tomato_2", "farming:tomato_4")
|
|
|
|
alias("farming_plus:tomato_3", "farming:tomato_6")
|
|
|
|
alias("farming_plus:tomato", "farming:tomato_8")
|
|
|
|
|
|
|
|
-- Weed
|
|
|
|
alias("farming:weed", "default:grass_2")
|