Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-124383

Can't get the state of a lever

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 18w03b
    • None
    • Unconfirmed

      In 1.12 and before, I could get the sate of a lever with testforblock, but in 1.13, it seems like minecraft thinks that levers are not block entities and/or don't have states.
      Specifically:
      /data get block <x> <y> <z> lever.powered
      reports "The target block is not a block entity", and
      /execute if block <x> <y> <z> lever

      {powered:1b}

      always returns false

      Do I have something wrong with my commands?

            Unassigned Unassigned
            steveswales Steve Swales
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: