diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-05-31 09:36:29 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-05-31 09:36:29 +0100 |
commit | 1a207a8e92e81a1f4d43334ffb21647ee8b38fc9 (patch) | |
tree | 57a6068fa43308a04a83914bf09786592e90f0af | |
parent | 83bd2110257c907d94a5bb7457b7dc5c771a3ecb (diff) |
added cornstarch, rose water and turkish delight
-rw-r--r-- | corn.lua | 16 | ||||
-rw-r--r-- | food.lua | 95 | ||||
-rw-r--r-- | init.lua | 2 | ||||
-rw-r--r-- | sugar.lua | 45 | ||||
-rw-r--r-- | textures/farming_cornstarch.png | bin | 0 -> 176 bytes | |||
-rw-r--r-- | textures/farming_rose_water.png | bin | 0 -> 178 bytes | |||
-rw-r--r-- | textures/farming_turkish_delight.png | bin | 0 -> 156 bytes |
7 files changed, 112 insertions, 46 deletions
@@ -21,6 +21,7 @@ minetest.register_craftitem("farming:corn", { minetest.register_craftitem("farming:corn_cob", { description = S("Corn on the Cob"), inventory_image = "farming_corn_cob.png", + groups = {food_corn_cooked = 1, flammable = 2}, on_use = minetest.item_eat(5), }) @@ -31,6 +32,21 @@ minetest.register_craft({ recipe = "group:food_corn" }) +-- cornstarch +minetest.register_craftitem("farming:cornstarch", { + description = S("Cornstarch"), + inventory_image = "farming_cornstarch.png", + groups = {food_cornstarch = 1, flammable = 2}, +}) + +minetest.register_craft({ + output = "farming:cornstarch", + recipe = { + {"group:food_mortar_pestle", "group:food_corn_cooked", "group:food_baking_tray"}, + {"", "group:food_bowl", ""}, + }, +}) + -- ethanol (thanks to JKMurray for this idea) minetest.register_node("farming:bottle_ethanol", { description = S("Bottle of Ethanol"), diff --git a/food.lua b/food.lua new file mode 100644 index 0000000..0d5807d --- /dev/null +++ b/food.lua @@ -0,0 +1,95 @@ + +local S = farming.intllib + +--= Sugar + +minetest.register_craftitem("farming:sugar", { + description = S("Sugar"), + inventory_image = "farming_sugar.png", + groups = {food_sugar = 1, flammable = 3}, +}) + +minetest.register_craft({ + type = "cooking", + cooktime = 3, + output = "farming:sugar 2", + recipe = "default:papyrus", +}) + + +--= Salt + +minetest.register_node("farming:salt", { + description = ("Salt"), + inventory_image = "farming_salt.png", + wield_image = "farming_salt.png", + drawtype = "plantlike", + visual_scale = 0.8, + paramtype = "light", + tiles = {"farming_salt.png"}, + groups = {food_salt = 1, vessel = 1, dig_immediate = 3, + attached_node = 1}, + sounds = default.node_sound_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25} + }, +}) + +minetest.register_craft({ + type = "cooking", + cooktime = 15, + output = "farming:salt", + recipe = "bucket:bucket_water", + replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} +}) + +--= Rose Water + +minetest.register_node("farming:rose_water", { + description = ("Rose Water"), + inventory_image = "farming_rose_water.png", + wield_image = "farming_rose_Water.png", + drawtype = "plantlike", + visual_scale = 0.8, + paramtype = "light", + tiles = {"farming_rose_water.png"}, + groups = {food_rose_water = 1, vessel = 1, dig_immediate = 3, + attached_node = 1}, + sounds = default.node_sound_defaults(), + selection_box = { + type = "fixed", + fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25} + }, +}) + +minetest.register_craft({ + output = "farming:rose_water", + recipe = { + {"flowers:rose", "flowers:rose", "flowers:rose"}, + {"flowers:rose", "flowers:rose", "flowers:rose"}, + {"bucket:bucket_water", "group:food_pot", "vessels:glass_bottle"}, + }, + replacements = { + {"bucket:bucket_water", "bucket:bucket_empty"}, + {"farming:pot", "farming:pot"}, + } +}) + +--= Turkish Delight + +minetest.register_craftitem("farming:turkish_delight", { + description = S("Turkish Delight"), + inventory_image = "farming_turkish_delight.png", + groups = {flammable = 3}, + on_use = minetest.item_eat(2), +}) + +minetest.register_craft({ + output = "farming:turkish_delight 4", + recipe = { + {"group:food_gelatin", "group:food_sugar", "group:food_gelatin"}, + {"group:food_sugar", "group:food_rose_water", "group:food_sugar"}, + {"group:food_cornstarch", "group:food_sugar", "dye:pink"}, + }, +}) @@ -643,7 +643,7 @@ if farming.cucumber then dofile(farming.path.."/cucumber.lua") end if farming.corn then dofile(farming.path.."/corn.lua") end if farming.coffee then dofile(farming.path.."/coffee.lua") end if farming.melon then dofile(farming.path.."/melon.lua") end -if farming.sugar then dofile(farming.path.."/sugar.lua") end +if farming.sugar then dofile(farming.path.."/food.lua") end if farming.pumpkin then dofile(farming.path.."/pumpkin.lua") end if farming.cocoa then dofile(farming.path.."/cocoa.lua") end if farming.raspberry then dofile(farming.path.."/raspberry.lua") end diff --git a/sugar.lua b/sugar.lua deleted file mode 100644 index 0afb3e1..0000000 --- a/sugar.lua +++ /dev/null @@ -1,45 +0,0 @@ - -local S = farming.intllib - ---= Sugar - -minetest.register_craftitem("farming:sugar", { - description = S("Sugar"), - inventory_image = "farming_sugar.png", - groups = {food_sugar = 1, flammable = 3}, -}) - -minetest.register_craft({ - type = "cooking", - cooktime = 3, - output = "farming:sugar 2", - recipe = "default:papyrus", -}) - - ---= Salt - -minetest.register_node("farming:salt", { - description = ("Salt"), - inventory_image = "farming_salt.png", - wield_image = "farming_salt.png", - drawtype = "plantlike", - visual_scale = 0.8, - paramtype = "light", - tiles = {"farming_salt.png"}, - groups = {food_salt = 1, vessel = 1, dig_immediate = 3, - attached_node = 1}, - sounds = default.node_sound_defaults(), - selection_box = { - type = "fixed", - fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25} - }, -}) - -minetest.register_craft({ - type = "cooking", - cooktime = 15, - output = "farming:salt", - recipe = "bucket:bucket_water", - replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}} -}) diff --git a/textures/farming_cornstarch.png b/textures/farming_cornstarch.png Binary files differnew file mode 100644 index 0000000..d5f8218 --- /dev/null +++ b/textures/farming_cornstarch.png diff --git a/textures/farming_rose_water.png b/textures/farming_rose_water.png Binary files differnew file mode 100644 index 0000000..96e546f --- /dev/null +++ b/textures/farming_rose_water.png diff --git a/textures/farming_turkish_delight.png b/textures/farming_turkish_delight.png Binary files differnew file mode 100644 index 0000000..198ffc4 --- /dev/null +++ b/textures/farming_turkish_delight.png |