Everything is explained in video below
https://www.youtube.com/watch?v=FPEkJLTHWMg&feature=youtu.be
Environment
Slimeblock elevator
Everything is explained in video below
https://www.youtube.com/watch?v=FPEkJLTHWMg&feature=youtu.be
Slimeblock elevator
If I understand your bug correctly: relates to/duplicates MC-59474.