📦 Bookshelf - 3.2.0#

🧱 方块更新!

引入新的方块数据,并弃用若干旧功能,为未来做准备。

Bookshelf 现在基于 Minecraft 1.21.9-1.21.11。

  • ✨ #403 - 添加了 #bs.load:status 函数以查看已加载的模块。

  • ⚡ #501 - 优化了宏中使用的 tp 命令。

  • ⚡ #501 - 减少 NBT 写入并移除少量宏。

  • 🐛 #501 - 确保标记被杀死时不会触发 sculk 传感器。

🧱 bs.block#

  • 🗑️ #489 - 已弃用 play_block_sound,改用更细粒度的函数(play_break_sound 等)。

  • ✨ #496 - 新增谓词:is_conductive、is_powered、is_spawnable、is_strongly_powered 和 is_weakly_powered。

  • ✨ #496 - 新增函数:is_touching_power、is_touching_strong_power 和 is_touching_weak_power。

  • ✨ #489 - 新增方块属性函数:get_blast_resistance、get_friction、get_hardness、get_instrument、get_jump_factor、get_luminance、get_sounds 和 get_speed_factor。

  • ✨ #489 - 新增方块音效函数:play_break_sound、play_hit_sound、play_fall_sound、play_place_sound 和 play_step_sound。

  • ✨ #489 - 新增块标签:can_occlude 和 ignited_by_lava。

  • ⚡ #489 - 修改了 emit_block_particle,以支持默认的 type,使其与新的方块音效函数行为保持一致。

🎯 bs.environment#

  • 🐛 #501 - 修复了 look_at 函数将玩家传送至当前执行位置的问题。

🎯 bs.hitbox#

  • 🗑️ #484 - 方块标签 has_offset 已被弃用,将在 v4.0.0 中移除。请改用 has_shape_offset。

  • 🗑️ #484 - 函数 #bs.hitbox:get_block 已被弃用,将在 v4.0.0 中移除。请改用 #bs.hitbox:get_block_shape 或 #bs.hitbox:get_block_collision。

  • 🗑️ #484 - 函数 #bs.hitbox:is_entity_in_block_interaction、#bs.hitbox:is_entity_in_blocks_interaction 和 #bs.hitbox:is_in_block_interaction 已被弃用,将在 v4.0.0 中移除。请改用 #bs.hitbox:is_entity_in_block_shape、#bs.hitbox:is_entity_in_blocks_shape 或 #bs.hitbox:is_in_block_shape。

  • ✨ #502 - 新增了 1.21.11 版本的实体。

🏃 bs.move#

  • ✨ #473 - 添加了自定义方块碰撞箱和软碰撞。

  • 🐛 #487 - 修复了在使用台阶等部分方块时,零速度轴上的错误碰撞。

🔦 bs.raycast#

  • ✨ #473 - 添加了自定义方块碰撞箱并改进了多层穿透。

👀 bs.view#

  • 🐛 #498 - 修复了#bs.view:at_block_placement,使其与炼药锅、漏斗、堆肥桶和脚手架等特殊方块的原版放置行为一致。