summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh-v-smacker <hans-von-smacker+github@gmail.com>2017-11-22 02:52:03 +0300
committerh-v-smacker <hans-von-smacker+github@gmail.com>2017-11-22 02:52:03 +0300
commit035f0866cb6eb38ef3ffbc584b0e22a4df2fb16e (patch)
tree68fb395936bf5a765164ceef1efc41b501c8b67c
parent0483a7832407708979f72b0f971bee22aa5f6057 (diff)
Introducing Honey Jar
-rw-r--r--init.lua54
-rw-r--r--textures/honey_jar.pngbin0 -> 552 bytes
2 files changed, 31 insertions, 23 deletions
diff --git a/init.lua b/init.lua
index 5c12ef8..079373f 100644
--- a/init.lua
+++ b/init.lua
@@ -10,7 +10,7 @@
internal_name_of_the_product = {
proper_name = Human-readable name,
found_in = mod name where the source object is introduced
- obj_name = name of source object (internal, without "modname:")
+ obj_name = name of source object
orig_nutritional_value = self-explanatory
amount = how many objects are needed to fill a bottle /not implemented/
sugar = boolean, set if needs sugar (jams) or not
@@ -22,7 +22,7 @@ local canned_food_definitions = {
apple_jam = {
proper_name = "Apple jam",
found_in = "default",
- obj_name = "apple",
+ obj_name = "default:apple",
orig_nutritional_value = 2,
amount = 3,
sugar = false -- must not use sugar to be available in vanilla
@@ -30,7 +30,7 @@ local canned_food_definitions = {
dandelion_jam = {
proper_name = "Dandelion jam",
found_in = "flowers",
- obj_name = "dandelion_yellow",
+ obj_name = "flowers:dandelion_yellow",
orig_nutritional_value = 1,
amount = 5,
sugar = false -- must not use sugar to be available in vanilla
@@ -38,7 +38,7 @@ local canned_food_definitions = {
rose_jam = {
proper_name = "Rose petal jam",
found_in = "flowers",
- obj_name = "rose",
+ obj_name = "flowers:rose",
orig_nutritional_value = 1,
amount = 5,
sugar = false -- must not use sugar to be available in vanilla
@@ -46,7 +46,7 @@ local canned_food_definitions = {
canned_mushrooms = {
proper_name = "Canned mushrooms",
found_in = "flowers",
- obj_name = "mushroom_brown",
+ obj_name = "flowers:mushroom_brown",
orig_nutritional_value = 1,
amount = 5,
sugar = false
@@ -54,7 +54,7 @@ local canned_food_definitions = {
orange_jam = {
proper_name = "Orange jam",
found_in = "ethereal",
- obj_name = "orange",
+ obj_name = "ethereal:orange",
orig_nutritional_value = 2,
amount = 3,
sugar = true
@@ -62,7 +62,7 @@ local canned_food_definitions = {
banana_jam = {
proper_name = "Banana jam",
found_in = "ethereal",
- obj_name = "banana",
+ obj_name = "ethereal:banana",
orig_nutritional_value = 1,
amount = 5,
sugar = true
@@ -70,7 +70,7 @@ local canned_food_definitions = {
strawberry_jam = {
proper_name = "Strawberry jam",
found_in = "ethereal",
- obj_name = "strawberry",
+ obj_name = "ethereal:strawberry",
orig_nutritional_value = 1,
amount = 5,
sugar = true
@@ -78,7 +78,7 @@ local canned_food_definitions = {
blueberry_jam = {
proper_name = "Blueberry jam",
found_in = "farming",
- obj_name = "blueberries",
+ obj_name = "farming:blueberries",
orig_nutritional_value = 1,
amount = 6,
sugar = true
@@ -86,7 +86,7 @@ local canned_food_definitions = {
raspberry_jam = {
proper_name = "Raspberry jam",
found_in = "farming",
- obj_name = "raspberries",
+ obj_name = "farming:raspberries",
orig_nutritional_value = 1,
amount = 6,
sugar = true
@@ -94,7 +94,7 @@ local canned_food_definitions = {
grape_jam = {
proper_name = "Grape jam",
found_in = "farming",
- obj_name = "grapes",
+ obj_name = "farming:grapes",
orig_nutritional_value = 2,
amount = 4,
sugar = true
@@ -102,7 +102,7 @@ local canned_food_definitions = {
rhubarb_jam = {
proper_name = "Rhubarb jam",
found_in = "farming",
- obj_name = "rhubarb",
+ obj_name = "farming:rhubarb",
orig_nutritional_value = 1,
amount = 6,
sugar = true
@@ -110,7 +110,7 @@ local canned_food_definitions = {
melon_jam = {
proper_name = "Melon jam",
found_in = "farming",
- obj_name = "melon_slice",
+ obj_name = "farming:melon_slice",
orig_nutritional_value = 2,
amount = 3,
sugar = true
@@ -118,7 +118,7 @@ local canned_food_definitions = {
canned_carrot = {
proper_name = "Canned carrots",
found_in = "farming",
- obj_name = "carrot",
+ obj_name = "farming:carrot",
orig_nutritional_value = 4,
amount = 3,
sugar = false
@@ -126,7 +126,7 @@ local canned_food_definitions = {
-- canned_potato = {
-- proper_name = "Canned potatoes",
-- found_in = "farming",
--- obj_name = "potato",
+-- obj_name = "farming:potato",
-- orig_nutritional_value = 1,
-- amount = 5,
-- sugar = false
@@ -135,7 +135,7 @@ local canned_food_definitions = {
-- aka pickles
proper_name = "Pickles",
found_in = "farming",
- obj_name = "cucumber",
+ obj_name = "farming:cucumber",
orig_nutritional_value = 4,
amount = 3,
sugar = false
@@ -143,7 +143,7 @@ local canned_food_definitions = {
canned_tomato = {
proper_name = "Canned tomatoes",
found_in = "farming",
- obj_name = "tomato",
+ obj_name = "farming:tomato",
orig_nutritional_value = 4,
amount = 3,
sugar = false
@@ -151,7 +151,7 @@ local canned_food_definitions = {
canned_corn = {
proper_name = "Canned corn",
found_in = "farming",
- obj_name = "corn",
+ obj_name = "farming:corn",
orig_nutritional_value = 3,
amount = 3,
sugar = false
@@ -159,7 +159,7 @@ local canned_food_definitions = {
canned_beans = {
proper_name = "Canned beans",
found_in = "farming",
- obj_name = "beans",
+ obj_name = "farming:beans",
orig_nutritional_value = 1,
amount = 6,
sugar = false
@@ -167,7 +167,7 @@ local canned_food_definitions = {
canned_coconut = {
proper_name = "Canned coconut",
found_in = "ethereal",
- obj_name = "coconut_slice",
+ obj_name = "ethereal:coconut_slice",
orig_nutritional_value = 1,
amount = 5,
sugar = false
@@ -175,11 +175,19 @@ local canned_food_definitions = {
canned_pumpkin = {
proper_name = "Canned pumpkin puree",
found_in = "farming",
- obj_name = "pumpkin_slice",
+ obj_name = "farming:pumpkin_slice",
orig_nutritional_value = 2,
amount = 3,
sugar = false
},
+ honey_jar = {
+ proper_name = "A jar of honey",
+ found_in = "mobs_animal",
+ obj_name = "mobs:honey",
+ orig_nutritional_value = 4,
+ amount = 3,
+ sugar = false
+ },
}
@@ -229,14 +237,14 @@ for product, def in pairs(canned_food_definitions) do
type = "shapeless",
output = "canned_food:" .. product,
recipe = {"vessels:glass_bottle", "farming:sugar",
- def.found_in .. ":" .. def.obj_name},
+ def.obj_name},
})
else
minetest.register_craft({
type = "shapeless",
output = "canned_food:" .. product,
recipe = {"vessels:glass_bottle",
- def.found_in .. ":" .. def.obj_name},
+ def.obj_name},
})
end
end
diff --git a/textures/honey_jar.png b/textures/honey_jar.png
new file mode 100644
index 0000000..59dc491
--- /dev/null
+++ b/textures/honey_jar.png
Binary files differ