KubeJS (Old)

KubeJS (Old)

3M Downloads

Cannot use ItemEvents.leftClicked because it's missing

TBiscuit1 opened this issue ยท 1 comments

commented

Minecraft Version

1.19.2

KubeJS Version

1902.6.0-build.119

Rhino Version

1902.2.2-build.264

Architectury Version

6.3.49

Forge/Fabric Version

Fabric 0.14.10

Describe your issue

image
It says in the wiki that this event exist, but after looking at the code, only Right Click is registered

Crash report/logs

No response

commented

ItemEvents.leftClicked was registered in client, you shall write it in client_scripts instead of server_scripts.
Besides, ItemEvents.leftClicked has been renamed ItemEvents.clientLeftClicked.
Oh wait, now you can use brand new ItemEvents.firstLeftClicked in server_scripts.