summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-06-21 08:57:06 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2018-06-21 08:57:06 +0100
commitb6a970b5bdd7862ad50f342ed8e2c365736cb938 (patch)
tree7b01d5dcd5b68be45c28f9777c86bff15033ef69
parent10abb996c10c310f8cea66e7e085b852897a0a23 (diff)
removed drinking_cup, changed coffee recipe, recycle mixing bowl recipe
-rw-r--r--crops/coffee.lua71
-rw-r--r--textures/farming_coffee_cup_hot.pngbin183 -> 0 bytes
-rw-r--r--utensils.lua9
3 files changed, 22 insertions, 58 deletions
diff --git a/crops/coffee.lua b/crops/coffee.lua
index ab93d06..f98694b 100644
--- a/crops/coffee.lua
+++ b/crops/coffee.lua
@@ -11,36 +11,10 @@ minetest.register_craftitem("farming:coffee_beans", {
end,
})
-
--- drinking cup
-minetest.register_node("farming:drinking_cup", {
- description = S("Drinking Cup (empty)"),
- drawtype = "plantlike",
- tiles = {"vessels_drinking_cup.png"},
- inventory_image = "vessels_drinking_cup.png",
- wield_image = "vessels_drinking_cup.png",
- paramtype = "light",
- walkable = false,
- selection_box = {
- type = "fixed",
- fixed = {-0.25, -0.5, -0.25, 0.25, 0.25, 0.25}
- },
- groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
- sounds = default.node_sound_glass_defaults(),
-})
-
-minetest.register_craft( {
- output = "farming:drinking_cup 5",
- recipe = {
- { "default:glass", "", "default:glass" },
- {"", "default:glass",""},
- }
-})
-
-- cold cup of coffee
minetest.register_node("farming:coffee_cup", {
- description = S("Cold Cup of Coffee"),
- drawtype = "plantlike",
+ description = S("Cup of Coffee"),
+ drawtype = "torchlike", --"plantlike",
tiles = {"farming_coffee_cup.png"},
inventory_image = "farming_coffee_cup.png",
wield_image = "farming_coffee_cup.png",
@@ -51,41 +25,22 @@ minetest.register_node("farming:coffee_cup", {
fixed = {-0.25, -0.5, -0.25, 0.25, 0.25, 0.25}
},
groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
- on_use = minetest.item_eat(2, "farming:drinking_cup"),
+ on_use = minetest.item_eat(2, "vessels:drinking_glass"),
sounds = default.node_sound_glass_defaults(),
})
+minetest.register_alias("farming:coffee_cup_hot", "farming:coffee_cup")
+minetest.register_alias("farming:drinking_cup", "vessels:drinking_glass")
+
minetest.register_craft( {
output = "farming:coffee_cup",
- recipe = {
- {"farming:drinking_cup", "group:food_coffee","bucket:bucket_water"},
- },
- replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
-})
-
-minetest.register_craft({
- type = "cooking",
- cooktime = 5,
- output = "farming:coffee_cup_hot",
- recipe = "farming:coffee_cup"
-})
-
--- hot cup of coffee
-minetest.register_node("farming:coffee_cup_hot", {
- description = S("Hot Cup of Coffee"),
- drawtype = "plantlike",
- tiles = {"farming_coffee_cup_hot.png"},
- inventory_image = "farming_coffee_cup_hot.png",
- wield_image = "farming_coffee_cup_hot.png",
- paramtype = "light",
- walkable = false,
- selection_box = {
- type = "fixed",
- fixed = {-0.25, -0.5, -0.25, 0.25, 0.25, 0.25}
- },
- groups = {vessel = 1, dig_immediate = 3, attached_node = 1},
- on_use = minetest.item_eat(3, "farming:drinking_cup"),
- sounds = default.node_sound_glass_defaults(),
+ type = "shapeless",
+ recipe = {"vessels:drinking_glass", "group:food_coffee",
+ "bucket:bucket_water", "group:food_saucepan"},
+ replacements = {
+ {"bucket:bucket_water", "bucket:bucket_empty"},
+ {"group:food_saucepan", "farming:saucepan"},
+ }
})
-- coffee definition
diff --git a/textures/farming_coffee_cup_hot.png b/textures/farming_coffee_cup_hot.png
deleted file mode 100644
index f4fae90..0000000
--- a/textures/farming_coffee_cup_hot.png
+++ /dev/null
Binary files differ
diff --git a/utensils.lua b/utensils.lua
index 855af90..35fe7ed 100644
--- a/utensils.lua
+++ b/utensils.lua
@@ -147,3 +147,12 @@ minetest.register_craft({
{"", "default:glass", ""},
}
})
+
+minetest.register_craft( {
+ type = "shapeless",
+ output = "vessels:glass_fragments",
+ recipe = {
+ "farming:mixing_bowl",
+ "farming:mixing_bowl",
+ },
+})