
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
A class to hold chunk data for Minecraft: PE
var Chunk = require('mcpe-chunk');
var Vec3 = require('vec3');
var fs = require('fs');
var chunk = new Chunk();
for (var x = 0; x < 16; x++) {
for (var z = 0; z < 16; z++) {
chunk.setBlockType(new Vec3(x, 50, z), 2);
chunk.setBiome(new Vec3(x, 50, z), 0);
chunk.setBiomeColor(new Vec3(x, 50, z), 141, 184, 113);
for (var y = 0; y < 128; y++) {
chunk.setSkyLight(new Vec3(x, y, z), 15);
chunk.setBlockLight(new Vec3(x, y, z), 15);
}
}
}
// print the size of the dumped
var dump = chunk.dump();
console.log(dump.length);
// save it to a file
fs.writeFileSync('output.chunk', chunk.dump());
Build a new chunk
Get the block type at pos
Get the block data (metadata) at pos
Get the block light at pos
Get the block sky light at pos
Get the block biome id at pos
Set the block type id
at pos
Set the block data
(metadata) at pos
Set the block light
at pos
Set the block sky light
at pos
Set the block biome
id at pos
Get the biome r, g, b color at pos
Set the biome r, g, b color at pos
Set the height at pos
Get the height at pos
Returns the chunk raw data
Load raw data
into the chunk
FAQs
A class to hold chunk data for Minecraft: PE
The npm package mcpe-chunk receives a total of 0 weekly downloads. As such, mcpe-chunk popularity was classified as not popular.
We found that mcpe-chunk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.