【发布时间】:2021-09-17 08:47:48
【问题描述】:
{
"type": "origins:damage_over_time",
"interval": 40,
"onset_delay": 1,
"damage": 1,
"damage_easy": 1,
"source": {
"name": "generic",
"unblockable": true,
"bypasses_armor": false
},
"condition": {
"type": "origins:biome",
"condition": {
"type": "origins:temperature",
"comparison": "<=",
"compare_to": 0.5
},
"entity_condition": {
"type": "origins:in_tag",
"inverted": true,
"equipment_slot": "mainhand",
"item_condition": {
"type": "origins:in_tag",
"conditions": [{
"type": "minecraft:torch"
},
"type": "minecraft:lava_bucket",
}
"condition": {
"type": "origins:block_in_radius",
"inverted": true,
"block_condition": {
"type": "origins:in_tag",
"tag": "origins:lava"
},
"radius": 4,
"shape": "cube",
"comparison": ">=",
"compare_to": 1
}
]
}
}
},
"name": "Cold Blooded",
"description": "you can't generate heat, so you die slowly without a source of heat."
}
我一直在尝试在 Minecraft 中创建一个起源,就像在 mod 中一样,但是我的部分代码有问题,我把它放在 JSON Validator 中,它说上面的错误,问题在 "type: "minecraft:lava_bucket" 中,有人可以帮帮我吗?哦,每个人都可以根据需要获得代码,是在寒冷的生物群系中受到伤害,除非您携带火炬或熔岩桶
【问题讨论】:
-
conditions数组中有格式错误。
标签: json minecraft minecraft-fabric