mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 16:39:33 +01:00
6c0525f00e
[Michieal]83bc60722d
Begin: make bamboo dig-able by Pistons for Farm Creation. [Michieal]449cbdb330
Make Bamboo & Bamboo items not sticky for pistons. [Michieal]a44566f863
hijack the ABM to check for orphaned bamboo nodes. [Michieal]5dff9e1994
Fixed the ABM situation so that now bamboo "breaks" when pushed by pistons. Probably not the most elegant, but hey. It works. [Michieal]76507025d9
Cleaned up the global function to match the current ABM. [Michieal]dfa849e19a
Merge branch 'master' into Bamboo-Piston-Dig [Michieal]a5bdc8a166
fix bamboo mosaic recipe. [Michieal]14383d6c6f
update mod.conf to use optional depends mesecons_mvps [Michieal]f81d530912
Update init.lua to register dropper callback.
200 lines
4.2 KiB
Lua
200 lines
4.2 KiB
Lua
---
|
|
--- Generated by EmmyLua(https://github.com/EmmyLua)
|
|
--- Created by michieal.
|
|
--- DateTime: 12/29/22 12:46 PM -- Restructure Date
|
|
--- These are all of the fuel recipes and all of the crafting recipes, consolidated into one place.
|
|
--- Copyright (C) 2022 - 2023, Michieal. See License.txt
|
|
|
|
-- Used everywhere. Often this is just the name, but it makes sense to me as BAMBOO, because that's how I think of it...
|
|
-- "BAMBOO" goes here.
|
|
local BAMBOO = "mcl_bamboo:bamboo"
|
|
local BAMBOO_PLANK = BAMBOO .. "_plank"
|
|
-- Craftings
|
|
-- Basic Bamboo craftings
|
|
minetest.register_craft({
|
|
output = "mcl_core:stick",
|
|
recipe = {
|
|
{BAMBOO},
|
|
{BAMBOO},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = BAMBOO .. "_block",
|
|
recipe = {
|
|
{BAMBOO, BAMBOO, BAMBOO},
|
|
{BAMBOO, BAMBOO, BAMBOO},
|
|
{BAMBOO, BAMBOO, BAMBOO},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = BAMBOO_PLANK .. " 2",
|
|
recipe = {
|
|
{BAMBOO .. "_block"},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = BAMBOO_PLANK .. " 2",
|
|
recipe = {
|
|
{BAMBOO .. "_block_stripped"},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = BAMBOO .. "_mosaic",
|
|
recipe = {
|
|
{"mcl_stairs:slab_bamboo_plank"},
|
|
{"mcl_stairs:slab_bamboo_plank"},
|
|
}
|
|
})
|
|
|
|
-- Bamboo specific items
|
|
|
|
if minetest.get_modpath("mcl_doors") and mcl_doors then
|
|
minetest.register_craft({
|
|
output = "mcl_bamboo:bamboo_door 3",
|
|
recipe = {
|
|
{BAMBOO_PLANK, BAMBOO_PLANK},
|
|
{BAMBOO_PLANK, BAMBOO_PLANK},
|
|
{BAMBOO_PLANK, BAMBOO_PLANK}
|
|
}
|
|
})
|
|
minetest.register_craft({
|
|
output = "mcl_bamboo:bamboo_trapdoor 2",
|
|
recipe = {
|
|
{BAMBOO_PLANK, BAMBOO_PLANK, BAMBOO_PLANK},
|
|
{BAMBOO_PLANK, BAMBOO_PLANK, BAMBOO_PLANK},
|
|
}
|
|
})
|
|
end
|
|
if minetest.get_modpath("mcl_fences") then
|
|
minetest.register_craft({
|
|
output = "mcl_bamboo:bamboo_fence 3",
|
|
recipe = {
|
|
{BAMBOO_PLANK, "mcl_core:stick", BAMBOO_PLANK},
|
|
{BAMBOO_PLANK, "mcl_core:stick", BAMBOO_PLANK},
|
|
}
|
|
})
|
|
minetest.register_craft({
|
|
output = "mcl_bamboo:bamboo_fence_gate",
|
|
recipe = {
|
|
{"mcl_core:stick", BAMBOO_PLANK, "mcl_core:stick"},
|
|
{"mcl_core:stick", BAMBOO_PLANK, "mcl_core:stick"},
|
|
}
|
|
})
|
|
end
|
|
|
|
minetest.register_craft({
|
|
output = "mcl_bamboo:scaffolding 6",
|
|
recipe = {{BAMBOO, "mcl_mobitems:string", BAMBOO},
|
|
{BAMBOO, "", BAMBOO},
|
|
{BAMBOO, "", BAMBOO}}
|
|
})
|
|
|
|
-- Fuels
|
|
-- Basic Bamboo nodes
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = BAMBOO,
|
|
burntime = 2.5, -- supposed to be 1/2 that of a stick, per minecraft wiki as of JE 1.19.3
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = BAMBOO .. "_block",
|
|
burntime = 15,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = BAMBOO .. "_block_stripped",
|
|
burntime = 15,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = BAMBOO_PLANK,
|
|
burntime = 7.5,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = BAMBOO .. "_mosaic",
|
|
burntime = 7.5,
|
|
})
|
|
|
|
-- Bamboo Items
|
|
if minetest.get_modpath("mcl_doors") then
|
|
if mcl_doors then
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mcl_bamboo:bamboo_door",
|
|
burntime = 10,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mcl_bamboo:bamboo_trapdoor",
|
|
burntime = 15,
|
|
})
|
|
end
|
|
end
|
|
|
|
if minetest.get_modpath("mcl_stairs") then
|
|
if mcl_stairs ~= nil then
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mcl_stairs:slab_bamboo_plank",
|
|
burntime = 7.5,
|
|
})
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mcl_stairs:slab_bamboo_block",
|
|
burntime = 7.5,
|
|
})
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mcl_stairs:slab_bamboo_stripped",
|
|
burntime = 7.5,
|
|
})
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mcl_stairs:stair_bamboo_plank",
|
|
burntime = 15,
|
|
})
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mcl_stairs:stair_bamboo_block",
|
|
burntime = 15,
|
|
})
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mcl_stairs:stair_bamboo_stripped",
|
|
burntime = 15,
|
|
})
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mcl_stairs:slab_bamboo_mosaic",
|
|
burntime = 7.5,
|
|
})
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mcl_stairs:stair_bamboo_mosaic",
|
|
burntime = 15,
|
|
})
|
|
end
|
|
end
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mesecons_button:button_bamboo_off",
|
|
burntime = 5,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
type = "fuel",
|
|
recipe = "mcl_bamboo:scaffolding",
|
|
burntime = 20
|
|
})
|