Test update 1

This commit is contained in:
7cc5c4f330d47060 2025-02-11 20:58:35 -05:00
parent ff89a86b8f
commit 906db42299
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
3 changed files with 71 additions and 5 deletions

55
package-lock.json generated
View file

@ -9,8 +9,10 @@
"version": "12.0.0-alpha.2",
"license": "MIT",
"dependencies": {
"minecraft-protocol": "^1.51.0",
"prismarine-chat": "^1.10.1"
"minecraft-protocol": "^1.54.0",
"prismarine-chat": "^1.10.1",
"prismarine-chunk": "^1.38.1",
"prismarine-world": "^3.6.3"
}
},
"node_modules/@azure/msal-common": {
@ -584,6 +586,25 @@
"prismarine-registry": "^1.4.0"
}
},
"node_modules/prismarine-chunk": {
"version": "1.38.1",
"resolved": "https://registry.npmjs.org/prismarine-chunk/-/prismarine-chunk-1.38.1.tgz",
"integrity": "sha512-VL7BpYYzmZSKveiKNfwp/a50pPqEVy4rMdpOL6niyUsV/Nk4hRcqd2uo7GyKHlJci/mK3g7GOR8jsVX+hU07Aw==",
"license": "MIT",
"dependencies": {
"prismarine-biome": "^1.2.0",
"prismarine-block": "^1.14.1",
"prismarine-nbt": "^2.2.1",
"prismarine-registry": "^1.1.0",
"smart-buffer": "^4.1.0",
"uint4": "^0.1.2",
"vec3": "^0.1.3",
"xxhash-wasm": "^0.4.2"
},
"engines": {
"node": ">=14"
}
},
"node_modules/prismarine-item": {
"version": "1.16.0",
"resolved": "https://registry.npmjs.org/prismarine-item/-/prismarine-item-1.16.0.tgz",
@ -624,6 +645,18 @@
"prismarine-nbt": "^2.0.0"
}
},
"node_modules/prismarine-world": {
"version": "3.6.3",
"resolved": "https://registry.npmjs.org/prismarine-world/-/prismarine-world-3.6.3.tgz",
"integrity": "sha512-zqdqPEYCDHzqi6hglJldEO63bOROXpbZeIdxBmoQq7o04Lf81t016LU6stFHo3E+bmp5+xU74eDFdOvzYNABkA==",
"license": "MIT",
"dependencies": {
"vec3": "^0.1.7"
},
"engines": {
"node": ">=8.0.0"
}
},
"node_modules/process": {
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
@ -776,6 +809,12 @@
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
"license": "MIT"
},
"node_modules/uint4": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/uint4/-/uint4-0.1.2.tgz",
"integrity": "sha512-lhEx78gdTwFWG+mt6cWAZD/R6qrIj0TTBeH5xwyuDJyswLNlGe+KVlUPQ6+mx5Ld332pS0AMUTo9hIly7YsWxQ==",
"license": "MIT"
},
"node_modules/undici-types": {
"version": "6.20.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
@ -809,6 +848,12 @@
"macaddress": "^0.5.1"
}
},
"node_modules/vec3": {
"version": "0.1.10",
"resolved": "https://registry.npmjs.org/vec3/-/vec3-0.1.10.tgz",
"integrity": "sha512-Sr1U3mYtMqCOonGd3LAN9iqy0qF6C+Gjil92awyK/i2OwiUo9bm7PnLgFpafymun50mOjnDcg4ToTgRssrlTcw==",
"license": "BSD"
},
"node_modules/webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
@ -825,6 +870,12 @@
"webidl-conversions": "^3.0.0"
}
},
"node_modules/xxhash-wasm": {
"version": "0.4.2",
"resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-0.4.2.tgz",
"integrity": "sha512-/eyHVRJQCirEkSZ1agRSCwriMhwlyUcFkXD5TPVSLP+IPzjsqMVzZwdoczLp1SoQU0R3dxz1RpIK+4YNQbCVOA==",
"license": "MIT"
},
"node_modules/yggdrasil": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/yggdrasil/-/yggdrasil-1.7.0.tgz",

View file

@ -14,7 +14,9 @@
"author": "7cc5c4f330d47060",
"license": "MIT",
"dependencies": {
"minecraft-protocol": "^1.51.0",
"prismarine-chat": "^1.10.1"
"minecraft-protocol": "^1.54.0",
"prismarine-chat": "^1.10.1",
"prismarine-chunk": "^1.38.1",
"prismarine-world": "^3.6.3"
}
}

View file

@ -1,4 +1,17 @@
import { default as c_loader } from 'prismarine-chunk';
const c = c_loader("1.18")
import { default as w_loader } from 'prismarine-world';
const w = w_loader()
const rd = 4;
//Chunk data parsing placeholder, for core
export default function load (b) {
//b._client.on("map_chunk", payload => console.log(payload))
b.worlds={}
b._client.on("map_chunk", payload => {
//console.log(payload);
b._chunk = new c();
b._chunk.load(payload.chunkData)
})
}