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

Added initial support for discrete movement #81

Merged
merged 12 commits into from
Dec 26, 2024
Merged

Conversation

EHAT32
Copy link
Contributor

@EHAT32 EHAT32 commented Dec 23, 2024

pr corresponding to trueagi-io/minecraft-demo#180

Discrete movement implemented via teleporting agent one block towards given direction.

Also, since I started working with Vereya, I've been encountering issues in commands where agent is supposed to execute commands within the game: i believe the problem is that agent does not have permissions to execute commands when it joins the server. I tried to solve this problem by oping an agent when they join the world by registering the corresponding event. Is it okay to use?

@noskill
@CICS-Oleg

if (minecraftServer != null) {
GameProfile gameProfile = player.getGameProfile();
OperatorEntry operatorEntry = new OperatorEntry(gameProfile, 4, true);
minecraftServer.getPlayerManager().getOpList().add(operatorEntry);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I should just put this code in the section you linked to. Is that correct?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@noskill
Copy link
Collaborator

noskill commented Dec 25, 2024

Test failure is due to your local master branch not being up-to-date with origin/master. Please synchronise your branch.

@EHAT32
Copy link
Contributor Author

EHAT32 commented Dec 25, 2024

Done

@noskill noskill merged commit 780f4d8 into trueagi-io:master Dec 26, 2024
1 check passed
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