⚡ Events & Triggers
If something happens in your world → run any command.
No datapack, no command blocks, no coding: write a sentence, press Save.
Minecraft Java 1.20.1 → 26.3 — Fabric, Forge & NeoForge — by buildak
---
✍️ Write rules like sentences
Press Y to open the menu, pick a trigger, type a command:
```
If player jumps /give @s minecraft:diamond
If player jumps And If player sneaks /summon minecraft:sheep
If player eats minecraft:cooked_beef Or If player breaks minecraft:oak_log /kill @e[type=zombie]
```
Any command works — vanilla **or from another mod** (`/give`, `/summon`, `/effect`, `/tp`, `/playsound`, `/title`, `/execute`…).
🧩 Special words
| Word | Meaning | Example |
|---|---|---|
| **And** | both at the same time | `If player jumps And If player sneaks /…` |
| **Or** | one or the other | `If player dies Or If player is in lava /…` |
| **Not** | must *not* be true | `If player jumps And Not If player is on ground /…` |
| **Then** | run several commands | `/say Hello Then /give @s minecraft:apple` |
| **Wait N** | pause N seconds between commands | `/title @s title "3" Then Wait 1 Then /title @s title "GO"` |
| **Cooldown N** | at most once every N seconds | `If player sprints Cooldown 10 /effect give @s speed 5` |
Variables in commands: `{player}`, `{x}`, `{y}`, `{z}`, and for YouTube `{author}`, `{message}`, `{amount}`, `{count}`, `{title}`, `{url}`.
🎯 180+ triggers
- **Player** — jumps, sneaks, sprints, swims, joins, respawns, dies, levels up, reaches level N, gets advancement [ID], has / gets effect [ID], goes to bed, wakes up, trades with a villager, catches a fish, breeds animals, enchants, is AFK for N seconds, looks at [Block ID] / at an entity, plays for N minutes…
- **Movement** — in water / lava / the air, on fire, flying, gliding with elytra, climbing, falling, lands, rides [Entity ID], mounts / dismounts, enters dimension [ID], enters biome [ID], above / below Y, in darkness, in the rain, stands on [Block ID], walks / sprints / swims / flies N blocks…
- **Blocks** — **block [Block ID] loaded**, **block [Block ID] placed**, breaks [Block ID], breaks / places any block, near block [ID], opens a chest / barrel / ender chest / shulker box, uses a crafting table / furnace / anvil / beacon / brewing stand…, rings a bell, plays a note block, eats cake…
- **Items** — **eats [Item ID]**, eats anything, drinks a potion / milk, uses / crafts / picks up / drops [Item ID], tool breaks, holds [Item ID] (main or off hand), has N [Item ID], wears [Item ID], full inventory…
- **Combat & health** — kills [Entity ID], kills a mob / a player, killed by [Entity ID], takes / deals damage, hit by [Entity ID], blocks with a shield, health below / above N, hungry, entity [ID] spawns nearby…
- **World & time** — it becomes day / night, a new day, full moon, time is N, rain / thunder starts / stops, every N seconds / minutes, server starts, player count reaches N.
🔴 YouTube triggers (24)
Paste a video or channel link in `[URL]`:
- `If youtube video [URL] gets a like` / `loses a like` / `gets a view` / `gets a comment`
- `If youtube video [URL] reaches [N] likes` / `views` / `comments`
- `If youtube channel [URL] gets a subscriber` / `loses a subscriber` / `reaches [N] subscribers`
- `If youtube channel [URL] uploads a video` / `uploads a short` / `goes live` / `ends a live`
- `If youtube live [URL] gets a chat message` / `chat says [Word]` / `gets a super chat` / `gets a super sticker` / `gets a new member` / `gets a gifted membership` / `reaches [N] viewers`
**Perfect for streamers:** every like spawns a creeper, every new subscriber gives a diamond, chat says "tnt" → TNT rain!
Ten likes at once? The rule runs ten times.
> 🔑 **Without any key**: video views, new videos / shorts and lives work out of the box.
> For likes, comments, subscribers and live chat, paste a free **YouTube Data API v3 key** (Google Cloud Console) in *YouTube & settings…*.
> YouTube rounds subscriber counts above 1,000 and live chat uses API quota (10,000 units/day for free).
🖥️ Menu & commands
- Y opens the menu (rebindable). On Forge / NeoForge also via the **Config** button of the mod list.
- Rule list: on/off, edit, move, test, delete. Live syntax check while you type.
- Trigger catalog with search and categories — click to insert.
- Servers: install the mod on the server. Operators manage rules with `/et` (alias of `/eventstriggers`):
`/et list`, `/et add <rule>`, `/et set <n> <rule>`, `/et remove <n>`, `/et enable|disable <n>`, `/et test <n>`,
`/et triggers [search]`, `/et youtube key <key>`, `/et youtube status`, `/et reload`.
- Rules are saved in `config/eventstriggers/rules.json`, settings in `config/eventstriggers/config.json`.
❓ FAQ
- Who is `@s`? The player who triggered the rule. World / YouTube rules run once for each online player.
- Event or state? Events (jump, like…) fire every time they happen. States (sneaks, holds…) fire once when they become true — add `Cooldown` to repeat.
- Performance? No mixins: triggers read vanilla statistics once per tick. Unused triggers cost nothing.
- Modpacks allowed. Recording and streaming: encouraged !