On Corpse Spawn
When a corpse spawns
Corpse lifecycle events. These replace the old single corpse_action entry, which was an [com.typewritermc.engine.paper.entry.entries.ActionEntry] with an empty execute() fired through a hand-rolled ActionTrigger. That path bypassed the engine's trigger pipeline entirely, so the criteria and modifiers configured on the entry were silently ignored. Going through real events means the engine evaluates them.
フィールド
このエントリーに固有のフィールドはありません。必要な場所に追加してリンクしてください。
TypeWriter 共通フィールド(triggers)
| フィールド | 型 | デフォルト | 説明 |
|---|---|---|---|
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
Link the entries to run in triggers. They run for the owner of the corpse (for on_corpse_loot, for the player who looted it) and only when that player is online. The event publishes the context keys OWNER_NAME, OWNER_UUID, EXPERIENCE, ITEM_COUNT and CORPSE_POSITION, which the triggered entries can read.