A Shrub Type is basicaly a species. There can be many, many individuals placed on the world, all of them belonging to the same Shrub Type, producing the same produce, and blooming under the same conditions.
Shrub Types are defined in a config file. Editing them will affect all shrub instances in the world.
Basically, players may plant hundreds of shrubs of a same type throughout the world, but you can control how they all behave collectively through the type yml.
A visual example is where they display their produce, here are the three display types, from highest to lowest:
Vat
Peek
Default
Give a name to your new plant, players never see this, it is used internally.
The type and ID of the MMOItem they generate. You know, like CONSUMABLE MANGO
The amount of time that must elapse between generations (and how long players must wait before it starts producing for the first time).
Once this countdown hits zero, a shrub will tick for generation.
I recommend resetting this generation cooldown whenever a shrub is harvested, it feels better.
Every generation tick's chance of actually producing items.
You define shrub types in plugins/MMOItem_Shrubs/shrub-types.yml:
SupremeMangoShrub:
# What MMOItem does it produce?
Produced_MMOItem_Type: CONSUMABLE
Produced_MMOItem_ID: MANGO
# Generation Parameters
Minimum_Generation_Time: 120 # Attempt to generate every 10 seconds
Generation_Chance: 10 # 10% Chance of success
And that is the most basic shrub you can have, all other options are optional.Recommended line to add
HarvestResetCooldown: true
To choose between the three display types, basically the pose of the invisible armor stand:
# Include only one of these
Alternate_Type: DEFAULT
Alternate_Type: PEEK
Alternate_Type: VAT
And thats all the basics in configs. To load changes you run /goop mmoitems reloadShrubTypes, and you're ready to put it on a MMOItem.
In here you have to specify the name of your shrub
This particular example one will take two minutes to generate its first mango :)
Even when already placed on the world, the shrub will update with /goop mmoitems reloadShrubTypes, and obey the latest parameters you've set.
Never delete or change the names of Shrub Types. Doing so will break all shrubs of that type already placed on the world.
Uninstalling: All armor stands generated by shrubs have the tag MMOItem_Shrub, so you can delete them easily with this vanilla command:
/minecraft:kill @e[tag=MMOItem_Shrub]