Skip to content

Instantly share code, notes, and snippets.

@RandomOnlineName
Created June 29, 2020 17:24
Show Gist options
  • Save RandomOnlineName/ade3a10a7692037ef66f289ec0c9477f to your computer and use it in GitHub Desktop.
Save RandomOnlineName/ade3a10a7692037ef66f289ec0c9477f to your computer and use it in GitHub Desktop.
ServerSidePacketRegistry.INSTANCE.register(C2SFireArrowPillager, (context, attachedData) -> {
int projectileId = attachedData.readInt();
float multiShotSpray = attachedData.readFloat();
(MainInit.java:28) Vec3d velocity = new Vec3d(Double.parseDouble(attachedData.readString().split(",",3)[0]),
Double.parseDouble(attachedData.readString().split(",",3)[1]),
Double.parseDouble(attachedData.readString().split(",",3)[2]));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment