Bug Verified

PushButton not working as expected

#4597 opened by Unknown 2 years ago

Unknownreported this bug

Summary

When using the CopperGolem mechanic, I found that the redstone mechanic does not work in certain directions of the button.

Steps to reproduce

video: https://streamable.com/43ah5r

boton: Cooldown: 3 TargetConditions:

  • blocktype{type=stone_button} true Skills:
  • state{s=mining2} @self
  • delay 3
  • setAI{ai=false} @self
  • delay 20
  • pushbutton{x=<target.l.x>;y=<target.l.y>;z=<target.l.z>} @self
  • effect:sound{s=block.copper.hit;volume=1.0;pitch=0.5} @self
  • effect:particles{p=reddust;color=#EF3214;amount=5;hS=2;vS=1;speed=.08;size=1} @self
  • delay 3
  • setAI{ai=true} @self

[Legacy attachment omitted]

[Legacy attachment omitted]

Unknowncommented

Push button does NOT work in current. It seems it ignores the set attribute values and instead attempts to push the button at the given targeter instead.

TestStick:
  Id: stick
  Display: 'Test Stick'
  Skills:
  - pushbutton{x=942;y=65;z=216} @self ~onSwing

However, when getting it to work with the below code, it seems like it's only a client side button press, since none of the adjacent redstone blocks are activated when the button does get pressed down. (see picture)

pushbutton @targetblock{it=false;fo=1} ~onSwing

MM debug logs showing it's just choosing the targeter instead of defined location values. https://pastebin.com/G00BZA2g

[Legacy attachment omitted]

Sign in to join the discussion.