Skip to content

2.1.2-beta.0: logic-gated ifs, equipped trigger, equip_armor, animated look/turn - #4

Merged
KingJayan merged 2 commits into
masterfrom
feature/2.1.2-beta.0
Jul 14, 2026
Merged

KingJayan merged 2 commits into
masterfrom
feature/2.1.2-beta.0

Conversation

@KingJayan

Copy link
Copy Markdown
Owner

features

  • robust if statements: else if chains now parse in the DSL; conditions already combine with and / or / not and parentheses, now covered by tests and docs
  • equipped() trigger (visual + DSL): fires when an armor piece or elytra is equipped, with optional item list and required-enchant filters (equipped("minecraft:elytra", enchant="minecraft:unbreaking")). Also usable as a live check inside if
  • equip_armor() action (visual + DSL): equips an armor piece by using it; identical arguments and swap behavior to use_item (item, hotbarGate, vanillaSwap, swapToDelay, useDelay, swapBackDelay)
  • animated look() / turn() (visual + DSL): new motion (instant, lerp, jitter, random), easing (linear, cubic, quartic, bezier), and ticks arguments; jitter adds decaying noise, random uses randomized per-tick progress, and the macro waits for the motion to finish. Instant remains the default

@KingJayan
KingJayan merged commit db85b67 into master Jul 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant