CraftEngine

授权转载 付费 开源 娱乐 CraftEngine 26.10-快照

请登录后获取
  • 添加 26.2 支持,需 Paper 26.2#build40 及以上版本
  • 为方块添加了自定义破坏程度的样式
  • 为 Axiom 添加自定义物品支持
  • 添加 26.2 支持
  • 为方块添加了自定义破坏程度的样式
    需要添加下面这些配置才能正常使用自定义破坏程度的样式
    YAML:
    config_factory:
      instances:
        - stage: 0
        - stage: 1
        - stage: 2
        - stage: 3
        - stage: 4
        - stage: 5
        - stage: 6
        - stage: 7
        - stage: 8
        - stage: 9
      blueprint:
        items:
          ${namespace:-"minecraft"}:destroy_stage_${stage}:
            data::item_name: destroy stage ${stage}
            model:
              path: item/custom/destroy_stage_${stage}
              generation:
                parent: block/cube_all
                textures:
                  all: block/destroy_stage_${stage}
    templates:
      internal:destroy_stages:
        scale: 1.01
        items:
          - minecraft:destroy_stage_0
          - minecraft:destroy_stage_1
          - minecraft:destroy_stage_2
          - minecraft:destroy_stage_3
          - minecraft:destroy_stage_4
          - minecraft:destroy_stage_5
          - minecraft:destroy_stage_6
          - minecraft:destroy_stage_7
          - minecraft:destroy_stage_8
          - minecraft:destroy_stage_9
    1782195553693.webp

    你可以创建自定义破坏程度的样式——就像这段视频中的那样,我将其破坏程度反转了
    webp.138496

    webp.138497

  • 添加对 26.2 新增粒子效果的支持

  • 更新了一些依赖
  • 目前插件应该可以在 26.2 上稳定运行了,如果在使用过程中遇到任何问题,请及时反馈

  • 为 Axiom 添加自定义物品支持

附件

  • 现在您可以使用纹理列表创建方块模型了
  • 修复了插件在某些特殊类加载器中无法启用的问题
  • 修复了某些家具/方块行为中数据版本未被保存的问题
  • 修复了插件在某些特殊类加载器中无法启用的问题
  • 修复了某些家具/方块行为中数据版本未被保存的问题

  • 现在允许创建带有纹理列表的方块模型
    目标是替换 90% 的模型生成区域配置,使其变得更加简单
    之前
    YAML:
    state:
      auto_state: solid
      model:
        path: minecraft:block/custom/solid_gunpowder_block
        generation:
          parent: minecraft:block/cube_all
          textures:
            all: minecraft:block/custom/solid_gunpowder_block
    之后
    YAML:
    state:
      auto_state: solid
      texture: minecraft:block/custom/solid_gunpowder_block
    其行为会根据您传入的参数而有所不同。这涵盖了六种不同的内置模型
    YAML:
    state:
      auto_state: solid
      model:
        path: minecraft:block/custom/chinese_lantern
        # minecraft:block/cube_column
        textures:
          - minecraft:block/custom/chinese_lantern_top
          - minecraft:block/custom/chinese_lantern
    YAML:
    state:
      auto_state: solid
      model:
        path: minecraft:block/custom/hami_melon
        # minecraft:block/cube_bottom_top
        textures:
          - minecraft:block/custom/hami_melon_bottom
          - minecraft:block/custom/hami_melon
          - minecraft:block/custom/hami_melon_top
    YAML:
    east_open:
      auto_state: note_block
      model:
        path: minecraft:block/custom/safe_block_open
        y: 90
        # minecraft:block/orientable
        textures:
          - minecraft:block/custom/safe_block_bottom
          - minecraft:block/custom/safe_block_front_open
          - ^minecraft:block/custom/safe_block_side  # <---- 添加前缀 `^` 以将此纹理标记为 `particle`
          - minecraft:block/custom/safe_block_top
    当参数超过两个时,顺序并不重要。CraftEngine 会优先选择置信度较高的纹理,并将它们分配到相应的位置中。例如,xxx_block_east 会首先被分配到 east,而 xxx_block_top 则会被分配到 top。因此,你可以完全随机排列纹理的顺序
  • 修复了 vanilla_loots 语法无法生效的问题
  • 修复了在 1.21.11 之前的版本中默认矛配方加载的问题
  • 为 crop_block 添加了 spawn_light_requirement
  • 改进了自定义方块硬度与其他插件的兼容性
  • 所有颜色都支持十六进制格式
  • 所有数值现在都支持表达式
  • 添加了矛和重锤的模型生成功能
  • 默认棕榈树的配置已使用配置工厂方法重写
  • 所有数值现在都支持表达式,所有颜色都支持十六进制表示法
  • map_color 现在支持维基中的颜色名称
  • 新增了 shaped_transform 配方类型
  • 引入了配置工厂
  • 默认包已拆分为三个包:default_templates、default_assets 和 default_feature_populator
  • 优化了家具变换机制,现在切换变体时不会再出现闪烁问题
  • 修复了一些问题
  • 物品模型混淆现在支持使用缓存
  • 改进了家具的变换效果,现在在变体切换时不会再出现闪烁问题
  • 优化了方块实体渲染器的更新逻辑
  • 修复了调用 set_furniture_variant 函数设置的变体无法保存的问题

  • 默认包被拆分为三个独立包:default_templates、default_assets 和 default_feature_populator
  • 同时,我首次引入了配置工厂的概念。在传统配置中,我们需要为每个配置段分配一个ID。即便借助模板,仍需编写大量配置。配置工厂正是为解决这一问题而生——它将一组配置封装为一个蓝图,并通过实例传递参数来实例化这些配置条目。

    以下示例配置简单展示了其工作原理:
    YAML:
    config_factory#wool:
      blueprint:
        items:
          "custom:${color}_wool":
            material: ${color}_wool
            data::item_name: "<lang:block.minecraft.${color}_wool>"
        recipes:
          "custom:${color}_wool":
            type: shaped
            pattern:
              - AA
              - AB
            ingredients:
              A: "minecraft:white_wool"
              B: "minecraft:${color}_dye"
            result:
              id: ${__NAMESPACE__}:${__ID__}  #  __NAMESPACE__ -> custom
                                              #  __ID__  -> xxx_wool (xxx=red,blue,orange)
              count: ${result_count:-3}
      instances:
        - color: red
          result_count: 5
        - color: blue
          result_count: 2
        - color: orange
    通过配置工厂,只要你的模板足够完善,就能快速扩展配置,无需编写大量繁琐的配置行
    1780331157387.webp
    1780331168410.webp
    1780331171873.webp

  • 修复 https://ce.gtemc.cn/zh-Hans/configuration/item/models/condition#minecraftcomponent-1215

  • 添加了 shaped_transform 配方类型
    transform_processors 与 smithing_transform 配方中的相同
    YAML:
      default:topaz_crossbow_transform:
        type: shaped_transform
        pattern:
          - 'BBB'
          - 'B  '
          - 'A  '
        ingredients:
          A:
            item: minecraft:crossbow
            source: true
          B: default:topaz
        result:
          id: default:topaz_crossbow
          count: 1
        transform_processors:
          - type: keep_components
            components:
              - enchantments
    1780417399071.webp

附件

  • 1780331161947.webp
    1780331161947.webp
    8.6 KB · 查看: 11
  • 为即将发布的 CraftEngine 代理做好准备
  • 添加了 test_flag 条件
  • 为 range_mining_item 添加了条件选项
后退
顶部 底部