plant out of 3928 meta-documentation entries...| Name | structure/plant grows naturally |
| Event Lines | <structure/plant> grows (naturally)
<structure/plant> grows from bonemeal |
| Triggers | when a structure (a tree or a mushroom) grows in a world. |
| Generated Examples | after structure/plant grows naturally:
after structure/plant grows from bonemeal: on structure/plant grows naturally: on structure/plant grows from bonemeal: |
| Has Player | when a player caused the structure growth to occur (eg with bonemeal). - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Contexts | <context.world> returns the WorldTag the structure grew in.
<context.location> returns the LocationTag the structure grew at.
<context.structure> returns an ElementTag of the structure's type. Refer to https://hub.spigotmc.org/javadocs/spigot/org/bukkit/TreeType.html.
<context.blocks> returns a ListTag of all block locations to be modified.
<context.new_materials> returns a ListTag of the new block materials, to go with <context.blocks>.
|
| Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
| Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
| Group | World |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/world/StructureGrowsScriptEvent.java#L20 |
| Name | tick |
| Syntax | tick [rate/step/sprint/freeze/reset] (amount:<#.#>/cancel) |
| Short Description | Controls the server's tick rate. |
| Full Description | Controls the server's tick rate. MC versions 1.20+ only.
The tick rate affects things such as entity movement (including player movement), entity animations, plant growth, etc. Be careful when setting the tick rate, as a high tick rate can overload the server. If tick rate is high, crops will grow faster, animations will speed up, and so forth. Conversely, if the tick rate is low, crops will grow slower, animations will slow down, and entity movement (including player movement) will slow down and appear to be in slow motion. For a list of all the things that the tick rate affects, see https://minecraft.wiki/w/Tick To change the tick rate, use the 'rate' argument and input the amount using 'amount'. The tick rate must be a number between 1.0 and 10000.0 (inclusive). To reset the tick rate to the normal value (20.0), use the 'reset' argument. To freeze the tick rate, use the 'freeze' argument. To unfreeze, add the 'cancel' argument. Freezing the tick rate will cause all entities (except for players and entities that a player is riding) to stop ticking. This means that entity movement and animations will stop, as well as stop things like crop growth, daylight cycle, etc. To step the tick rate while the server is frozen for a specific amount of time, use the 'step' argument and input the amount of ticks using 'amount'. Tick rate stepping is allowing the tick rate to resume for a specific amount of ticks while the server is frozen. After the amount of specified ticks have passed, the tick rate will refreeze. Step input should not be a number less than one. If the server is not frozen when trying to use the 'step' argument, nothing will happen. To make the tick rate as fast as possible for a specific amount of time, use the 'sprint' argument and input the amount of ticks using 'amount'. The tick rate will increase as much as possible without overloading the server for the amount of specified ticks. Sprint input should be not be a number less than one. For example, if you want to sprint 200 ticks, the tick rate will run 200 ticks as fast as possible and then return to the previous tick rate. To stop stepping or sprinting early, use the 'cancel' argument. The tick rate resets to 20.0 on server restart. For information about tick rate arguments, see https://minecraft.wiki/w/Commands/tick |
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Group | world |
| Warning(s) | Be careful, this command will affect plugins that depend on tick rate and may cause them to break. For example, setting the tick rate to 1 will cause the tick event to fire once per second. |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/world/TickCommand.java#L11 |
| Name | age |
| Object | MaterialTag |
| Input | ElementTag(Number) |
| Related Tags | <MaterialTag.age> (Property) Returns an ageable material's current age. This includes plant growth. (...)
|
| Description | (Property) Sets an ageable material's current age. This includes plant growth.
See also MaterialTag.maximum_age. |
| Generated Example | |
| Group | Properties |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialAge.java#L18 |
| Name | half |
| Object | MaterialTag |
| Input | ElementTag |
| Related Tags | <MaterialTag.half> Returns the current half for a bisected material (like a door, double-plant, chest, or a bed). (...)
|
| Description | Sets the current half for a bisected material (like a door, double-plant, chest, or a bed). |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialHalf.java#L168 |
| Name | MaterialTag |
| Prefix | m@ |
| Base Type | ElementTag |
| Implements | FlaggableObject, PropertyHolderObject |
| Identity Format | The identity format for materials is the material type name.
For example, 'm@stick'. |
| Description | A MaterialTag represents a material (a type of block or item).
Block materials may sometimes also contain property data, for specific values on the block material such as the growth stage of a plant or the orientation of a stair block. Material types: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html. This object type is flaggable. Flags on this object type will be stored in the server saves file, under special sub-key "__materials" |
| Matchable | MaterialTag matchers, sometimes identified as "<material>", associated with "<block>":
"material" plaintext: always matches. "block" plaintext: matches if the material is a block-type material. "item" plaintext: matches if the material is an item-type material. "material_flagged:<flag>": a Flag Matchable for MaterialTag flags. "vanilla_tagged:<tag_name>": matches if the given vanilla tag applies to the material. Allows advanced matchers, for example: "vanilla_tagged:mineable*". If none of the above are used, uses an advanced matcher for the material name, like "stick". |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/MaterialTag.java#L37 |
| Name | <LocationTag.drops[(<item>)]> |
| Returns | ListTag(ItemTag) |
| Description | Returns what items the block at the location would drop if broken naturally.
Optionally specifier a breaker item. Not guaranteed to contain exactly correct or contain all possible drops (for things like plants that drop only when grown, ores that drop random amounts, etc). |
| Generated Example | |
| Group | world |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L1443 |
| Name | <LocationTag.other_block> |
| Returns | LocationTag |
| Description | If the location is part of a double-block structure (double chests, double plants, doors, beds, etc),
returns the location of the other block in the double-block structure. |
| Generated Example | |
| Group | world |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L3955 |
| Name | <MaterialTag.age> |
| Returns | ElementTag(Number) |
| Mechanism | MaterialTag.age |
| Description | (Property) Returns an ageable material's current age. This includes plant growth.
See also MaterialTag.maximum_age. |
| Generated Example | |
| Group | Properties |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialAge.java#L18 |
| Name | <MaterialTag.half> |
| Returns | ElementTag |
| Mechanism | MaterialTag.half |
| Description | Returns the current half for a bisected material (like a door, double-plant, chest, or a bed).
Output for "Bisected" blocks (doors/double plants/...) is "BOTTOM" or "TOP". Output for beds is "HEAD" or "FOOT". Output for chests is "LEFT" or "RIGHT". |
| Generated Example | |
| Group | properties |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialHalf.java#L54 |
| Name | <MaterialTag.maximum_age> |
| Returns | ElementTag(Number) |
| Description | Returns the maximum age for an ageable material. This includes plant growth. |
| Generated Example | |
| Group | properties |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialAge.java#L76 |