Add 'mods/default/food.lua'

This commit is contained in:
thunderdog1138 2020-05-17 20:52:00 +00:00
parent afb3693690
commit ca4b489300
1 changed files with 22 additions and 0 deletions

22
mods/default/food.lua Normal file
View File

@ -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(),
})