
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
LevelDB and NBT storage provider implementation in Node for MCPE
Build an anvil: provide loading and saving of chunks in all regions in path
Takes an MCPE anvil chunk either terrain (0x30
), tile entity (0x31
) or entity data (0x32
) and saves it to the overworld.
Returns a promise containing the chunk data at x, z or null if that chunk isn't saved
Takes an MCPE anvil chunk either terrain (0x30
), tile entity (0x31
) or entity data (0x32
) and saves it to the nether.
Returns a promise containing the chunk data at x, z or null if that chunk isn't saved in the nether
Writes to a little-endian encoded level.dat file containing the following values (these values are examples from our world, values may vary but names will stay the same):
{ DayCycleStopTime: -1,
GameType: 0,
Generator: 1,
LastPlayed: [ 0, 1460319360 ],
LevelName: 'My World',
LimitedWorldOriginX: 12,
LimitedWorldOriginY: 128,
LimitedWorldOriginZ: 4,
NetworkVersion: 46,
Platform: 2,
RandomSeed: [ 0, 276131071 ],
SpawnX: 12,
SpawnY: 128,
SpawnZ: 4,
StorageVersion: 4,
Time: [ 0, 63 ],
currentTick: [ 0, 63 ],
eduLevel: 0,
hasBeenLoadedInCreative: 0,
lightningLevel: 0,
lightningTime: 95937,
rainLevel: 0,
rainTime: 47937,
spawnMobs: 1,
worldStartCount: [ 0, -2 ] }
Writes to a little-endian encoded level.dat file containing the same values as the example above
We've got a couple of examples for you, check these out
Or check this out:
'use strict';
var level = require('../index').level;
level.readLevel('../world/level.dat')
.then(data => {
console.log(data);
level.writeLevel('world/level.dat', data).catch(err => console.log(err.stack));
});
FAQs
LevelDB and NBT storage provider implementation in Node for MCPE
We found that mcpe-anvil 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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.