summaryrefslogtreecommitdiff
path: root/fruits.lua
blob: 7322f7d5e033ab35a732585bb467614bc79c40cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/fruits.lua
-- adds fruits
-- =====================================
-- [regis-food] Oranges
-- =====================================

print ("RubenFood [Master] - Loading Fruits")

minetest.register_node(":default:orange", {
	description = "Orange Fruit",
	drawtype = "plantlike",
	visual_scale = 1.0,
	tiles = {"food_orange.png"},
	inventory_image = "food_orange.png",
	paramtype = "light",
	sunlight_propagates = true,
	walkable = false,
	groups = {fleshy=3,dig_immediate=3,flammable=2},
	on_use = minetest.item_eat(4),
	sounds = default.node_sound_defaults(),
})