Browse Source

add bananaleaves for compatibility if ethereal isnt found

tags/20181016
TenPlus1 1 year ago
parent
commit
7b52870d54
2 changed files with 15 additions and 3 deletions
  1. +15
    -3
      compatibility.lua
  2. BIN
      textures/banana_leaf.png

+ 15
- 3
compatibility.lua View File

@@ -1,19 +1,18 @@

--= Helpers

local eth = minetest.get_modpath("ethereal")
local alias = function(orig, new)
minetest.register_alias(orig, new)
end

--= Overrides
--= Overrides (add food_* group to apple and brown mushroom)

minetest.override_item("default:apple", {
groups = {food_apple = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
leafdecay = 3, leafdecay_drop = 1},
})

if minetest.registered_nodes["flowers:mushroom_brown"] then
minetest.override_item("flowers:mushroom_brown", {
light_source = 1,
@@ -47,8 +46,19 @@ else
sounds = default.node_sound_leaves_defaults(),
})

minetest.register_node(":ethereal:bananaleaves", {
description = "Banana Leaves",
tiles = {"banana_leaf.png"},
inventory_image = "banana_leaf.png",
wield_image = "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", "default:leaves")
alias("farming_plus:banana_leaves", "ethereal:bananaleaves")
alias("farming_plus:banana", "ethereal:banana")
end

@@ -150,7 +160,6 @@ else
alias("farming_plus:strawberry", "farming:raspberry_4")
end


-- Tomato
alias("farming_plus:tomato_seed", "farming:tomato")
alias("farming_plus:tomato_item", "farming:tomato")


BIN
textures/banana_leaf.png View File

Before After
Width: 32  |  Height: 32  |  Size: 421B

Loading…
Cancel
Save