Bug Closed · Resolved

PushButton and ToggleLever no longer function

#1850 opened by Unknown 5 years ago

Unknownreported this bug

Summary

Nether the PushButton or the ToggleLever mechanic function at the moment. Using these 2 mechanics leads to the button not being pressed, and the lever not being toggled.

Steps to reproduce

  1. Setup a redstone contraption, I just used a button / level attached to reddust that leads to a redstone lamp. The picture shows the button and reddust leading to the lamp.

[Legacy attachment omitted]

  1. Place either a button or a level and use the mechanics to try and make them light up the lamp through the mechanics: https://pastebin.com/t5N1MTFT

  2. see that neither of them function

  3. I tried this from /mm test cast Lightup and from spawning a mob that uses the skill and removes itself like so: https://pastebin.com/2EKkQdW9

Current behavior

Neither of these mechanics work as intended.

  1. The PushButton mechanic does not push a button at the specified coordinates

  2. The ToggleLever mechanic does not toggle a lever at the specified coordinates

Intended correct behavior

  1. The PushButton Mechanic should push a button at the specified coordinates

  2. The ToggleLever mechanic should toggle the lever at the specified coordinates

Proposed fixes

There are no console errors pertaining to either of these mechanics.

I'd assume something changed with the buttons and levers when 1.16 came out. You might need to edit your code to whatever changed for them.

MM Build: 2ad3e0f5 (#3598) (#3599 is undownloadable at the moment)

Unknowncommented

Using the v5.0.0-alpha1, I still have that bug, I don't know if this info is relevant

Unknowncommented

Can't replicate. These test mobs work fine. If it was broken it doesn't seem to be now. /~"Could Not Replicate"

TestPushButton:
  Type: COW
  Display: '&6Button Test'
  Health: 1000
  Despawn: false
  Skills:
  - skill:DontMove ~onSpawn
  - pushbutton @location{c=-11,4,4969} ~onInteract

TestPushLever:
  Type: COW
  Display: '&6Lever Test'
  Health: 1000
  Despawn: false
  Skills:
  - skill:DontMove ~onSpawn
  - togglelever @location{c=-11,4,4967} ~onInteract
Sign in to join the discussion.