{
   "format_version":"1.16.100",
   "minecraft:block":{
      "description":{
         "identifier":"vatonage:creative_motor",
         "register_to_creative_menu":true,
         "properties":{
            "vatonage:signal":[
               0,
               1
            ]
         }
      },
      "components":{
         "minecraft:creative_category":{
            "category":"construction"
         },
         "minecraft:material_instances":{
            "*":{
               "texture":"creative_motor",
               "render_method":"alpha_test"
            }
         },
         "minecraft:pick_collision":{
            "origin":[
               -8,
               0,
               -8
            ],
            "size":[
               16,
               16,
               16
            ]
         },
         "minecraft:entity_collision":{
            "origin":[
               -8,
               0,
               -8
            ],
            "size":[
               16,
               16,
               16
            ]
         },
         "minecraft:geometry":"geometry.creative_motor",
         "minecraft:destroy_time":0.3,
         "minecraft:block_light_absorption":0
      },
      "events":{
         "vatonage:spin0":{
            "sequence":[
               {
                  "set_block_property":{
                     "vatonage:signal":0
                  }
               }
            ]
         },
         "vatonage:spin1":{
            "sequence":[
               {
                  "set_block_property":{
                     "vatonage:signal":1
                  }
               }
            ]
         }
      },
      "permutations":[
         {
            "condition":"query.block_property('vatonage:signal') == 1",
            "components":{
               "tag:cogsignal":{
                  
               },
               "minecraft:ticking":{
                  "looping":true,
                  "range":[
                     0.10,
                     0.10
                  ],
                  "on_tick":{
                     "event":"vatonage:spin0",
                     "target":"self"
                  }
               }
            }
         },
         {
            "condition":"query.block_property('vatonage:signal') == 0",
            "components":{
               "minecraft:ticking":{
                  "looping":true,
                  "range":[
                     0.20,
                     0.20
                  ],
                  "on_tick":{
                     "event":"vatonage:spin1",
                     "target":"self"
                  }
               }
            }
         }
      ]
   }
}