2018-01-29 02:51:28 +03:00
|
|
|
---------
|
|
|
|
--ALIASES
|
|
|
|
---------
|
|
|
|
minetest.register_alias("bbq:mutton_raw", "mobs:mutton_raw")
|
|
|
|
minetest.register_alias("bbq:mutton", "mobs:mutton_cooked")
|
|
|
|
minetest.register_alias("bbq:wood_pile", "bbq:woodpile_aspen")
|
|
|
|
|
2018-01-13 04:33:19 +03:00
|
|
|
--------------------------
|
|
|
|
--COMPATIBILITY WITH CROPS
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
if minetest.registered_items["crops:tomato"] ~= nil then
|
|
|
|
minetest.override_item("crops:tomato", {
|
2018-03-16 02:00:32 +03:00
|
|
|
groups = {food_tomato=1},
|
2018-01-13 04:33:19 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if minetest.registered_items["crops:pepper"] ~= nil then
|
|
|
|
minetest.override_item("crops:pepper", {
|
2018-03-16 02:00:32 +03:00
|
|
|
groups = {food_pepper=1},
|
2018-01-13 04:33:19 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if minetest.registered_items["crops:peppercorn"] ~= nil then
|
|
|
|
minetest.override_item("crops:peppercorn", {
|
2018-03-16 02:00:32 +03:00
|
|
|
groups = {food_peppercorn=1},
|
2018-01-13 04:33:19 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2018-01-15 03:51:14 +03:00
|
|
|
if minetest.registered_items["crops:corn_cob"] ~= nil then
|
|
|
|
minetest.override_item("crops:corn_cob", {
|
2018-03-16 02:00:32 +03:00
|
|
|
groups = {food_corn=1},
|
2018-01-15 03:51:14 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if minetest.registered_items["crops:potato"] ~= nil then
|
|
|
|
minetest.override_item("crops:potato", {
|
2018-03-16 02:00:32 +03:00
|
|
|
groups = {food_potato=1},
|
2018-01-15 03:51:14 +03:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2018-01-29 02:51:28 +03:00
|
|
|
|
|
|
|
--------------------xdecor-----------------------------
|
|
|
|
|
|
|
|
if minetest.registered_items["xdecor:honey"] ~= nil then
|
|
|
|
minetest.override_item("xdecor:honey", {
|
2018-03-13 01:10:30 +03:00
|
|
|
groups = {food_sugar=1, food_honey=1},
|
2018-01-29 02:51:28 +03:00
|
|
|
})
|
|
|
|
end
|
2018-01-08 03:39:29 +03:00
|
|
|
|
2018-01-13 01:13:57 +03:00
|
|
|
---------------------------------
|
|
|
|
--UPGRADE MEAT DROPS IN MOBS REDO
|
|
|
|
---------------------------------
|
2018-01-29 02:51:28 +03:00
|
|
|
if minetest.registered_items["mobs_animal:cow"] ~= nil then
|
2018-01-08 03:39:29 +03:00
|
|
|
local def = minetest.registered_entities["mobs_animal:cow"]
|
|
|
|
assert(def, "mobs:cow not found")
|
|
|
|
def.drops = {
|
|
|
|
{name = "bbq:beef_raw", chance = 1, min = 1, max = 3},
|
|
|
|
{name = "mobs:leather", chance = 1, min = 1, max = 2},
|
|
|
|
}
|
2018-01-29 02:51:28 +03:00
|
|
|
end
|
2018-01-13 01:13:57 +03:00
|
|
|
|
|
|
|
-------------------------------
|
|
|
|
--MAKE YEAST NATURALLY OCCURING
|
|
|
|
-------------------------------
|
|
|
|
|
2024-11-01 20:47:41 +03:00
|
|
|
local function append_drops(itemstring, items)
|
|
|
|
local def = minetest.registered_items[itemstring]
|
|
|
|
local newdrop
|
|
|
|
if type(def.drop) == "table" then
|
|
|
|
newdrop = {max_items = def.drop.max_items, items = {}}
|
|
|
|
local olditems = def.drop.items
|
|
|
|
local savedpos = nil
|
|
|
|
for i, it in ipairs(olditems) do
|
|
|
|
if it.rarity == nil then
|
|
|
|
savedpos = i
|
|
|
|
break
|
|
|
|
end
|
|
|
|
table.insert(newdrop.items, it)
|
|
|
|
end
|
|
|
|
for _, it in ipairs(items) do
|
|
|
|
table.insert(newdrop.items, it)
|
|
|
|
end
|
|
|
|
if savedpos ~= nil then
|
|
|
|
for i = savedpos, #olditems do
|
|
|
|
table.insert(newdrop.items, olditems[i])
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
|
|
|
newdrop = {max_items = 1, items = table.copy(items)}
|
|
|
|
if type(def.drop) == "string" then
|
|
|
|
table.insert(newdrop.items, {items = {def.drop}})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
minetest.override_item(itemstring, {drop = newdrop})
|
|
|
|
end
|
|
|
|
|
2018-01-13 01:13:57 +03:00
|
|
|
for i = 1, 5 do
|
2024-11-01 20:47:41 +03:00
|
|
|
append_drops("default:grass_"..i, {
|
|
|
|
{items = {"bbq:yeast"}, rarity = 8},
|
|
|
|
})
|
2018-01-13 01:13:57 +03:00
|
|
|
end
|
|
|
|
|
2024-11-01 20:47:41 +03:00
|
|
|
append_drops("default:junglegrass", {
|
|
|
|
{items = {"bbq:yeast"}, rarity = 8},
|
|
|
|
})
|
2018-01-13 01:13:57 +03:00
|
|
|
|
2018-01-08 03:39:29 +03:00
|
|
|
-----------------------------------------------
|
|
|
|
--MAKE VESSEL TYPE ITEMS WORK WITH VESSEL SHELF
|
|
|
|
-----------------------------------------------
|
2018-01-29 02:51:28 +03:00
|
|
|
if minetest.registered_items["bucket:bucket_empty"] ~= nil then
|
2018-01-08 03:39:29 +03:00
|
|
|
minetest.override_item("bucket:bucket_empty", {
|
|
|
|
groups = {vessel=1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("bucket:bucket_water", {
|
|
|
|
groups = {vessel=1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("bucket:bucket_river_water", {
|
|
|
|
groups = {vessel=1},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.override_item("bucket:bucket_lava", {
|
|
|
|
groups = {vessel=1},
|
|
|
|
})
|
2018-01-29 02:51:28 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
if minetest.registered_items["mobs:bucket_milk"] ~= nil then
|
|
|
|
minetest.override_item("mobs:bucket_milk", {
|
|
|
|
groups = {vessel=1},
|
|
|
|
})
|
|
|
|
end
|
2018-01-08 03:39:29 +03:00
|
|
|
|
|
|
|
----------------------
|
|
|
|
--UPGRADING WOOD FUELS
|
|
|
|
----------------------
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:junglewood",
|
|
|
|
burntime = 100,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:acacia_wood",
|
|
|
|
burntime = 92,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:wood",
|
|
|
|
burntime = 85,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:pine_wood",
|
|
|
|
burntime = 75,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:aspen_wood",
|
|
|
|
burntime = 65,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "stairs:slab_junglewood",
|
|
|
|
burntime = 12,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "stairs:slab_acacia_wood",
|
|
|
|
burntime = 11,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "stairs:slab_wood",
|
|
|
|
burntime = 10,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "stairs:slab_pine_wood",
|
|
|
|
burntime = 8,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "stairs:slab_aspen_wood",
|
|
|
|
burntime = 7,
|
|
|
|
})
|
2018-01-13 01:13:57 +03:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "fuel",
|
|
|
|
recipe = "default:stick",
|
|
|
|
burntime = 2,
|
|
|
|
})
|