dropped_item out of 3939 meta-documentation entries...| Name | block drops item from breaking |
| Event Lines | block drops item from breaking
<block> drops <item> from breaking |
| Triggers | when a items drop from a block due to a player breaking the block in survival mode. |
| Generated Examples | after block drops item from breaking:
after soul_wall_torch drops item from breaking: |
| Has Player | Always. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Contexts | <context.location> returns the LocationTag the block was broken at.
<context.material> returns the MaterialTag of the block that was broken.
<context.drop_entities> returns a ListTag of EntityTags of type DROPPED_ITEM. To get the list of ItemTags, just tack ".parse[item]" onto this context tag.
|
| 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 | Player |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/player/BlockDropsItemScriptEvent.java#L19 |
| Name | time_lived |
| Object | EntityTag |
| Input | DurationTag |
| Related Tags | <EntityTag.time_lived> Returns how long the entity has lived.
|
| Description | Sets the amount of time this entity has lived for.
For entities that automatically despawn such as dropped_items or falling_blocks, it can be useful to set this value to "-2147483648t" (the minimum valid number of ticks) to cause it to persist indefinitely. For falling_block usage, see also EntityTag.auto_expire |
| Generated Example | |
| Synonyms (Search Aid) | entitytag.age_nbt, entitytag.time_nbt |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java#L3650 |
| Name | Remove |
| Syntax | remove [<entity>|...] (world:<world>) |
| Short Description | Despawns an entity or list of entities, permanently removing any NPCs. |
| Full Description | Removes the selected entity. May also take a list of entities to remove.
Any NPC removed this way is completely removed, as if by '/npc remove'. For temporary NPC removal, see despawn. If a generic entity name is given (like 'zombie'), this will remove all entities of that type from the given world. Optionally, you may specify a world to target. (Defaults to the world of the player running the command) |
| Related Tags | <EntityTag.is_spawned> Returns whether the entity is spawned.
|
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Group | entity |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/RemoveCommand.java#L28 |