🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

packmc2-fallblock

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

packmc2-fallblock

允许 McBE 在游戏中生成 falling_block 实体的 [pack-mc-2](https://www.npmjs.com/package/pack-mc-2) 库 基于 mcstructure 的NBT标签

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

PackMc2 - FallingBlock

允许 McBE 在游戏中生成 falling_block 实体的 pack-mc-2
基于 mcstructure 的NBT标签

Example

ctx.loadActivePlugin( Fall )
// 加载插件
ctx.plugins.FallingBlock.generateFunction = true
// 在生成结构时同时生成一个mcfunction文件,默认false
// mcfunction文件命名为 falling_${NAMESPACE}_${ID}.mcfunction
// mcfunction内容与Fall.toCmd()内容相同,结构id与mcfunction id相同
ctx.Fall( "minecraft:bedrock"/*, 坐标, NBT编辑回调*/ )
// 设置坠落的方块,返回Fall对象

API

  • Fall( id: string, ?where: Where, ?callback: ( nbt: NBT ) => void )
  • ctx.Fall: ctx.plugins.FallingBlock.Fall 的别名

FAQs

Package last updated on 17 Jul 2025

Did you know?

Socket

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.

Install

Related posts