2014-11-09 20:06:28 +01:00
|
|
|
|
2016-05-30 13:30:00 +02:00
|
|
|
local S = farming.intllib
|
|
|
|
|
2014-11-09 20:06:28 +01:00
|
|
|
--= Sugar
|
|
|
|
|
|
|
|
minetest.register_craftitem("farming:sugar", {
|
2016-05-30 13:30:00 +02:00
|
|
|
description = S("Sugar"),
|
2014-11-09 20:06:28 +01:00
|
|
|
inventory_image = "farming_sugar.png",
|
2018-03-12 17:45:15 +01:00
|
|
|
groups = {food_sugar = 1, flammable = 3},
|
2014-11-09 20:06:28 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
cooktime = 3,
|
|
|
|
output = "farming:sugar 2",
|
|
|
|
recipe = "default:papyrus",
|
2018-02-08 14:03:24 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
--= 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"},
|
2018-03-16 14:51:59 +01:00
|
|
|
groups = {food_salt = 1, vessel = 1, dig_immediate = 3,
|
2018-03-12 17:45:15 +01:00
|
|
|
attached_node = 1},
|
2018-02-08 14:03:24 +01:00
|
|
|
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"}}
|
|
|
|
})
|