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 Binary files /dev/null and b/textures/farming_salt.png differ