• 周年纪念勋章活动已圆满结束,如有已购买但仍未申请的用户,可以通过对应勋章的下载链接申请~

问题 【Addon】地物定义文件是换新写法了吗?为什么从加载到1.20.41会报错?

Xiaosu425

【Lv:2】

正式会员
注册
2021/09/17
消息
19
金粒
3,557金粒
我有一个定义了结构地物、矿物地物和雕刻洞穴地物的Addon,但是明明在1.20.12就可以运行,到了1.20.30就开始不可以了,所有地物都这样报错:
代码:
21:55:09[FeatureRegistry][error]-晨曦之旅测试图 | morninglighttour:ruby_deepslate_ore_feature | The feature uses the feature type 'minecraft:ore_feature', which is considered internal and thus not compatible with this engine version of the game.

21:55:09[FeatureRegistry][error]-晨曦之旅测试图 | No definition found for feature 'morninglighttour:ruby_deepslate_ore_feature'
亲测所有自定义的地物都这样,我给一些具有代表性的Json片段:
矿物地物:
JSON:
//指向的方块均运作正常
{
    "format_version": "1.20.20",
    "minecraft:ore_feature": {
        "description": {
            "identifier": "morninglighttour:apatite_ore_feature"
        },
        "count": 3,
        "replace_rules": [
            {
                "places_block": "morninglighttour:apatite",
                "may_replace": [
                    {
                        "name": "minecraft:stone"
                    }
                ]
            }
        ]
    }
}
结构地物:
JSON:
//结构能正常被结构方块读取
{
    "format_version": "1.20.20",
    "minecraft:structure_template_feature": {
        "description": {
            "identifier": "morninglighttour:corsair_structure_feature"
        },
        "structure_name": "mystructure:corsair",
        "adjustment_radius": 4,
        "facing_direction": "random",
        "constraints": {
            "block_intersection": {
                "block_allowlist": [
                    "minecraft:water",
                    "minecraft:air"
                ]
            }
        }
    }
}
这是地物换新写法了吗?大佬求求教教萌新吧QAQ
 
忘记说了,还有地物规则:
JSON:
{
    "format_version": "1.18.0",
    "minecraft:feature_rules": {
        "description": {
            "identifier": "morninglighttour:ruby_deepslate_ore_feature_rule",
            "places_feature": "morninglighttour:ruby_deepslate_ore_feature"
        },
        "conditions": {
            "placement_pass": "underground_pass",
            "minecraft:biome_filter": [
                {
                    "any_of": [
                        {
                            "test": "has_biome_tag",
                            "operator": "==",
                            "value": "overworld"
                        },
                        {
                            "test": "has_biome_tag",
                            "operator": "==",
                            "value": "overworld_generation"
                        }
                    ]
                }
            ]
        },
        "distribution": {
            "iterations": 5,
            "coordinate_eval_order": "zyx",
            "x": {
                "distribution": "uniform",
                "extent": [
                    0,
                    18
                ]
            },
            "y": {
                "distribution": "uniform",
                "extent": [
                    -55,
                    2
                ]
            },
            "z": {
                "distribution": "uniform",
                "extent": [
                    0,
                    18
                ]
            }
        }
    }
}
我所有的地物规则文件与这个Json大同小异。
 

在线管理成员

在线会员

  • heifuxiang
  • 梦想之都官方
  • Mcixix
  • 传奇
  • 李拉皮
  • lifeihao
  • ATLUS
  • KaiK9
  • POXIAO77777
  • PuddingKC
  • OranGWhiT
  • TheDim
  • 却聪光
  • DY333
  • tweeled
  • yellow_Gay
  • 小吉祥
  • Ivan_Xu_
  • hynss
  • 10_27
  • 铭记mingji
...和 40 更多。
后退
顶部 底部