From ae18b73c4124a60d142dcbfadcbd54b483645ea3 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 18 Jan 2017 15:53:26 +0000 Subject: added mulch and fertiliser items as well as new strength variable --- api.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'api.txt') diff --git a/api.txt b/api.txt index 50fc578..bc4e7fa 100644 --- a/api.txt +++ b/api.txt @@ -57,14 +57,17 @@ bonemeal:add_deco({"default:dirt_with_dry_grass", {"default:dry_grass_1", ""}, Global ON_USE Function ---------------------- -bonemeal:on_use(pos) +bonemeal:on_use(pos, strength) This function can be called from other mods to grow plants using alternative bonemeal items and have the same effect. + {pos} is the location to apply growing + {strength} is how strong to grow [low of 1 to high of 4] + Final Words =========== I hope this guide helps you add your own plants so you can grow them quickly -with bonemeal. Please check the mods.lua for more examples. +with the items included. Please check the mods.lua for more examples. -- cgit v1.2.3