NathanLithia / item_blacklist.js

KubeJS script to removed blacklisted items from players inventories.
1 stars 0 forks source link

Does not load, events not defined #1

Open Merith-TK opened 2 years ago

Merith-TK commented 2 years ago

[11:23:28] [Server thread/ERROR]: Error loading KubeJS script: ReferenceError: "events" is not defined. (server_scripts:item-blacklist.js#21)

copied the script as is, replaced blacklist with allium_peripherals:chat_modem_creative because its crashing my server, but it fails to load

NathanLithia commented 2 years ago

[11:23:28] [Server thread/ERROR]: Error loading KubeJS script: ReferenceError: "events" is not defined. (server_scripts:item-blacklist.js#21)

copied the script as is, replaced blacklist with allium_peripherals:chat_modem_creative because its crashing my server, but it fails to load

What version of KubeJS are you using? I wrote this for a kubejs-forge-1605.3.19-build.299.jar for 1.16.5 and I have not touched it for awhile. some stuff may have changed.

Merith-TK commented 2 years ago

Fabric 1.18.2 latest, that mught be it!

NathanLithia commented 2 years ago

Fabric 1.18.2 latest, that mught be it!

I'll make a Fabric port when the mods I use are ported to Fabric, until then you are more than welcome to clone the code and create your own Fabric version meanwhile.

Merith-TK commented 2 years ago

1.18.2 fabric and forge are identical for kubejs, so whatever you make for 1.18.2 forge, will work on 1.18.2 fabric

NathanLithia commented 2 years ago

1.18.2 fabric and forge are identical for kubejs, so whatever you make for 1.18.2 forge, will work on 1.18.2 fabric

In that case I'll do some testing on Forge later this week when I am not busy with work.