MicrosoftDocs / minecraft-creator

This is the repository for Minecraft Bedrock documentation.
Creative Commons Attribution 4.0 International
184 stars 132 forks source link

Examples are outdated #823

Closed Kaioga5 closed 6 months ago

Kaioga5 commented 7 months ago

The examples given do not follow the new syntax, to update them: First example:

"minecraft:entity_sensor": {
    "subsensors": [
        {
            "range": [10, 10],
            "cooldown": -1,
            "require_all": false,
            "event_filters": {
                "test": "has_trade_supply"
            },
            "event": "minecraft:offer_trade"
        }
    ]
}

Second example:

"minecraft:entity_sensor": {
    "subsensors": [
        {
            "range": 2.5,
            "relative_range": false,
            "minimum_count": 1,
            "event_filters": {
                "any_of": [
                    {
                        "test": "is_family",
                        "subject": "other",
                        "value": "mob"
                    },
                    {
                        "all_of": [
                            {
                                "test": "is_family",
                                "subject": "other",
                                "value": "player"
                            },
                            {
                                "none_of": {
                                    "test": "has_ability",
                                    "subject": "other",
                                    "value": "instabuild"
                                }
                            }
                        ]
                    }
                ]
            },
            "event": "minecraft:start_half_puff"
        }
    ]
}

These are the updated examples, following the new syntax.

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

iconicNurdle commented 6 months ago

Thank you so much! examples are updated and will be published next week.