Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] An action that calls a function. #26

Open
BobVarioa opened this issue Feb 7, 2021 · 0 comments
Open

[Feature] An action that calls a function. #26

BobVarioa opened this issue Feb 7, 2021 · 0 comments

Comments

@BobVarioa
Copy link

Title.
Ex.

// spawn.json
[
  {
    "biome": "Plains",
    "function": "say hi"
  }
]

Run "say hi" when a mob spawns in a Plains biome. In this case the function would be run as the mob being spawned and at it's location, but for other rules this could be different, like for example, rules in rightclicks.json could be run as the player and at the block being right clicked or something similar.

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

No branches or pull requests

1 participant