0

一段时间以来,我一直在尝试制作 Minecraft 起源,但我对编码一无所知;我想做的是让它在寒冷的生物群系中受到伤害,除非你带着火炬或靠近熔岩,你可以说像蜥蜴

{
    "type": "origins:damage_over_time",
    "interval": 40,
    "onset_delay": 1,
    "damage": 2,
    "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."
}
4

0 回答 0