forked from VoxeLibre/VoxeLibre
Update to new bone meal API.
* Update to use new mcl_bone_meal API: * Use new bone meal item and remove related comment. * Update mod depends in mod.conf * Spelling fixes: s/bonemeal/bone meal/g
This commit is contained in:
parent
c9afccd0c3
commit
8f05b612c9
|
@ -11,7 +11,7 @@ local composter_description = S(
|
||||||
"Composter"
|
"Composter"
|
||||||
)
|
)
|
||||||
local composter_longdesc = S(
|
local composter_longdesc = S(
|
||||||
"Composters can convert various organic items into bonemeal."
|
"Composters can convert various organic items into bone meal."
|
||||||
)
|
)
|
||||||
local composter_usagehelp = S(
|
local composter_usagehelp = S(
|
||||||
"Use organic items on the composter to fill it with layers of compost. " ..
|
"Use organic items on the composter to fill it with layers of compost. " ..
|
||||||
|
@ -83,7 +83,7 @@ local function composter_add_item(pos, node, player, itemstack, pointed_thing)
|
||||||
-- get current compost level
|
-- get current compost level
|
||||||
local level = registered_nodes[node.name]["_mcl_compost_level"]
|
local level = registered_nodes[node.name]["_mcl_compost_level"]
|
||||||
-- spawn green particles above new layer
|
-- spawn green particles above new layer
|
||||||
mcl_dye.add_bone_meal_particle(vector_offset(pos, 0, level/8, 0))
|
mcl_bone_meal.add_bone_meal_particle(vector_offset(pos, 0, level/8, 0))
|
||||||
-- TODO: play some sounds
|
-- TODO: play some sounds
|
||||||
-- update composter block
|
-- update composter block
|
||||||
if level < 7 then
|
if level < 7 then
|
||||||
|
@ -138,8 +138,8 @@ local function composter_harvest(pos, node, player, itemstack, pointed_thing)
|
||||||
end
|
end
|
||||||
-- reset ready type composter to empty type
|
-- reset ready type composter to empty type
|
||||||
swap_node(pos, {name="mcl_composters:composter"})
|
swap_node(pos, {name="mcl_composters:composter"})
|
||||||
-- spawn bone meal item (wtf dye?! is this how they make white cocoa)
|
-- spawn bone meal item
|
||||||
add_item(pos, "mcl_dye:white")
|
add_item(pos, "mcl_bone_meal:bone_meal")
|
||||||
-- TODO play some sounds
|
-- TODO play some sounds
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
@ -170,7 +170,7 @@ end
|
||||||
--
|
--
|
||||||
minetest.register_node("mcl_composters:composter", {
|
minetest.register_node("mcl_composters:composter", {
|
||||||
description = composter_description,
|
description = composter_description,
|
||||||
_tt_help = S("Converts organic items into bonemeal"),
|
_tt_help = S("Converts organic items into bone meal"),
|
||||||
_doc_items_longdesc = composter_longdesc,
|
_doc_items_longdesc = composter_longdesc,
|
||||||
_doc_items_usagehelp = composter_usagehelp,
|
_doc_items_usagehelp = composter_usagehelp,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# textdomain: mcl_composters
|
# textdomain: mcl_composters
|
||||||
Composter=
|
Composter=
|
||||||
Composters can convert various organic items into bonemeal.=
|
Composters can convert various organic items into bone meal.=
|
||||||
Use organic items on the composter to fill it with layers of compost. Every time an item is put in the composter, there is a chance that the composter adds another layer of compost. Some items have a bigger chance of adding an extra layer than other items. After filling up with 7 layers of compost, the composter is full. After a delay of approximately one second the composter becomes ready and bone meal can be retrieved from it. Right-clicking the composter takes out the bone meal empties the composter."=
|
Use organic items on the composter to fill it with layers of compost. Every time an item is put in the composter, there is a chance that the composter adds another layer of compost. Some items have a bigger chance of adding an extra layer than other items. After filling up with 7 layers of compost, the composter is full. After a delay of approximately one second the composter becomes ready and bone meal can be retrieved from it. Right-clicking the composter takes out the bone meal empties the composter."=
|
||||||
filled=
|
filled=
|
||||||
ready for harvest=
|
ready for harvest=
|
||||||
Converts organic items into bonemeal=
|
Converts organic items into bone meal=
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name = mcl_composters
|
name = mcl_composters
|
||||||
author = kabou
|
author = kabou
|
||||||
description = Composters can convert various organic items into bonemeal.
|
description = Composters can convert various organic items into bonemeal.
|
||||||
depends = mcl_core, mcl_sounds, mcl_dye
|
depends = mcl_core, mcl_sounds, mcl_bone_meal
|
||||||
optional_depends = doc
|
optional_depends = doc
|
||||||
|
|
Loading…
Reference in New Issue