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

Implement custom objective modes #1422

Merged
merged 1 commit into from
Nov 3, 2024
Merged

Implement custom objective modes #1422

merged 1 commit into from
Nov 3, 2024

Conversation

Pablete1234
Copy link
Member

@Pablete1234 Pablete1234 commented Nov 3, 2024

Allows for objective modes that are not transforming a core or monument's blocks, and instead run an action.

This is useful for things like water lanes, since it gives the framework of alerting players (bossbar, the /modes command) as well as allowing mapdev tweaks (/modes push).

Changes:

  • material is no longer required, but if not set, action and name become required.
  • action can now be included, and will run alongside the mode change. This can be used alongside material just fine.
  • cores and monuments will ignore modes with no material

image

Signed-off-by: Pablo Herrera <pabloherrerapalacio@gmail.com>
@Pablete1234 Pablete1234 merged commit c38f894 into dev Nov 3, 2024
2 checks passed
@Pablete1234 Pablete1234 deleted the custom-modes branch November 3, 2024 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants