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

Add the stop spectating entity rule type #311

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

haykam821
Copy link
Contributor

This pull request implements a rule type for players stopping spectating entities, which is useful for restricting the player's actions when the game is controlling the camera.

To use this rule, games can deny it when provided a GameActivity instance:

gameSpace.setActivity(activity -> {
            activity.deny(GameRuleType.STOP_SPECTATING_ENTITY);

            // Other game setup
            // ...
});

@Patbox Patbox merged commit 220f6b9 into NucleoidMC:main Nov 28, 2024
1 check passed
@haykam821 haykam821 deleted the stop-spectating-entity-rule-type branch December 5, 2024 21:10
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

Successfully merging this pull request may close these issues.

2 participants