summaryrefslogtreecommitdiff
path: root/sugar.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-03-12 16:45:15 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-03-12 16:45:15 +0000
commit77198100f3bfa57de2d616bee3d2dfd3a48c02a9 (patch)
tree3b63fb8c7408cf072f669670012b4249a5573e4c /sugar.lua
parentbb208f8d5b9c4926a2651d2734fac85a0e7902e8 (diff)
added food groups to make items more compatible with other mods
Diffstat (limited to 'sugar.lua')
-rw-r--r--sugar.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/sugar.lua b/sugar.lua
index 012a987..11b6461 100644
--- a/sugar.lua
+++ b/sugar.lua
@@ -6,6 +6,7 @@ local S = farming.intllib
minetest.register_craftitem("farming:sugar", {
description = S("Sugar"),
inventory_image = "farming_sugar.png",
+ groups = {food_sugar = 1, flammable = 3},
})
minetest.register_craft({
@@ -25,7 +26,8 @@ minetest.register_node("farming:salt", {
drawtype = "plantlike",
paramtype = "light",
tiles = {"farming_salt.png"},
- groups = {vessel = 1, salt = 1, dig_immediate = 3, attached_node = 1},
+ groups = {food_salt = 1, salt = 1, vessel = 1, dig_immediate = 3,
+ attached_node = 1},
sounds = default.node_sound_glass_defaults(),
selection_box = {
type = "fixed",