1
0
forked from MTSR/BBQ

Removed crops

This commit is contained in:
Grizzly Adam 2018-03-15 18:00:32 -05:00 committed by GitHub
parent 8575f779b6
commit 9c244a4d57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 174 deletions

View File

@ -542,14 +542,6 @@ minetest.register_craftitem("bbq:stuffed_pepper_raw", {
on_use = minetest.item_eat(4),
})
--Bell Pepper
minetest.register_craftitem("bbq:pepper", {
description = ("Pepper"),
inventory_image = "bbq_pepper.png",
on_use = minetest.item_eat(7),
groups = {food_pepper=1},
})
--Smoked Pepper
minetest.register_craftitem("bbq:smoked_pepper", {
description = ("Smoked Pepper"),
@ -557,14 +549,7 @@ minetest.register_craftitem("bbq:smoked_pepper", {
on_use = minetest.item_eat(5),
})
--Tomato
minetest.register_craftitem("bbq:tomato", {
description = ("Tomato"),
inventory_image = "bbq_tomato.png",
on_use = minetest.item_eat(3),
groups = {food_tomato=1},
})
--Tomato Sauce
minetest.register_craftitem("bbq:tomato_sauce", {
description = ("Tomato Sauce"),
inventory_image = "bbq_tomato_sauce.png",
@ -572,74 +557,6 @@ minetest.register_craftitem("bbq:tomato_sauce", {
on_use = minetest.item_eat(2)
})
minetest.register_craftitem("bbq:onion", {
description = ("Onion"),
groups= {food_onion=1},
inventory_image = "bbq_onion.png",
on_use = minetest.item_eat(1)
})
--Garlic
minetest.register_craftitem("bbq:garlic", {
description = ("Garlic"),
inventory_image = "bbq_garlic.png",
on_use = minetest.item_eat(1),
groups = {food_garlic = 1},
})
--Garlic Braid
minetest.register_node("bbq:garlic_braid", {
description = ("Garlic Braid"),
inventory_image = "bbq_garlic_braid.png",
wield_image = "bbq_garlic_braid.png",
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
tiles = {
"bbq_garlic_braid_side.png","bbq_garlic_braid.png",
"bbq_garlic_braid_side.png^[transformFx","bbq_garlic_braid_side.png",
"bbq_garlic_braid.png","bbq_garlic_braid.png"
},
groups = {food_garlic_braid=1, vessel = 1, dig_immediate = 3},
sounds = default.node_sound_leaves_defaults(),
node_box = {
type = "fixed",
fixed = {
{-0.13, -0.45, 0.5, 0.13, 0.45, 0.24,
},
},
}
})
--Garlic Clove
minetest.register_node("bbq:garlic_clove", {
description = ("Garlic Clove"),
inventory_image = "bbq_garlic_clove.png",
wield_image = "bbq_garlic_clove.png",
paramtype = "light",
paramtype2 = "facedir",
tiles = { "bbq_garlic_clove.png" },
groups = { food_garlic_clove=1, snappy=3,flammable=3,flora=1,attached_node=1 },
})
--Potato
minetest.register_craftitem("bbq:potato", {
description = ("Potato"),
inventory_image = "bbq_potato.png",
on_use = minetest.item_eat(1),
groups = {food_potato=1},
})
--Corn
minetest.register_craftitem("bbq:corn", {
description = ("Corn"),
inventory_image = "bbq_corn.png",
on_use = minetest.item_eat(2),
groups = {food_corn=1},
})
--Grilled Tomato
minetest.register_craftitem("bbq:grilled_tomato", {
description = ("Grilled Tomato"),
@ -661,19 +578,6 @@ minetest.register_craftitem("bbq:grilled_corn_raw", {
on_use = minetest.item_eat(5),
})
--Peppercorn
minetest.register_node("bbq:peppercorn", {
description = ("Peppercorn"),
inventory_image = "bbq_peppercorn.png",
wield_image = "bbq_peppercorn.png",
paramtype = "light",
paramtype2 = "facedir",
drawtype = "plantlike",
tiles = { "bbq_peppercorn.png" },
groups = { food_peppercorn = 1, vessel=1, snappy=3,flammable=3,flora=1,attached_node=1 },
sounds = default.node_sound_leaves_defaults(),
})
--Paprika
minetest.register_node("bbq:paprika", {
description = ("Smoked Paprika"),
@ -687,19 +591,6 @@ minetest.register_node("bbq:paprika", {
sounds = default.node_sound_glass_defaults(),
})
--Ground Pepper
minetest.register_node("bbq:pepper_ground", {
description = ("Ground Pepper"),
inventory_image = "bbq_pepper_ground.png",
wield_image = "bbq_pepper_ground.png",
drawtype = "plantlike",
paramtype = "light",
paramtype2 = "facedir",
tiles = {"bbq_pepper_ground.png"},
groups = {food_pepper_ground = 1, vessel = 1, dig_immediate = 3, attached_node = 1},
sounds = default.node_sound_glass_defaults(),
})
-- Sea Salt
minetest.register_node("bbq:sea_salt", {
description = ("Sea Salt"),

View File

@ -35,23 +35,12 @@ Spatula
Basting Brush
Grill Brush
Peppercorn
Ground Pepper
Paprika
Sea Salt
Sugar
Molasses (byproduct of Sugar)
Yeast (Can be found when harvesting grass and jungle grass)
Bell Pepper
Tomato
Potato
Corn
Garlic
Garlic Clove
Garlic Braid
Onion
Brine
Liquid Smoke
Hot suace

View File

@ -9,81 +9,33 @@ minetest.register_alias("bbq:wood_pile", "bbq:woodpile_aspen")
--COMPATIBILITY WITH CROPS
--------------------------
if minetest.registered_items["crops:garlic_clove"] ~= 1 then
minetest.override_item("bbq:garlic_clove", {
tiles = { "crops_garlic_plant_1.png" },
drawtype = "plantlike",
paramtype2 = "meshoptions",
waving = 1,
sunlight_propagates = false,
use_texture_alpha = true,
walkable = false,
paramtype = "light",
node_placement_prediction = "crops:garlic_plant_1",
selection_box = {
type = "fixed",
fixed = {-0.45, -0.5, -0.45, 0.45, -0.4, 0.45}
},
on_place = function(itemstack, placer, pointed_thing)
local under = minetest.get_node(pointed_thing.under)
if minetest.get_item_group(under.name, "soil") <= 1 then
return
end
crops.plant(pointed_thing.above, {name="crops:garlic_plant_1", param2 = 3})
if not minetest.setting_getbool("creative_mode") then
itemstack:take_item()
end
return itemstack
end
})
end
if minetest.registered_items["crops:peppercorn"] ~= 1 then
minetest.override_item("bbq:peppercorn", {
on_place =function(itemstack, placer, pointed_thing)
local under = minetest.get_node(pointed_thing.under)
if minetest.get_item_group(under.name, "soil") <= 1 then
return
end
crops.plant(pointed_thing.above, {name="crops:pepper_plant_1", param2 = 1})
if not minetest.setting_getbool("creative_mode") then
itemstack:take_item()
end
return itemstack
end
})
end
if minetest.registered_items["crops:tomato"] ~= nil then
minetest.override_item("crops:tomato", {
groups = {tomato=1},
groups = {food_tomato=1},
})
end
if minetest.registered_items["crops:pepper"] ~= nil then
minetest.override_item("crops:pepper", {
groups = {pepper=1},
groups = {food_pepper=1},
})
end
if minetest.registered_items["crops:peppercorn"] ~= nil then
minetest.override_item("crops:peppercorn", {
groups = {peppercorn=1},
groups = {food_peppercorn=1},
})
end
if minetest.registered_items["crops:corn_cob"] ~= nil then
minetest.override_item("crops:corn_cob", {
groups = {corn=1},
groups = {food_corn=1},
})
end
if minetest.registered_items["crops:potato"] ~= nil then
minetest.override_item("crops:potato", {
groups = {potato=1},
groups = {food_potato=1},
})
end