pub enum TriggerAudience {
Party,
Presser,
}Expand description
Who an EnvTrigger’s effects address (DSL v0.11).
This is a dispatch decision, not a cosmetic one. A party trigger is
polled on the tick with no executor, so @s does not exist and every
player-facing command addresses @a. A presser trigger is dispatched by a
minecraft:player_interacted_with_entity advancement — the one vanilla
primitive that runs a function as the player who clicked — so @s is the
presser and the bundle addresses them alone. A presser trigger on: step
is polled as execute as @a[<the cell>], so @s is each player who stepped
on, on their own step.
The click primitive exists for right-clicks only. Vanilla records a
left-click on an interaction entity in NBT (which names a UUID no command can
become) and offers no criterion for it, so presser on a strike is refused
(DW0427) rather than approximated: per CLAUDE.md’s no-hack rule, a
capability with no vanilla primitive under it is excluded, never faked
downstream.
Variants§
Party
The whole party (the default, and what every trigger did before v0.11).
Presser
The one player whose press fired it: the right-click of a use, the
step of a step.
Trait Implementations§
Source§impl Clone for TriggerAudience
impl Clone for TriggerAudience
impl Copy for TriggerAudience
Source§impl Debug for TriggerAudience
impl Debug for TriggerAudience
Source§impl Default for TriggerAudience
impl Default for TriggerAudience
Source§impl<'de> Deserialize<'de> for TriggerAudience
impl<'de> Deserialize<'de> for TriggerAudience
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for TriggerAudience
Source§impl JsonSchema for TriggerAudience
impl JsonSchema for TriggerAudience
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more