Hi! I'm diving in by trying to fix up a cooking addon on 1.20.41, https://mcpedl.com/creative-cooking-addon-1/
Many of the crop blocks don't work because of a "set_block_property" element being placed wrongly somehow, but I can't work out why. Are there any rules I don't know about where this can be used?
This use turns up as invalid, giving the error /behavior_packs/creative_cooking_bp | blocks/corn_stalk.json | creativecooking:corn_stalk | events | grow_stage | set_block_property | child 'set_block_property' not valid here.
"events": {
"grow_stage": {
"randomize": [
{
"weight": 4
},
{
"weight": 1,
"sequence": [
{
"condition": "query.block_property('creativecooking:growth_stage') < 3",
"set_block_property": {
"creativecooking:growth_stage": "query.block_property('creativecooking:growth_stage') + 1"
}
},
...etc...
However, other blocks use similar JSON in their events and don't throw up errors. For example, the definition for a wheat thatch slab, the events block is:
"place": {
"sequence": [
{
"condition": "query.head_x_rotation(0) <= 0",
"set_block_property": {
"creativecooking:slab_type": 1
}
},
{
"condition": "query.head_x_rotation(0) > 0",
"set_block_property": {
"creativecooking:slab_type": 0
}
}
]
}
}```