star_wars/mods/farming/food.lua

45 lines
937 B
Lua
Raw Normal View History

2020-07-17 14:38:14 +02:00
local S = farming.intllib
--= Sugar
minetest.register_craftitem("farming:sugar", {
description = S("Sugar"),
2020-07-23 00:37:44 +02:00
inventory_image = "sugar.png",
2020-07-17 14:38:14 +02:00
groups = {food_sugar = 1, flammable = 3}
})
minetest.register_craft({
type = "cooking",
cooktime = 3,
output = "farming:sugar 2",
2020-07-23 00:37:44 +02:00
recipe = "default:reeds"
2020-07-17 14:38:14 +02:00
})
--= Salt
minetest.register_node("farming:salt", {
description = S("Salt"),
2020-07-23 00:37:44 +02:00
inventory_image = "salt.png",
wield_image = "salt.png",
2020-07-17 14:38:14 +02:00
drawtype = "plantlike",
visual_scale = 0.8,
paramtype = "light",
2020-07-23 00:37:44 +02:00
tiles = {"salt.png"},
2020-07-17 14:38:14 +02:00
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"}}
2020-07-23 00:37:44 +02:00
})