Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //l is a location, id is an int, and name is a string
- Packet14SpawnNamedEntity packet = new Packet14SpawnNamedEntity();
- packet.setEntityID(id);
- packet.setPlayerName(name);
- packet.setPosition(l.toVector());
- packet.setYaw(l.getYaw());
- packet.setPitch(l.getPitch());
- WrappedDataWatcher watcher = new WrappedDataWatcher();
- watcher.setObject(0, (byte) 0);
- watcher.setObject(1, (short) 300);
- watcher.setObject(8, (int) 0);
- packet.setMetadata(watcher);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement