User Tools

Site Tools


actions:action_contexts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

actions:action_contexts [2024/04/30 16:26] – created errorcraftactions:action_contexts [2024/05/08 13:30] (current) – add action context parameter set errorcraft
Line 37: Line 37:
 | ''this'' | The original executing type. | | ''this'' | The original executing type. |
 | ''target'' | The targeted type, usually a direct target from the original executing type. | | ''target'' | The targeted type, usually a direct target from the original executing type. |
 +
 +
 +===== Parameter Sets =====
 +These parameters are sometimes defined in a set, usually when they are converted to some other context, such as a [[mc>Function_(Java_Edition)#Behaviors|function context]] or a [[mc>Loot_context|loot context]].
 +It has fields for all types with parameters in the action context.
 +
 +
 +==== Fields ====
 +^  Name  ^  Description  ^  Type  ^  Default Value  ^
 +| ''entity'' | The entity to pick from the context. | An [[#parameters|action context parameter]] | |
 +| ''position'' | The position to pick from the context. | An [[#parameters|action context parameter]] | |
 +
 +
 +===== Example =====
 +<code javascript>
 +{
 +  "entity": "this",
 +  "position": "target"
 +}
 +</code>
actions/action_contexts.1714494381.txt.gz · Last modified: 2024/04/30 16:26 by errorcraft