star_wars/mods/farming/food.lua

66 lines
1.4 KiB
Lua
Raw Permalink 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
})
2020-11-28 02:22:43 +01:00
--= Bantha Rump
minetest.register_craftitem("farming:bantha_rump", {
description = S("Bantha Rump"),
inventory_image = "bantha_rump.png",
on_use = minetest.item_eat(8),
})
minetest.register_craft({
type = "shapeless",
output = "farming:bantha_rump",
recipe = {
"mobs:bantha_meat", "farming:calarantrum", "farming:celonslay",
"farming:celto", "farming:taba", "bucket:bucket_water"
},
replacements = {
{"bucket:bucket_water", "bucket:bucket_empty"}
}
})
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
})