summaryrefslogtreecommitdiff
path: root/api.txt
diff options
context:
space:
mode:
authorh-v-smacker <hans-von-smacker+github@gmail.com>2018-05-07 16:11:08 +0300
committerh-v-smacker <hans-von-smacker+github@gmail.com>2018-05-07 16:11:08 +0300
commitd14339069d6cee29ad74e7d9fd50c69b6fb2b4ec (patch)
tree51a4f0f1d0cc17aa6bd76ec742137e4ebf29f037 /api.txt
parentfc4a6a44ebfff75cbdf0a4b62b63d7b8b5f7eacc (diff)
parentdd422b609164b338c4a68166b78a1d7d2d9e5250 (diff)
merge upstream
Diffstat (limited to 'api.txt')
-rw-r--r--api.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/api.txt b/api.txt
index e399bdc..d2eddc2 100644
--- a/api.txt
+++ b/api.txt
@@ -59,19 +59,19 @@ which allows to decrease the frequency of decoration emergence, if needed.
e.g.
bonemeal:add_deco({
- {"default:dirt_with_dry_grass", {"default:dry_grass_1", ""},
+ {"default:dirt_with_dry_grass", {"default:dry_grass_1", ""},
{"flowers:rose", "flowers:viola"} }
})
Thus, add_deco() always adds (to) a definition, and never overrides. To discard an existing
definiton in favor of the new one, use
-
+
bonemeal:set_deco({
{ dirt_node, {grass_node_list}, {decor_node_list} }
})
This command will set decoration for a given dirt type, fully replacing any existing definition.
-
+
Global ON_USE Function
----------------------
@@ -93,4 +93,4 @@ Final Words
===========
I hope this guide helps you add your own plants so you can grow them quickly
-with the items included. Please check the mods.lua for more examples.
+with the items included. Please check the mods.lua for more examples. \ No newline at end of file