-
Notifications
You must be signed in to change notification settings - Fork 99
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
1.16.2 and 1.16.3 support #447
Comments
relevant mineflayer issue PrismarineJS/mineflayer#1264 |
only thing needed is login packet change here |
relevant mineflayer PR PrismarineJS/mineflayer#1349 |
did you change the login packet yet ? I put the link on how to do that above |
Index: src/lib/plugins/blockUpdates.js
<+>UTF-8
===================================================================
--- src/lib/plugins/blockUpdates.js (revision 65c63207f23b2e34b2c09197f1eba4d614c86a9d)
+++ src/lib/plugins/blockUpdates.js (revision 467e8c0270f977ce2d7d2a984d27841059c8ae69)
@@ -29,13 +29,14 @@
const records = []
for (const p of updates.values()) {
const state = await world.getBlockStateId(p)
- records.push({
- horizontalPos: ((p.x & 0xF) << 4) | (p.z & 0xF),
- y: p.y,
- blockId: state
- })
+ records.push(state)
}
- packets.push({ chunkX, chunkZ, records })
+ const chunkCoordinates = {
+ x: chunkX,
+ y: 0,
+ z: chunkZ
+ }
+ packets.push({ chunkCoordinates, notTrustEdges: false, records })
}
return packets
}
Index: src/lib/plugins/login.js
<+>UTF-8
===================================================================
--- src/lib/plugins/login.js (revision 65c63207f23b2e34b2c09197f1eba4d614c86a9d)
+++ src/lib/plugins/login.js (revision 467e8c0270f977ce2d7d2a984d27841059c8ae69)
@@ -89,10 +89,10 @@
levelType: 'default',
gameMode: player.gameMode,
previousGameMode: player.prevGameMode,
- worldNames: Object.values(serv.dimensionNames),
- dimensionCodec: dimensionCodec,
- worldName: serv.dimensionNames[0],
- dimension: serv.supportFeature('dimensionIsAString') ? serv.dimensionNames[0] : 0,
+ worldNames: mcData.loginPacket.worldNames,
+ dimensionCodec: mcData.loginPacket.dimensionCodec,
+ worldName: mcData.loginPacket.worldNames[0],
+ dimension: mcData.loginPacket.dimension, // serv.supportFeature('dimensionIsAString') ? serv.dimensionNames[0] : 0,
hashedSeed: serv.hashedSeed,
difficulty: serv.difficulty,
viewDistance: settings['view-distance'],
@@ -100,7 +100,8 @@
maxPlayers: Math.min(255, serv._server.maxPlayers),
enableRespawnScreen: true,
isDebug: false,
- isFlat: false
+ isFlat: false,
+ isHardcore: false
})
if (serv.supportFeature('difficultySentSeparately')) {
player._client.write('difficulty', {
Index: src/lib/plugins/world.js
<+>UTF-8
===================================================================
--- src/lib/plugins/world.js (revision 65c63207f23b2e34b2c09197f1eba4d614c86a9d)
+++ src/lib/plugins/world.js (revision 467e8c0270f977ce2d7d2a984d27841059c8ae69)
@@ -150,7 +150,7 @@
groundUp: true,
bitMap: chunk.getMask(),
biomes: chunk.dumpBiomes(),
- ignoreOldData: true, // should be false when a chunk section is updated instead of the whole chunk being overwritten, do we ever do that?
+ // ignoreOldData: true, // should be false when a chunk section is updated instead of the whole chunk being overwritten, do we ever do that?
heightmaps: {
type: 'compound',
name: '',
It works after i made these changes, but I have totally no idea is it correct for the block updates part, because there is no protocol documentation yet for the newer |
1.16.4 and 1.16.5 exist now, any status on this? |
Yes nobody spent the hour needed to complete this. |
no, not really |
no updates yet? |
no, do you want to do it @NoNameLmao ? |
yes i do, but i dont know javascript that well, |
we have nmp support now
PrismarineJS/node-minecraft-protocol#757 (comment) indications for mineflayer support
we need adaptations for use of these 3 packets
(cc @GroobleDierne )
The text was updated successfully, but these errors were encountered: