#モブの妨害をOFF

1 messages · Page 1 of 1 (latest)

topaz thicket
#

gameruleのモブの妨害のやつをoffにしても自作したTNTは地形を壊してしまいます
どうすれば壊さないようになりますか?

devout quartz
#

ゲームルールに依存するかのプロパティがあります

topaz thicket
#

どんな 名前?ですか?

devout quartz
#

destroy_affected_by_griefingです

#

trueでゲームルールに依存します

topaz thicket
#

ありがとう

topaz thicket
#

やってみたんですができません...

#
{
    "format_version": "1.12.0",
    "minecraft:entity": {
        "description": {
            "identifier": "jjba:toto_tnt",
            "is_spawnable": false,
            "is_summonable": true,
            "is_experimental": false,
            "runtime_identifier": "minecraft:snowball"
        },
        "component_groups": {
            "from_explosion": {
                "minecraft:explode": {
                    "fuse_length": {
                        "range_min": 0.5,
                        "range_max": 40
                    },
                    "fuse_lit": true,
                    "power": 4,
                    "causes_fire": false,
                    "destroy_affected_by_griefing": true
                }
            }
        },
        "components": {
            "minecraft:collision_box": {
                "width": 0.98,
                "height": 0.98
            },
            "minecraft:explode": {
                "fuse_length": 0,
                "fuse_lit": true,
                "power": 5,
                "causes_fire": false
            },
            "minecraft:physics": {},
            "minecraft:pushable": {
                "is_pushable": false,
                "is_pushable_by_piston": true
            },
            "minecraft:conditional_bandwidth_optimization": {
                "default_values": {
                    "max_optimized_distance": 80.0,
                    "max_dropped_ticks": 5,
                    "use_motion_prediction_hints": true
                }
            },
            "minecraft:type_family": {
                "family": [
                    "mob"
                ]
            }
        },
        "events": {
            "from_explosion": {
                "add": {
                    "component_groups": [
                        "from_explosion"
                    ]
                }
            }
        }
    }
}
devout quartz
#

breaks_blocksプロパティもいるんだっけ…

topaz thicket
#

なるほど?

#

あ、でもそれは多分要らないと思う