BBQ/overrides.lua

288 lines
7.6 KiB
Lua
Raw Normal View History

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
-------------------------------
for i = 1, 5 do
minetest.override_item("default:grass_"..i, {drop = {
max_items = 1,
items = {
{items = {'farming:seed_wheat'},rarity = 5},
{items = {'bbq:yeast'},rarity = 8},
{items = {'default:grass_1'}},
}
}})
end
minetest.override_item("default:junglegrass", {drop = {
max_items = 1,
items = {
{items = {'farming:seed_cotton'},rarity = 8},
{items = {'bbq:yeast'},rarity = 8},
{items = {'default:junglegrass'}},
}
}})
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,
})
--------------------------------------------------
--ADD WOOD SLABWOOD, TREES AND STICKS TO WOOD PILE
--------------------------------------------------
minetest.override_item("default:wood", {
groups = {wood_pile=1, wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("default:aspen_wood", {
groups = {wood_pile=1, wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("default:junglewood", {
groups = {wood_pile=1, wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("default:acacia_wood", {
groups = {wood_pile=1, wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("default:pine_wood", {
groups = {wood_pile=1, wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:slab_wood", {
groups = {wood_pile=1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:slab_aspen_wood", {
groups = {wood_pile=1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:slab_junglewood", {
groups = {wood_pile=1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:slab_acacia_wood", {
groups = {wood_pile=1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:slab_pine_wood", {
groups = {wood_pile=1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("default:tree", {
groups = {wood_pile=1, tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("default:aspen_tree", {
groups = {wood_pile=1, tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("default:jungletree", {
groups = {wood_pile=1, tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("default:acacia_tree", {
groups = {wood_pile=1, tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("default:pine_tree", {
groups = {wood_pile=1, tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("default:stick", {
groups = {wood_pile=1, stick = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:slab_wood", {
groups = {wood_pile=1, stick = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:slab_aspen_wood", {
groups = {wood_pile=1, stick = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:slab_junglewood", {
groups = {wood_pile=1, stick = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:slab_acacia_wood", {
groups = {wood_pile=1, stick = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:slab_pine_wood", {
groups = {wood_pile=1, stick = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:stair_wood", {
groups = {wood_pile=1, stick = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:stair_aspen_wood", {
groups = {wood_pile=1, stick = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:stair_junglewood", {
groups = {wood_pile=1, stick = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:stair_acacia_wood", {
groups = {wood_pile=1, stick = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
})
minetest.override_item("stairs:stair_pine_wood", {
groups = {wood_pile=1, stick = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
2018-01-13 01:13:57 +03:00
})