Improved farming_plus compatibility by adding banana, orange and strawberry items

This commit is contained in:
TenPlus1 2016-11-03 10:03:08 +00:00
parent 62246da3b8
commit c05d499620
4 changed files with 55 additions and 8 deletions

View File

@ -7,9 +7,28 @@ if eth then
minetest.register_alias("farming_plus:banana_leaves", "ethereal:bananaleaves") minetest.register_alias("farming_plus:banana_leaves", "ethereal:bananaleaves")
minetest.register_alias("farming_plus:banana", "ethereal:banana") minetest.register_alias("farming_plus:banana", "ethereal:banana")
else else
minetest.register_node(":ethereal:banana", {
description = "Banana",
drawtype = "torchlike",
visual_scale = 1.0,
tiles = {"banana_single.png"},
inventory_image = "banana_single.png",
wield_image = "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 = {fleshy = 3, dig_immediate = 3, flammable = 2},
on_use = minetest.item_eat(2),
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_alias("farming_plus:banana_sapling", "default:sapling") minetest.register_alias("farming_plus:banana_sapling", "default:sapling")
minetest.register_alias("farming_plus:banana_leaves", "default:leaves") minetest.register_alias("farming_plus:banana_leaves", "default:leaves")
minetest.register_alias("farming_plus:banana", "default:apple") minetest.register_alias("farming_plus:banana", "ethereal:banana")
end end
-- Carrot -- Carrot
@ -34,9 +53,30 @@ minetest.register_alias("farming_plus:orange", "farming:tomato_8")
if eth then if eth then
minetest.register_alias("farming_plus:orange_item", "ethereal:orange") minetest.register_alias("farming_plus:orange_item", "ethereal:orange")
minetest.register_alias("farming_plus:orange", "ethereal:orange")
minetest.register_alias("farming_plus:orange_seed", "ethereal:orange_tree_sapling") minetest.register_alias("farming_plus:orange_seed", "ethereal:orange_tree_sapling")
else else
minetest.register_alias("farming_plus:orange_item", "default:apple") minetest.register_node(":ethereal:orange", {
description = "Orange",
drawtype = "plantlike",
visual_scale = 1.0,
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 = {fleshy = 3, dig_immediate = 3, flammable = 2},
on_use = minetest.item_eat(4),
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_alias("farming_plus:orange_item", "ethereal:orange")
minetest.register_alias("farming_plus:orange", "ethereal:orange")
minetest.register_alias("farming_plus:orange_seed", "default:sapling") minetest.register_alias("farming_plus:orange_seed", "default:sapling")
end end
@ -49,15 +89,15 @@ minetest.register_alias("farming_plus:potato_seed", "farming:potato")
-- Pumpkin -- Pumpkin
minetest.register_alias("farming:pumpkin_seed", "farming:pumpkin_slice") minetest.register_alias("farming:pumpkin_seed", "farming:pumpkin_slice")
minetest.register_alias("farming:pumpkin_face", "farming:pumpkin") minetest.register_alias("farming:pumpkin_face", "farming:jackolantern")
minetest.register_alias("farming:pumpkin_face_light", "farming:jackolantern") minetest.register_alias("farming:pumpkin_face_light", "farming:jackolantern_on")
minetest.register_alias("farming:big_pumpkin", "farming:pumpkin") minetest.register_alias("farming:big_pumpkin", "farming:pumpkin")
minetest.register_alias("farming:big_pumpkin_side", "air") minetest.register_alias("farming:big_pumpkin_side", "air")
minetest.register_alias("farming:big_pumpkin_corner", "air") minetest.register_alias("farming:big_pumpkin_corner", "air")
minetest.register_alias("farming:big_pumpkin_top", "air") minetest.register_alias("farming:big_pumpkin_top", "air")
minetest.register_alias("farming:scarecrow", "farming:pumpkin") minetest.register_alias("farming:scarecrow", "farming:jackolantern")
minetest.register_alias("farming:scarecrow_bottom", "default:fence_wood") minetest.register_alias("farming:scarecrow_bottom", "default:fence_wood")
minetest.register_alias("farming:scarecrow_light", "farming:jackolantern") minetest.register_alias("farming:scarecrow_light", "farming:jackolantern_on")
minetest.register_alias("farming:pumpkin_flour", "farming:pumpkin_dough") minetest.register_alias("farming:pumpkin_flour", "farming:pumpkin_dough")
-- Rhubarb -- Rhubarb
@ -76,8 +116,15 @@ if eth then
minetest.register_alias("farming_plus:strawberry_3", "ethereal:strawberry_5") minetest.register_alias("farming_plus:strawberry_3", "ethereal:strawberry_5")
minetest.register_alias("farming_plus:strawberry", "ethereal:strawberry_7") minetest.register_alias("farming_plus:strawberry", "ethereal:strawberry_7")
else else
minetest.register_alias("farming_plus:strawberry_item", "farming:raspberries") minetest.register_craftitem(":ethereal:strawberry", {
minetest.register_alias("farming_plus:strawberry_seed", "farming:raspberries") description = "Strawberry",
inventory_image = "strawberry.png",
wield_image = "strawberry.png",
on_use = minetest.item_eat(1),
})
minetest.register_alias("farming_plus:strawberry_item", "ethereal:strawberry")
minetest.register_alias("farming_plus:strawberry_seed", "ethereal:strawberry")
minetest.register_alias("farming_plus:strawberry_1", "farming:raspberry_1") minetest.register_alias("farming_plus:strawberry_1", "farming:raspberry_1")
minetest.register_alias("farming_plus:strawberry_2", "farming:raspberry_2") minetest.register_alias("farming_plus:strawberry_2", "farming:raspberry_2")
minetest.register_alias("farming_plus:strawberry_3", "farming:raspberry_3") minetest.register_alias("farming_plus:strawberry_3", "farming:raspberry_3")

BIN
textures/banana_single.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

BIN
textures/farming_orange.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

BIN
textures/strawberry.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B