We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

5

/OnEvent (EG /OnEvent entity death @a fall_damage run say Oof)

4 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 0
    Registered User commented
    Comment actions Permalink

    Personally, I would prefer it more as /event <event type> add <command> as you can have the command be run by the entity experiencing the event, and at the position of the block.

    So for your saying oof, it would be /event death.fall_damage add execute if entity @s[type=player] say Oof

    Then, you could have /event <event type> add <command>, /event <event type> list, /event <event type> query <command>, and /event <event type> remove <command>.

    So the add will add the command to the event, list lists all commands, query returns true / false for a given command, and remove removes the given command.

    Perhaps instead of command, you supply a "key", and then remove the key.

  • 1
    Registered User commented
    Comment actions Permalink

    *oof*

  • 0
    Registered User commented
    Comment actions Permalink

    Maybe it could be more like this:

    /onevent <block or entity> <specified block or entity> <something happens to block or entity> <what happens after that>

  • 0
    Registered User commented
    Comment actions Permalink

    Minecraft Java Edition should have a few JavaScript-like commands:

    onEvent

    setProperty