Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NameDisplayItem
Syntaxdisplayitem [<item>] [<location>] (duration:<value>)
Short DescriptionMakes a non-touchable item spawn for players to view.
Full DescriptionThis command drops an item at the specified location which cannot be picked up by players.

It accepts a duration which determines how long the item will stay for until disappearing.
If no duration is specified the item will stay for 1 minute, after which the item will disappear.
Use "duration:infinite" to indicate that the item should never remove itself.
Related Tags<EntityTag.item> (Property) An entity's item, which can be: (...)
<entry[saveName].dropped> returns a EntityTag of the spawned item.
Usage Example
# Use to display a stone block dropped at a players location.
- displayitem stone <player.location>
Usage Example
# Use to display a diamond sword dropped at a relevant location.
- displayitem diamond_sword <context.location>
Usage Example
# Use to display redstone dust dropped at a related location disappear after 10 seconds.
- displayitem redstone <context.location> duration:10s
Usage Example
# Use to save the dropped item to save entry 'item_dropped'.
- displayitem redstone <context.location> duration:10s save:item_dropped
Groupitem
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/item/DisplayItemCommand.java#L38