Compatibility
Minecraft: Java Edition
26.3
26.2
26.1.2
1.21.11
Platforms
Tags
Creators
Details
The Denizen Scripting Language โ Paper Impl (Unofficial)
An implementation of the Denizen Scripting Language for Paper servers, with strong Citizens interlinks to emphasize the power of using Denizen with NPCs!
โก Full Compatibility: Works flawlessly with Denizen Utilities and Denizen Reflect right after installation.
๐ Extension Highlights
- Next-Gen Support: Fully updated VS Code extension by
Humususus. - All-in-One: Includes all the latest changes and community-requested tweaks.
- Source & Guide: ๐ GitHub: refined-denizenScript
โก Async Scripting Engine
Script queues can now run off the main thread. Internal logic (tags, math, text, lists, maps) no longer consumes main thread CPU time, so slow scripts can't lag your server.
- Automatic main thread syncing: non-thread-safe actions sync to the main thread automatically, with zero risk of corruption.
- The first thread-crossing operation may take up to a tick; subsequent sequential calls take only microseconds.
- Fire-and-forget commands (
narrate,playsound,playeffect,runlater, etc.) hand over without waiting at all.
- New
asyncparameter forrun,runlater,defineanddefinemap:
run my_task async
runlater nightly_report delay:1h async
~define result <[huge_list].parse_tag[<[parse_value].to_uppercase>]>
- Async block:
- async:
- define sorted <server.flag[scores].sort_by_value>
- narrate "Top: <[sorted].keys.last>"
- New config section
Scripts.Async:Allow,Main thread wait timeout,Shutdown timeout,Main thread task budget ms,Main thread wait linger us,Warn at queue count,Max queue count. - ๐ Docs: full thread safety write-up in the Core README and the Async Queues / Async Tag Safety language meta pages.
โจ New Features
Internal
- Fully migrated to Paper Components for improved performance and modern API compatibility.
Events
- Added the Paper-specific event
on player changes unchecked sign. - Migrated
on player equips|unequips ...to a generalized syntax:on <entity> equips|unequips <item> or armor|helmet|chestplate|leggings|boots|body- Works for all entities and supports the new body slot.
<context.entity>โ theEntityTaginvolved<context.slot>โ the name of the equipment slot<context.new_item>/<context.old_item>โ the current and previousItemTagin the slot
BiomeTag (by isnsest)
- Added
BiomeTag.attributemechanism and tag to set specific vanilla biome attributes (accepts aMapTag). - Specify only the attribute name (e.g.
SKY_COLOR, notvisuals/SKY_COLOR). - More details: Minecraft Wiki โ Environment attribute
Examples:
# Change sky color and cloud height
adjust <biome[plains]> attribute:[SKY_COLOR=<ColorTag or valid HEX>;CLOUD_HEIGHT=600]
# Cave ambience with a much more frequent mood sound
adjust <biome[plains]> attribute:<map[ambient_sounds=<map[loop=AMBIENT_CAVE;mood=<map[sound=AMBIENT_CAVE;tick_delay=1200]>]>]>
# Stop players from sleeping in deserts, and tell them why
adjust <biome[desert]> attribute:<map[bed_rule=<map[can_sleep=NEVER;error_message=<&c>It is far too hot to sleep here.]>]>
# Drifting white ash in the plains biome
adjust <biome[plains]> attribute:<map[ambient_particles=<map[WHITE_ASH=0.12]>]>
Text & Formatting
- New tags:
<&sprite>,<&shadow_color>,<&shadow_gradient>,<&dual_gradient>and<&head>. - Added
.shadow_color,.shadow_gradientand.dual_gradienttags toElementTag.
| Tag | Examples |
|---|---|
<&sprite> |
<&sprite[minecraft:items:item/porkchop]> |
<&shadow_color> |
<&shadow_color[#51a2ff]><&shadow_color[<color[#51a2ff].with_alpha[255]>]> |
<&shadow_gradient> |
<&shadow_gradient[from=#51a2ff;to=#FFF085]><&shadow_gradient[from=<color[#51a2ff].with_alpha[0]>;to=<color[#FFF085].with_alpha[255]>]> |
<&dual_gradient> |
<&dual_gradient[from=#51a2ff;to=#FFF085;s_from=#FFF085;s_to=#51a2ff]> |
<&head> |
<&head[Tjtoxshpilivili1]> โ full face texture<&head[!Tjtoxshpilivili1]> โ face only (no surface pixels) |
from/toโ simple color gradients_from/s_toโ shadow color gradient<&head>also accepts<PlayerTag.skin_blob>,UUIDandbase64skin textures.
New Tags & Utilities
List operations
<ListTag.activation[<type>]>โ applies activation functions (RELU, SIGMOID, TANH, ...) to list elements.<ListTag.matrix_mul[<list>]>โ matrix multiplication.<ListTag.dot_product[<list>]>โ dot product of two numerical lists.
Queue & thread diagnostics
<QueueTag.is_async>โ checks if a queue runs asynchronously.<QueueTag.async_stats>โ performance statistics for async queues.<util.is_main_thread>โ checks if the current thread is the main server thread.<util.current_thread>โ details about the active thread.<util.current_time_nanos>โ precise time in nanoseconds.
๐พ Commands
Teleport
- New
asyncoption teleports to unloaded chunks without causing server lag (a slight delay is possible). Paper docs ~waitablesupport for async teleports, so scripts can wait until the teleport is fully completed.
teleport <object> <location> async
~teleport <object> <location> async
Playeffect
- Migrated to Paper's modern
ParticleBuilderAPI, fixing the vanilla limitation where particles wouldn't render beyond 32 blocks. - Automatic handling of the
forcedparameter, so particles render correctly at extended distances.
playeffect effect:END_ROD quantity:100 <location> visibility:100 forced
Resourcepack
- New
addargument to send additional resource packs to a player. PlayerTag.remove_resource_packโ remove a specific pack by ID.PlayerTag.remove_resource_packsโ remove all packs.
Adjustblock
- Now accepts a
MapTag, matching the behavior ofadjust.
adjustblock <location> <map[direction=north;half=top]>
Playsound
source:<entity>โ play a sound directly from an entity; the audio follows its movement and stops automatically if the entity dies.targets:<player>|...โ choose which players hear the sound; also offloads execution from the main thread.
playsound <location> sound:<sound> source:<entity>
playsound <location> sound:<sound> targets:<player>
Run / Runlater
- New
asyncargument runs the script in its own asynchronous queue.
runlater <script> delay:5s async
run <script> async
๐งช Items & Mechanics
Attributes
- New
.rarity_colortag for items (returnsColorTag):<player.item_in_hand.rarity_color>
Custom Model Data
custom_model_datamechanism and property now return aMapTagoffloats,strings,flags(booleans) andcolors.- Accepts a
MapTagwith lists of these values for advanced item model selection. Single-number input still works.
custom_model_data: 1000
custom_model_data: [floats=1000;flags=...;strings=foo:bar;colors=<color[127,0,0]>]
MaterialTag
- Added
MaterialTag.chain_parttag and mechanism to get or set the shelf connection state (LEFT,CENTER,RIGHT,UNCONNECTED).
<material.chain_part>
adjust <material> chain_part:CENTER
๐งน Optimization & Cleanup
- Core optimization: custom optimizations across several internal classes.
.find_entities[<#.#>].within[<#.#>]: new.unsortedsub-tag to skip distance sorting for better performance..distance: replacedMath.powwith direct multiplication for faster calculations.
Removals
.scriptnametag removed from all objects.Denizen ASAP Strong Warningfully removed.- Some very old, deprecated Denizen tags removed.
- [WIP] Removed NMSVersion checks for versions prior to 26.1.
๐ Bug Fixes
- showfake: fixed an error message appearing even though the command worked correctly.
- fakeinternaldata: fixed a critical bug where the command was non-functional and threw an error.


