-
Notifications
You must be signed in to change notification settings - Fork 401
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
Adding right click, left clicking interacting protocols #808
Comments
Wiki.vg has all the documentation for mc protocols
…On Fri, Sep 20, 2019, 7:53 PM jakeau ***@***.***> wrote:
Was wondering if there was a place I could contact you about MC protocols.
Cheers.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#808>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFYTD5HH3XSFCZ6ZR235NOLQKWEENANCNFSM4IY4VM4A>
.
|
Related: #502 #205 and #183 |
Cheers for the help. I am attempting to implement this IOT click a button. I am testing it by attacking the sender. public void SendUseEntity(int target, int type = 0, float x = 0, float y = 0, float z = 0, int hand = 0)
{
handler.SendUseEntity(target, type, x, y, z, hand);
}
public bool SendUseEntity(int target, int type = 0, float x = 0, float y = 0, float z = 0, int hand = 0)
{
byte[] yawpitch = new byte[0];
PacketOutgoingType packetType = PacketOutgoingType.UseEntity;
try
{
SendPacket(packetType, dataTypes.ConcatBytes(
dataTypes.GetVarInt(target),
dataTypes.GetVarInt(type),
dataTypes.GetFloat(x),
dataTypes.GetFloat(y),
dataTypes.GetFloat(z),
dataTypes.GetVarInt(hand)));
return true;
}
catch (SocketException) { return false; }
} I am being disconnected from the server. I am using varInt Target as the playerID of the player it wishes to attack. I believe this is wrong, what are the target value and the best way to obtain it. Cheers. |
If not already the case, I'd suggest to run a vanilla server on your own computer since an anti-cheat plugin may interfer with your work (you'll make it right later, get it working first on vanilla even if it's not fully correct) and the console may show useful error messages. Regarding the packet itself: make sure the ID of your target is right, visible, and you are looking at it. You may need to enable terrain and movements. You may also want to examine packet content sent by a vanilla client. To do this, I just added for you a tool previously developed for issues such as #195. It's a man-in-the-middle proxy that can intercept and display packets from a Vanilla client as long as encryption is disabled (offline mode servers only). Just need to add the relevant parsing code. |
Was wondering if there was a place I could contact you about MC protocols. Cheers.
The text was updated successfully, but these errors were encountered: