Rename mod from bamboo → sbrl_bamboo to avoid clash with cool_trees:bamboo
parent
99c50225ef
commit
6d84a46843
|
@ -0,0 +1,34 @@
|
|||
quiet = 1
|
||||
codes = true
|
||||
|
||||
exclude_files = {
|
||||
".luarocks/*"
|
||||
}
|
||||
|
||||
|
||||
ignore = {
|
||||
"631", "61[124]",
|
||||
"542",
|
||||
"412",
|
||||
"321/bit",
|
||||
"21[123]"
|
||||
}
|
||||
|
||||
-- Read-write globals (i.e. they can be defined)
|
||||
globals = {
|
||||
"sbrl_bamboo"
|
||||
}
|
||||
-- Read-only globals
|
||||
read_globals = {
|
||||
"minetest",
|
||||
"default",
|
||||
"vector",
|
||||
"assert",
|
||||
"bit",
|
||||
"it",
|
||||
"describe",
|
||||
"bonemeal",
|
||||
"dofile",
|
||||
"PerlinNoise"
|
||||
}
|
||||
std = "max"
|
|
@ -1,4 +1,4 @@
|
|||
# Minetest-bamboo
|
||||
# `sbrl_bamboo`
|
||||
|
||||
> A bamboo plant mod for Minetest
|
||||
|
||||
|
@ -23,7 +23,7 @@ Install it by cloning this repository into your world's `worldmods` folder:
|
|||
|
||||
```bash
|
||||
cd path/to/world/worldmods;
|
||||
git clone https://github.com/sbrl/Minetest-bamboo.git bamboo
|
||||
git clone https://github.com/sbrl/Minetest-bamboo.git sbrl_bamboo
|
||||
```
|
||||
|
||||
Then, restart your Minetest server.
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
minetest.register_node("bamboo:bamboo_block", {
|
||||
minetest.register_node("sbrl_bamboo:bamboo_block", {
|
||||
description = "Bamboo Block",
|
||||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
tiles = { "bamboo_block-dry.png" },
|
||||
tiles = { "sbrl_bamboo_block-dry.png" },
|
||||
groups = {
|
||||
flammable = 3,
|
||||
float = 3,
|
||||
|
@ -14,7 +14,7 @@ minetest.register_node("bamboo:bamboo_block", {
|
|||
})
|
||||
|
||||
if minetest.get_modpath("default") then
|
||||
minetest.override_item("bamboo:bamboo_block", {
|
||||
minetest.override_item("sbrl_bamboo:bamboo_block", {
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
minetest.register_node("bamboo:bamboo", {
|
||||
minetest.register_node("sbrl_bamboo:bamboo", {
|
||||
description = "Bamboo",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
|
@ -14,12 +14,12 @@ minetest.register_node("bamboo:bamboo", {
|
|||
-- TODO: Make it drop an item too, but unsure how to achieve that
|
||||
floodable = true,
|
||||
tiles = {
|
||||
"bamboo_bamboo-top.png", -- top
|
||||
"bamboo_bamboo-top.png", -- bottom
|
||||
"bamboo_bamboo-side.png",-- left
|
||||
"bamboo_bamboo-side.png",-- right
|
||||
"bamboo_bamboo-side.png",-- front
|
||||
"bamboo_bamboo-side.png"-- back
|
||||
"sbrl_bamboo_bamboo-top.png", -- top
|
||||
"sbrl_bamboo_bamboo-top.png", -- bottom
|
||||
"sbrl_bamboo_bamboo-side.png",-- left
|
||||
"sbrl_bamboo_bamboo-side.png",-- right
|
||||
"sbrl_bamboo_bamboo-side.png",-- front
|
||||
"sbrl_bamboo_bamboo-side.png"-- back
|
||||
},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
@ -75,8 +75,8 @@ minetest.register_node("bamboo:bamboo", {
|
|||
})
|
||||
|
||||
minetest.register_abm({
|
||||
label = "bamboo_growth",
|
||||
nodenames = { "bamboo:bamboo" },
|
||||
label = "sbrl_bamboo_growth",
|
||||
nodenames = { "sbrl_bamboo:bamboo" },
|
||||
neighbours = { "air" },
|
||||
interval = 45,
|
||||
chance = 4, -- 1 in 2
|
||||
|
@ -87,6 +87,6 @@ minetest.register_abm({
|
|||
if node_next.name ~= "air" or node.param2 > 24 then
|
||||
return
|
||||
end
|
||||
minetest.set_node(pos_new, { name = "bamboo:bamboo", param2 = node.param2 + 1 })
|
||||
minetest.set_node(pos_new, { name = "sbrl_bamboo:bamboo", param2 = node.param2 + 1 })
|
||||
end
|
||||
})
|
||||
|
|
18
crafting.lua
18
crafting.lua
|
@ -5,20 +5,20 @@
|
|||
-- ██████ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██████
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bamboo:bamboo_block",
|
||||
output = "sbrl_bamboo:bamboo_block",
|
||||
recipe = {
|
||||
{ "bamboo:bamboo", "bamboo:bamboo", "bamboo:bamboo" },
|
||||
{ "bamboo:bamboo", "bamboo:bamboo", "bamboo:bamboo" },
|
||||
{ "bamboo:bamboo", "bamboo:bamboo", "bamboo:bamboo" }
|
||||
{ "sbrl_bamboo:bamboo", "sbrl_bamboo:bamboo", "sbrl_bamboo:bamboo" },
|
||||
{ "sbrl_bamboo:bamboo", "sbrl_bamboo:bamboo", "sbrl_bamboo:bamboo" },
|
||||
{ "sbrl_bamboo:bamboo", "sbrl_bamboo:bamboo", "sbrl_bamboo:bamboo" }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "bamboo:bamboo 18",
|
||||
output = "sbrl_bamboo:bamboo 18",
|
||||
recipe = {
|
||||
"bamboo:bamboo_block",
|
||||
"bamboo:bamboo_block"
|
||||
"sbrl_bamboo:bamboo_block",
|
||||
"sbrl_bamboo:bamboo_block"
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -31,12 +31,12 @@ minetest.register_craft({
|
|||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "bamboo:bamboo",
|
||||
recipe = "sbrl_bamboo:bamboo",
|
||||
burntime = 1
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "bamboo:bamboo_block",
|
||||
recipe = "sbrl_bamboo:bamboo_block",
|
||||
burntime = 12 -- +3 burntime for crafting, so ~1.333 burntime / bamboo
|
||||
})
|
||||
|
|
10
init.lua
10
init.lua
|
@ -5,10 +5,10 @@
|
|||
-- @license Mozilla Public License, 2.0
|
||||
-- @author Starbeamrainbowlabs
|
||||
|
||||
bamboo = {
|
||||
modpath = minetest.get_modpath("bamboo")
|
||||
sbrl_bamboo = {
|
||||
modpath = minetest.get_modpath("sbrl_bamboo")
|
||||
}
|
||||
|
||||
dofile(bamboo.modpath.."/bamboo_plant.lua");
|
||||
dofile(bamboo.modpath.."/bamboo_block.lua");
|
||||
dofile(bamboo.modpath.."/crafting.lua");
|
||||
dofile(sbrl_bamboo.modpath.."/bamboo_plant.lua");
|
||||
dofile(sbrl_bamboo.modpath.."/bamboo_block.lua");
|
||||
dofile(sbrl_bamboo.modpath.."/crafting.lua");
|
||||
|
|
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 419 B |
Loading…
Reference in New Issue