5RF
神秘花颜色太过杂乱,破坏原有生态景观,所以想要禁用生成,但是我写的数据包没有起效果QWQworldgen
{ "feature": "botania:mystical_flowers",
"placement": [
{
"type": "minecraft:count",
"count": 0
},
{
"type": "minecraft:rarity_filter",
"chance": 0
},
{
"type": "minecraft:in_square"
},
{
"type": "minecraft:heightmap",
"heightmap": "MOTION_BLOCKING_NO_LEAVES"
},
{
"type": "minecraft:biome"
}
]
}
|
最佳答案
查看完整内容
我所下载的版本是Botania-1.20.1-443-FORGE,其中mystical_flowers.json下minecraft:rarity_filter的chance本来就是16。只需要把"type": "minecraft:count",改成0就可以禁止神秘花的生成,而你把minecraft:rarity_filter也改成了0,所以我建议你改回16。
而给出0会崩溃和长整型变量并无关系,而是因为chance代表的含义是如果随机数大于1/chance,则此放置点无效。相当于平均每chance次生成才能成功一次。我想是因为你改成了0之后, ...
|