Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 742 Bytes

File metadata and controls

17 lines (13 loc) · 742 Bytes

std 数据包

取代minecraft命名空间,提供数据包常用功能。

规范

命令函数标签接口

  • std:load: 在数据包加载时运行,保证运行前 common 记分板变量已经被定义
  • std:check: 在数据包加载完毕后运行,检查有否被正确加载,以及需要的模块是否已经加载
  • std:tick: 每一游戏刻运行一次,保证在 std:check之后运行

模块

  • std:rnd: 提供生成随机数的功能。
    • std:rnd/rnd: 生成一个范围在 0..(#param common -1)之间的随机数,储存在(#result common)。注意(#param common)范围只能为 2..1000000000。

Update log

  • 24-1-2018: fixed typo, added link
  • 24-1-2018: init