KubeJS

KubeJS

69M Downloads

`block.right_click` doesn't fire

C0D3-M4513R opened this issue ยท 2 comments

commented

Minecraft Version

1.18.2

KubeJS Version

kubejs-forge-1802.5.4-build.544.jar

Rhino Version

rhino-forge-1802.1.14-build.225.jar

Architectury Version

architectury-4.9.83-forge.jar

Forge/Fabric Version

forge-1.18.2-40.2.0-universal.jar

Describe your issue

I have adopted a Blacklist plugin written in KubeJS.

As a Test I blacklisted various blocks, that do something on right click:

  • repeater
  • chest
  • dropper
  • hopper
  • dispenser
  • comparator

And on all of them the block.right_click event doesn't fire.
In general I log almost all block events types to the console as they happen, and cannot seem to get a block.right_click event.
I also couldn't get a block.left_click event to fire (but on vanilla there is no block anyways that you can left click, and not just break).

Crash report/logs

No response

commented

Yep. Base code handled a block.right_click with a function that handles item events for whatever reason.

commented

Wait. The base code may be incorrect for the plugin I'm using.