Denizen Script Meta Documentation Search


Learn about how Denizen works in The Beginner's Guide.
Showing 10 search results for plant out of 3928 meta-documentation entries...

Partial Name Match Results



Event


Namestructure/plant grows naturally
Event Lines <structure/plant> grows (naturally)
<structure/plant> grows from bonemeal
Triggerswhen a structure (a tree or a mushroom) grows in a world.
Generated Examplesafter structure/plant grows naturally:
after structure/plant grows from bonemeal:
on structure/plant grows naturally:
on structure/plant grows from bonemeal:
Has Playerwhen 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>.
CancellableTrue - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false'
Has LocationTrue - This adds the switches 'in:<area>', 'location_flagged:<flag>', ...
GroupWorld
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/world/StructureGrowsScriptEvent.java#L20

Semi-Decent Match Results



Command


Nametick
Syntaxtick [rate/step/sprint/freeze/reset] (amount:<#.#>/cancel)
Short DescriptionControls the server's tick rate.
Full DescriptionControls 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
# Use to set the tick rate to 30 ticks per second.
- tick rate amount:30
Usage Example
# Use to stop stepping early if the server is currently stepping.
- tick step cancel
Usage Example
# Use to reset tick rate.
- tick reset
Usage Example
# Use to freeze the server.
- tick freeze
Usage Example
# Use to unfreeze the server.
- tick freeze cancel
Groupworld
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 Event:tick event to fire once per second.
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/world/TickCommand.java#L11

Mechanism


Nameage
ObjectMaterialTag
InputElementTag(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 Tag:MaterialTag.maximum_age.
Generated Example
- adjust <material[stone]> age:2
GroupProperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialAge.java#L18
Namehalf
ObjectMaterialTag
InputElementTag
Related Tags<MaterialTag.half> Returns the current half for a bisected material (like a door, double-plant, chest, or a bed). (...)
DescriptionSets the current half for a bisected material (like a door, double-plant, chest, or a bed).
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialHalf.java#L168

ObjectType


NameMaterialTag
Prefixm@
Base TypeElementTag
ImplementsFlaggableObject, PropertyHolderObject
Identity FormatThe identity format for materials is the material type name.
For example, 'm@stick'.
DescriptionA 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"
MatchableMaterialTag 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".
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/MaterialTag.java#L37

Tag


Name<LocationTag.drops[(<item>)]>
ReturnsListTag(ItemTag)
DescriptionReturns 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
- foreach <player.location.drops> as:entry:
    - narrate "found <[entry]>"
Groupworld
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L1443
Name<LocationTag.other_block>
ReturnsLocationTag
DescriptionIf 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
- teleport <player> <player.location.other_block>
Groupworld
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L3955
Name<MaterialTag.age>
ReturnsElementTag(Number)
MechanismMaterialTag.age
Description(Property) Returns an ageable material's current age. This includes plant growth.
See also Tag:MaterialTag.maximum_age.
Generated Example
- narrate "the number value is <material[stone].age>"
GroupProperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialAge.java#L18
Name<MaterialTag.half>
ReturnsElementTag
MechanismMaterialTag.half
DescriptionReturns 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
- narrate <material[stone].half>
Groupproperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialHalf.java#L54
Name<MaterialTag.maximum_age>
ReturnsElementTag(Number)
DescriptionReturns the maximum age for an ageable material. This includes plant growth.
Generated Example
- narrate "the number value is <material[stone].maximum_age>"
Groupproperties
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialAge.java#L76