From ca4b48930052b9ae5852649e9c326926320c8529 Mon Sep 17 00:00:00 2001 From: thunderdog1138 Date: Sun, 17 May 2020 20:52:00 +0000 Subject: [PATCH] Add 'mods/default/food.lua' --- mods/default/food.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 mods/default/food.lua diff --git a/mods/default/food.lua b/mods/default/food.lua new file mode 100644 index 00000000..31d83f14 --- /dev/null +++ b/mods/default/food.lua @@ -0,0 +1,22 @@ +-- support for MT game translation. +local S = default.get_translator + +-- Jogan Fruit +minetest.register_node("default:jogan_fruit", { + description = S("Jogan Fruit"), + drawtype = "plantlike", + tiles = {"jogan_fruit.png"}, + inventory_image = "jogan_fruit.png", + paramtype = "light", + sunlight_propagates = true, + walkable = false, + is_ground_content = false, + selection_box = { + type = "fixed", + fixed = {-3 / 16, -7 / 16, -3 / 16, 3 / 16, 4 / 16, 3 / 16} + }, + groups = {fleshy = 3, dig_immediate = 3, flammable = 2, + leafdecay = 3, leafdecay_drop = 1, food_apple = 1}, + on_use = minetest.item_eat(2), + sounds = default.node_sound_leaves_defaults(), +}) \ No newline at end of file