#REIEvents.hide appears to not be fired

13 messages · Page 1 of 1 (latest)

glad anvil
#
// priority: 0
console.log('hello from outside')
REIEvents.hide('item', event => {
    console.log('hello from inside')
    //test stuff here
})```The above code produces the following output in logs/kubejs/client.txt:

[14:07:21] [INFO ] client_scripts:script.js:2: hello from outside
[14:07:21] [INFO ] Loaded script client_scripts:script.js in 0.002 s
[14:07:21] [INFO ] Loaded 1/1 KubeJS client scripts in 0.006 s

```js
REIEvents.hide('item', event => {
  event.hide('example:ingredient')
})```
azure dragonBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

grim rampart
#

have you restarted the game, or reloaded in any way since writing that script

glad anvil
#

I have pressed F3+T multiple times, as this is in client_scripts, I expected that to be sufficient. I can try restarting, though, give me a moment.

grim rampart
#

REI i think loads with server or something, its a bit more complicated

#

i dont remember exactly how to reload it

glad anvil
#

But I do need to put it in client_scripts?

#

Or should I move the entire thing to a different folder?

soft condor
#

I believe REI reloads on the vanilla reload command

grim rampart
ashen surge
#

you go into reis settings and press reload plugins to reload them

#

but f3+t should also work

azure dragonBOT
#

@glad anvil Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!