Skip to content

BlocklyNukkitLoader-1.2.9.4-beta-r6

Pre-release
Pre-release
Compare
Choose a tag to compare
@SuperIceCN SuperIceCN released this 02 Jun 14:36
· 19 commits to master since this release

New

  • Js已经支持for of循环
  • Js中修复了错误的=>实现
  • bnp支持.phpfile后缀名
  • bnp和bnpx可以直接放入plugins文件夹加载

BNNPC

  • 优化ai算法,避免npc消失bug

manager

  • addCommandCompleter新增@sub规则,表示一个子命令补全选项

blockitem

  • @comment(value = "注册新的简易物品, 允许任意自定义物品")
    public void registerSimpleItem(@comment(value = "新物品的id") int id
    ,@comment(value = "新物品的名称") String name
    ,@comment(value = "新物品的最大堆叠上限") int stackSize
    ,@comment(value = "新物品的类别,可选construction nature equipment items") String type
    ,@comment(value = "是否展示为工具(竖着拿在手里)") boolean isDisplayAsTool
    ,@comment(value = "是否可装备在副手") boolean canOnOffhand)

  • @comment(value = "注册新的工具物品")
    public void registerToolItem(@comment(value = "新物品的id") int id
    ,@comment(value = "新物品的名称") String name
    ,@comment(value = "工具种类,可为sword shovel pickaxe axe hoe") String toolType
    ,@comment(value = "工具挖掘等级 0-空手,1-木,2-金,3-石,4-铁,5-钻石,6-下界合金") int toolTier
    ,@comment(value = "工具耐久值") int durability
    ,@comment(value = "攻击伤害") int attackDamage
    ,@comment(value = "是否可装备在副手") boolean canOnOffhand)

  • @comment(value = "注册新的食物物品")
    public void registerFoodItem(@comment(value = "新物品的id") int id
    ,@comment(value = "新物品的名称") String name
    ,@comment(value = "新物品的最大堆叠上限") int stackSize
    ,@comment(value = "提供的饥饿度") int nutrition
    ,@comment(value = "食用持续时间(刻)") int eatTime
    ,@comment(value = "是否可装备在副手") boolean canOnOffhand)

  • @comment(value = "注册新的饮品物品")
    public void registerDrinkItem(@comment(value = "新物品的id") int id
    ,@comment(value = "新物品的名称") String name
    ,@comment(value = "新物品的最大堆叠上限") int stackSize
    ,@comment(value = "提供的饥饿度") int nutrition
    ,@comment(value = "饮用持续时间(刻)") int drinkTime
    ,@comment(value = "是否可装备在副手") boolean canOnOffhand)