Mods in den Spieleordner reingeschoben. So richtig tief.

This commit is contained in:
N-Nachtigal 2025-05-08 22:41:25 +02:00
parent b4b6c08f4f
commit f7bc25a670
1674 changed files with 56056 additions and 530 deletions

View file

@ -1,21 +1,9 @@
local S = minetest.get_translator("farming")
local function register_craftitem(condition,name,def)
if condition then
core.register_craftitem(name,def)
end
end
local function register_node(condition,name,def)
if condition then
core.register_node(name,def)
end
end
-- saucepan
register_craftitem(true,"farming:saucepan", {
minetest.register_craftitem("farming:saucepan", {
description = S("Saucepan"),
inventory_image = "farming_saucepan.png",
groups = {food_saucepan = 1, flammable = 2}
@ -23,7 +11,7 @@ register_craftitem(true,"farming:saucepan", {
-- cooking pot
register_craftitem(true,"farming:pot", {
minetest.register_craftitem("farming:pot", {
description = S("Cooking Pot"),
inventory_image = "farming_pot.png",
groups = {food_pot = 1, flammable = 2}
@ -31,7 +19,7 @@ register_craftitem(true,"farming:pot", {
-- baking tray
register_craftitem(true,"farming:baking_tray", {
minetest.register_craftitem("farming:baking_tray", {
description = S("Baking Tray"),
inventory_image = "farming_baking_tray.png",
groups = {food_baking_tray = 1, flammable = 2}
@ -39,7 +27,7 @@ register_craftitem(true,"farming:baking_tray", {
-- skillet
register_craftitem(true,"farming:skillet", {
minetest.register_craftitem("farming:skillet", {
description = S("Skillet"),
inventory_image = "farming_skillet.png",
groups = {food_skillet = 1, flammable = 2}
@ -47,7 +35,7 @@ register_craftitem(true,"farming:skillet", {
-- mortar & pestle
register_craftitem(true,"farming:mortar_pestle", {
minetest.register_craftitem("farming:mortar_pestle", {
description = S("Mortar and Pestle"),
inventory_image = "farming_mortar_pestle.png",
groups = {food_mortar_pestle = 1, flammable = 2}
@ -55,7 +43,7 @@ register_craftitem(true,"farming:mortar_pestle", {
-- cutting board
register_craftitem(true,"farming:cutting_board", {
minetest.register_craftitem("farming:cutting_board", {
description = S("Cutting Board"),
inventory_image = "farming_cutting_board.png",
groups = {food_cutting_board = 1, flammable = 2}
@ -63,7 +51,7 @@ register_craftitem(true,"farming:cutting_board", {
-- juicer
register_craftitem(true,"farming:juicer", {
minetest.register_craftitem("farming:juicer", {
description = S("Juicer"),
inventory_image = "farming_juicer.png",
groups = {food_juicer = 1, flammable = 2}
@ -71,7 +59,7 @@ register_craftitem(true,"farming:juicer", {
-- glass mixing bowl
register_craftitem(true,"farming:mixing_bowl", {
minetest.register_craftitem("farming:mixing_bowl", {
description = S("Glass Mixing Bowl"),
inventory_image = "farming_mixing_bowl.png",
groups = {food_mixing_bowl = 1, flammable = 2}
@ -79,7 +67,7 @@ register_craftitem(true,"farming:mixing_bowl", {
-- Ethanol (thanks to JKMurray for this idea)
register_node(farming.corn,"farming:bottle_ethanol", {
minetest.register_node("farming:bottle_ethanol", {
description = S("Bottle of Ethanol"),
drawtype = "plantlike",
tiles = {"farming_bottle_ethanol.png"},
@ -98,7 +86,7 @@ register_node(farming.corn,"farming:bottle_ethanol", {
-- straw
register_node(true,"farming:straw", {
minetest.register_node("farming:straw", {
description = S("Straw"),
tiles = {"farming_straw.png"},
is_ground_content = false,
@ -108,9 +96,45 @@ register_node(true,"farming:straw", {
_mcl_blast_resistance = 1
})
-- weed
minetest.register_node("farming:weed", {
description = S("Weed"),
drawtype = "plantlike",
tiles = {"farming_weed.png"},
inventory_image = "farming_weed.png",
paramtype = "light",
paramtype2 = "meshoptions",
place_param2 = 2,
sunlight_propagates = true,
walkable = false,
buildable_to = true,
waving = 1,
selection_box = farming.select,
groups = {snappy = 3, flammable = 4, plant = 1, attached_node = 1},
_mcl_hardness = farming.mcl_hardness,
is_ground_content = false,
sounds = farming.node_sound_leaves_defaults()
})
-- weed bale
minetest.register_node("farming:weed_bale", {
description = S("Weed Bale"),
tiles = {
"farming_weed_bale_top.png", "farming_weed_bale_top.png",
"farming_weed_bale_side.png"
},
paramtype2 = "facedir",
groups = {handy = 1, snappy = 3, flammable = 4, fall_damage_add_percent = -30},
sounds = farming.node_sound_leaves_defaults(),
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1
})
-- hemp oil
register_node(farming.hemp,"farming:hemp_oil", {
minetest.register_node("farming:hemp_oil", {
description = S("Bottle of Hemp Oil"),
drawtype = "plantlike",
tiles = {"farming_hemp_oil.png"},
@ -120,8 +144,7 @@ register_node(farming.hemp,"farming:hemp_oil", {
is_ground_content = false,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
type = "fixed", fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
},
groups = {
food_oil = 1, vessel = 1, dig_immediate = 3, attached_node = 1,
@ -132,7 +155,7 @@ register_node(farming.hemp,"farming:hemp_oil", {
-- hemp fibre
register_craftitem(farming.hemp,"farming:hemp_fibre", {
minetest.register_craftitem("farming:hemp_fibre", {
description = S("Hemp Fibre"),
inventory_image = "farming_hemp_fibre.png",
groups = {compostability = 55}
@ -140,7 +163,7 @@ register_craftitem(farming.hemp,"farming:hemp_fibre", {
-- hemp block
register_node(farming.hemp,"farming:hemp_block", {
minetest.register_node("farming:hemp_block", {
description = S("Hemp Block"),
tiles = {"farming_hemp_block.png"},
paramtype = "light",
@ -156,7 +179,7 @@ register_node(farming.hemp,"farming:hemp_block", {
-- hemp rope
register_node(false,"farming:hemp_rope", {
minetest.register_node("farming:hemp_rope", {
description = S("Hemp Rope"),
walkable = false,
climbable = true,
@ -173,8 +196,7 @@ register_node(false,"farming:hemp_rope", {
is_ground_content = false,
sounds = farming.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}
type = "fixed", fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}
},
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1
@ -182,7 +204,7 @@ register_node(false,"farming:hemp_rope", {
--- Wooden scarecrow base
register_node(false,"farming:scarecrow_bottom", {
minetest.register_node("farming:scarecrow_bottom", {
description = S("Scarecrow Bottom"),
paramtype = "light",
sunlight_propagates = true,
@ -208,7 +230,7 @@ if not farming.mcl then
-- Wooden bowl
register_craftitem(true,"farming:bowl", {
minetest.register_craftitem("farming:bowl", {
description = S("Wooden Bowl"),
inventory_image = "farming_bowl.png",
groups = {food_bowl = 1, flammable = 2}
@ -216,7 +238,7 @@ if not farming.mcl then
-- String
register_craftitem(true,"farming:string", {
minetest.register_craftitem("farming:string", {
description = S("String"),
inventory_image = "farming_string.png",
groups = {flammable = 2}
@ -224,7 +246,7 @@ if not farming.mcl then
-- Jack 'O Lantern
register_node(farming.pumpkin,"farming:jackolantern", {
minetest.register_node("farming:jackolantern", {
description = S("Jack 'O Lantern (punch to turn on and off)"),
tiles = {
"farming_pumpkin_bottom.png^farming_pumpkin_top.png",
@ -251,7 +273,7 @@ if not farming.mcl then
_mcl_blast_resistance = 1
})
register_node(farming.pumpkin,"farming:jackolantern_on", {
minetest.register_node("farming:jackolantern_on", {
tiles = {
"farming_pumpkin_bottom.png^farming_pumpkin_top.png",
"farming_pumpkin_bottom.png",