Hello how are you?!
I'm implementing buttons and tiles, no problem with the tiles but the buttons... hmm don't work properly.
When I put them on any block no problem only... when you press them either they change position or it does this (see video) would you know why?
self::registerBlock(new StoneButton(new BlockIdentifier(VanillaBlockIds::POLISHED_BLACKSTONE_BUTTON,0,VanillaItemsIds::POLISHED_BLACKSTONE_BUTTON),"Polished Blackstone Button",new BBI(1, BlockToolType::AXE, 0, 6)));
self::registerBlock(new WoodenButton(new BlockIdentifier(VanillaBlockIds::CRIMSON_BUTTON,0,VanillaItemsIds::CRIMSON_BUTTON),"Crimson Button",new BBI(3, BlockToolType::AXE, 0, 6)));
self::registerBlock(new WoodenButton(new BlockIdentifier(VanillaBlockIds::WARPED_BUTTON,0,VanillaItemsIds::WARPED_BUTTON),"Warped Button",new BBI(3, BlockToolType::AXE, 0, 6)));
IDS:
Items:
public const POLISHED_BLACKSTONE_BUTTON = -296;
public const CRIMSON_BUTTON = -260;
public const WARPED_BUTTON = -261;
Blocks:
public const POLISHED_BLACKSTONE_BUTTON = 551;
public const CRIMSON_BUTTON = 515;
public const WARPED_BUTTON = 516;
And yes some classes are not the same as yours I re-advanced your plugin with some modification to add blocks of versions >1.16 so I changed a little I hope you do not blame me ^^
If you want I can fork you a version and you create a 1.17 plugin
https://user-images.githubusercontent.com/51505384/152307157-08e136c6-7445-4fcb-8efa-13d43316497b.mp4