
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
prismarine-physics
Advanced tools
Provide the physics engine for minecraft entities
const { Physics, PlayerState } = require('prismarine-physics')
const { Vec3 } = require('vec3')
const mcData = require('minecraft-data')('1.13.2')
const Block = require('prismarine-block')('1.13.2')
const physics = Physics(mcData, world)
const controls = {
forward: false,
back: false,
left: false,
right: false,
jump: false,
sprint: false,
sneak: false
}
const player = {
entity: {
position: pos,
velocity: new Vec3(0, 0, 0),
onGround: false,
isInWater: false,
isInLava: false,
isInWeb: false,
isCollidedHorizontally: false,
isCollidedVertically: false,
elytraFlying: false,
yaw: 0,
pitch: 0
},
jumpTicks: 0,
jumpQueued: false,
fireworkRocketDuration: 0
}
const playerState = new PlayerState(player, controls)
while (!player.entity.onGround) {
// simulate 1 tick of player physic, then apply the result to the player
physics.simulatePlayer(playerState, world).apply(player)
}
See examples/
for more.
getBlock(position)
returning the prismarine-block at the given positionA player state is an object containing the properties:
Read / Write properties:
Read only properties:
1.10.0
.isOnLadder()
condition (#111) (thanks @szdytom)FAQs
Provide the physics engine for minecraft entities
The npm package prismarine-physics receives a total of 6,046 weekly downloads. As such, prismarine-physics popularity was classified as popular.
We found that prismarine-physics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.