From c55a63ce16284413dcf120be1876a9cd05dfe7df Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 8 Feb 2018 13:03:24 +0000 Subject: [PATCH] Added salt --- README.txt | 2 +- sugar.lua | 28 +++++++++++++++++++++++++++- textures/farming_salt.png | Bin 0 -> 254 bytes 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 textures/farming_salt.png 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 0000000000000000000000000000000000000000..0aa733a55bc9d3558042f69ac80b0cab42becca2 GIT binary patch literal 254 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`M?GB}Lo7}wCrGeX96WRE&VSjR z8~=Y?nRrBP$M+LY|Id+G!!zg28=f;dK0NjR|0MtT_gTGpYA2g=Ae#XY$XFLY{{M7s zu;jh{KMy>ZckM{Riq$7PCVk$XXUkmv>*wk3g;mX+5{K>f{`QJ`kbATEoBg%|#gnZ6 zfxv#V;rIU_3qint%iGo4=l$SkHaKh0a5k0Ya6(wHTwLWIwk216mGoKjKsu`=9&ow1 u)x31@@|)2(v$gZ#>Fe(!f)$y8fFU@zAR{MX!D66?7(8A5T-G@yGywp(g?6_9 literal 0 HcmV?d00001