summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compatibility.lua63
-rw-r--r--textures/banana_single.pngbin0 -> 200 bytes
-rw-r--r--textures/farming_orange.pngbin0 -> 236 bytes
-rw-r--r--textures/strawberry.pngbin0 -> 382 bytes
4 files changed, 55 insertions, 8 deletions
diff --git a/compatibility.lua b/compatibility.lua
index b1c398b..8d24daf 100644
--- a/compatibility.lua
+++ b/compatibility.lua
@@ -7,9 +7,28 @@ if eth then
minetest.register_alias("farming_plus:banana_leaves", "ethereal:bananaleaves")
minetest.register_alias("farming_plus:banana", "ethereal:banana")
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_leaves", "default:leaves")
- minetest.register_alias("farming_plus:banana", "default:apple")
+ minetest.register_alias("farming_plus:banana", "ethereal:banana")
end
-- Carrot
@@ -34,9 +53,30 @@ minetest.register_alias("farming_plus:orange", "farming:tomato_8")
if eth then
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")
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")
end
@@ -49,15 +89,15 @@ minetest.register_alias("farming_plus:potato_seed", "farming:potato")
-- Pumpkin
minetest.register_alias("farming:pumpkin_seed", "farming:pumpkin_slice")
-minetest.register_alias("farming:pumpkin_face", "farming:pumpkin")
-minetest.register_alias("farming:pumpkin_face_light", "farming:jackolantern")
+minetest.register_alias("farming:pumpkin_face", "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_side", "air")
minetest.register_alias("farming:big_pumpkin_corner", "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_light", "farming:jackolantern")
+minetest.register_alias("farming:scarecrow_light", "farming:jackolantern_on")
minetest.register_alias("farming:pumpkin_flour", "farming:pumpkin_dough")
-- Rhubarb
@@ -76,8 +116,15 @@ if eth then
minetest.register_alias("farming_plus:strawberry_3", "ethereal:strawberry_5")
minetest.register_alias("farming_plus:strawberry", "ethereal:strawberry_7")
else
- minetest.register_alias("farming_plus:strawberry_item", "farming:raspberries")
- minetest.register_alias("farming_plus:strawberry_seed", "farming:raspberries")
+ minetest.register_craftitem(":ethereal:strawberry", {
+ 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_2", "farming:raspberry_2")
minetest.register_alias("farming_plus:strawberry_3", "farming:raspberry_3")
diff --git a/textures/banana_single.png b/textures/banana_single.png
new file mode 100644
index 0000000..b15ed2f
--- /dev/null
+++ b/textures/banana_single.png
Binary files differ
diff --git a/textures/farming_orange.png b/textures/farming_orange.png
new file mode 100644
index 0000000..8b9ec29
--- /dev/null
+++ b/textures/farming_orange.png
Binary files differ
diff --git a/textures/strawberry.png b/textures/strawberry.png
new file mode 100644
index 0000000..5b43e6b
--- /dev/null
+++ b/textures/strawberry.png
Binary files differ