{
    "format_version": "1.16.0",
    "minecraft:block": {
      "description": {
        "identifier": "loled:beach_trampoline",
        "properties": {
          "loled:face": [
            0,
            1,
            2,
            3
          ]
        }
      },
      "components": {
        "minecraft:material_instances": {
          "*": {
            "texture": "trampoline",
            "render_method": "alpha_test"
          }
        },
        "minecraft:creative_category": {
          "group": "itemGroup.name.beach",
          "category": "construction"
        },
        "minecraft:loot": "loot_tables/beach/beach_trampoline.json",
        "minecraft:geometry": "geometry.trampoline",
        "minecraft:destroy_time": 2,
        "minecraft:block_light_absorption": 0,
        "minecraft:entity_collision": {
          "origin": [
            -8,
            0,
            -8
          ],
          "size": [
            16,
            16,
            16
          ]
        },
        "minecraft:pick_collision": {
          "origin": [
            -8,
            0,
            -8
          ],
          "size": [
            16,
            16,
            16
          ]
        },
        "minecraft:on_player_placing": {
          "event": "loled:face"
        },
        "minecraft:on_step_on": {
          "event": "loled:salto"
        },
        "minecraft:on_placed": {
          "event": "loled:colision"
        }
      },
      "permutations": [
        {
          "condition": "query.block_property('loled:face') == 0",
          "components": {
            "minecraft:rotation": [
              0,
              180,
              0
            ]
          }
        },
        {
          "condition": "query.block_property('loled:face') == 1",
          "components": {
            "minecraft:rotation": [
              0,
              0,
              0
            ]
          }
        },
        {
          "condition": "query.block_property('loled:face') == 2",
          "components": {
            "minecraft:rotation": [
              0,
              270,
              0
            ]
          }
        },
        {
          "condition": "query.block_property('loled:face') == 3",
          "components": {
            "minecraft:rotation": [
              0,
              90,
              0
            ]
          }
        }
      ],
      "events": {
        "loled:face": {
          "set_block_property": {
            "loled:face": "query.cardinal_facing_2d-2"
          }
        },
        "loled:salto": {
          "run_command": {
            "command": "effect @p jump_boost 3 4 true"
          }
        },
        "loled:colision": {
          "sequence": [
            {
              "condition": "query.block_property('loled:face') == 0",
              "run_command": {
                "command": "setblock ~~~1 loled:colision_trampoline_1"
              }
            },
            {
              "condition": "query.block_property('loled:face') == 1",
              "run_command": {
                "command": "setblock ~~~-1 loled:colision_trampoline_2"
              }
            },
            {
              "condition": "query.block_property('loled:face') == 2",
              "run_command": {
                "command": "setblock ~1~~ loled:colision_trampoline_3"
              }
            },
            {
              "condition": "query.block_property('loled:face') == 3",
              "run_command": {
                "command": "setblock ~-1~~ loled:colision_trampoline_4"
              }
            }
          ]
        }
      }
    }
  }