mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-27 03:37:31 +01:00
clear up comment confusion.
Factored out hard coded names for variable names. removed "minecraft" from README.md.
This commit is contained in:
parent
132178b8c7
commit
3074c15d14
@ -1,7 +1,7 @@
|
|||||||
mcl_bamboo
|
mcl_bamboo
|
||||||
=========
|
=========
|
||||||
|
|
||||||
This mod adds minecraft-like bamboo nodes to your Mineclone 2 world.
|
This mod adds working, familiar bamboo nodes to your Mineclone 2 world.
|
||||||
|
|
||||||
Code: Michieal. Original (basic) bamboo code by: Small Joker.
|
Code: Michieal. Original (basic) bamboo code by: Small Joker.
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ local DOUBLE_DROP_CHANCE = 8
|
|||||||
-- "BAMBOO" goes here.
|
-- "BAMBOO" goes here.
|
||||||
local BAMBOO = "mcl_bamboo:bamboo"
|
local BAMBOO = "mcl_bamboo:bamboo"
|
||||||
local BAMBOO_ENDCAP_NAME = "mcl_bamboo:bamboo_endcap"
|
local BAMBOO_ENDCAP_NAME = "mcl_bamboo:bamboo_endcap"
|
||||||
|
local BAMBOO_PLANK = BAMBOO .. "_plank"
|
||||||
|
|
||||||
-- LOCALS
|
-- LOCALS
|
||||||
local modname = minetest.get_current_modname()
|
local modname = minetest.get_current_modname()
|
||||||
@ -33,7 +34,8 @@ local bamboo_def = {
|
|||||||
|
|
||||||
drop = {
|
drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
-- Maximum number of item lists to drop.
|
-- From the API:
|
||||||
|
-- max_items: Maximum number of item lists to drop.
|
||||||
-- The entries in 'items' are processed in order. For each:
|
-- The entries in 'items' are processed in order. For each:
|
||||||
-- Item filtering is applied, chance of drop is applied, if both are
|
-- Item filtering is applied, chance of drop is applied, if both are
|
||||||
-- successful the entire item list is dropped.
|
-- successful the entire item list is dropped.
|
||||||
@ -43,13 +45,13 @@ local bamboo_def = {
|
|||||||
items = {
|
items = {
|
||||||
-- Examples:
|
-- Examples:
|
||||||
{
|
{
|
||||||
-- 1 in 100 chance of dropping.
|
-- 1 in DOUBLE_DROP_CHANCE chance of dropping.
|
||||||
-- Default rarity is '1'.
|
-- Default rarity is '1'.
|
||||||
rarity = DOUBLE_DROP_CHANCE,
|
rarity = DOUBLE_DROP_CHANCE,
|
||||||
items = {BAMBOO .. " 2"},
|
items = {BAMBOO .. " 2"},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
-- 1 in 2 chance of dropping.
|
-- 1 in 1 chance of dropping. (Note: this means that it will drop 100% of the time.)
|
||||||
-- Default rarity is '1'.
|
-- Default rarity is '1'.
|
||||||
rarity = 1,
|
rarity = 1,
|
||||||
items = {BAMBOO},
|
items = {BAMBOO},
|
||||||
@ -244,7 +246,7 @@ minetest.register_node("mcl_bamboo:bamboo_plank", {
|
|||||||
|
|
||||||
-- Bamboo Part 2 Base nodes.
|
-- Bamboo Part 2 Base nodes.
|
||||||
-- Bamboo Mosaic
|
-- Bamboo Mosaic
|
||||||
local bamboo_mosaic = table.copy(minetest.registered_nodes[BAMBOO .. "_plank"])
|
local bamboo_mosaic = table.copy(minetest.registered_nodes[BAMBOO_PLANK])
|
||||||
bamboo_mosaic.tiles = {"mcl_bamboo_bamboo_plank.png"}
|
bamboo_mosaic.tiles = {"mcl_bamboo_bamboo_plank.png"}
|
||||||
bamboo_mosaic.groups = {handy = 1, axey = 1, flammable = 3, fire_encouragement = 5, fire_flammability = 20}
|
bamboo_mosaic.groups = {handy = 1, axey = 1, flammable = 3, fire_encouragement = 5, fire_flammability = 20}
|
||||||
bamboo_mosaic.description = S("Bamboo Mosaic Plank")
|
bamboo_mosaic.description = S("Bamboo Mosaic Plank")
|
||||||
|
Loading…
Reference in New Issue
Block a user