Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
/ game_event Public archive

Adds simple game event handling for 1.17 snapshots

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.md
Notifications You must be signed in to change notification settings

lolgeny/game_event

Repository files navigation

NOTE: THIS HAS BEEN MERGED WITH FEMTOBLAZE AND NOW LIVES IN A LOVELY COTTAGE AT https://github.com/lolgeny/femtoblaze

Game event

Simple mod for interfacing with game events in datapacks.

Usage

Game events go into the game_events folder in datapacks. They have a structure like so:

{
  "event": "<event_id>",
  "function": "<function_id>",
  "predicate": [
    {
      "condition": "<predicate>",
      "...": ""
    },
    "..."
  ]
}

The predicate tag is optional and specifies a list of predicates to check before running the function. Note this entity is set (if there is one for this event) and the block position is set.
The event ids can be found on the wiki. This will run your function when a game event happens, at the location of the event and as the entity associated with the event, if there is one.

About

Adds simple game event handling for 1.17 snapshots

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages