summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-02-08 13:03:24 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-02-08 13:03:24 +0000
commitc55a63ce16284413dcf120be1876a9cd05dfe7df (patch)
treef36b916b1d7d898615b9efc6eb473d9a805bc81c
parent8e18a4e4aa3a544c3ea0f4d382610e93e706de20 (diff)
Added salt
-rw-r--r--README.txt2
-rw-r--r--sugar.lua28
-rw-r--r--textures/farming_salt.pngbin0 -> 254 bytes
3 files changed, 28 insertions, 2 deletions
diff --git a/README.txt b/README.txt
index 10c29fd..591fca0 100644
--- a/README.txt
+++ b/README.txt
@@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t
Changelog:
-1.31 - Added Pineapple which can be found growing in savannah areas (place pineapple in crafting to obtain 5x rings to eat and a top for re-planting)
+1.31 - Added Pineapple which can be found growing in savannah areas (place pineapple in crafting to obtain 5x rings to eat and a top for re-planting), also Salt which is made from cooking a bucket of water
1.30 - Added Garlic, Pepper and Onions thanks to Grizzly Adam for sharing textures
1.29 - Updating functions so requires Minetest 0.4.16 and above to run
1.28 - Added chili peppers and bowl of chili, optimized code and fixed a few bugs, added porridge
diff --git a/sugar.lua b/sugar.lua
index 97efc67..012a987 100644
--- a/sugar.lua
+++ b/sugar.lua
@@ -13,4 +13,30 @@ minetest.register_craft({
cooktime = 3,
output = "farming:sugar 2",
recipe = "default:papyrus",
-}) \ No newline at end of file
+})
+
+
+--= Salt
+
+minetest.register_node("farming:salt", {
+ description = ("Salt"),
+ inventory_image = "farming_salt.png",
+ wield_image = "farming_salt.png",
+ drawtype = "plantlike",
+ paramtype = "light",
+ tiles = {"farming_salt.png"},
+ groups = {vessel = 1, salt = 1, dig_immediate = 3, attached_node = 1},
+ sounds = default.node_sound_glass_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_salt.png b/textures/farming_salt.png
new file mode 100644
index 0000000..0aa733a
--- /dev/null
+++ b/textures/farming_salt.png
Binary files differ