#using json event to trigger a js code
1 messages · Page 1 of 1 (latest)
you can send a /scriptevent in json, then check for it in js using ```js
system.events.scriptEventReceive.subscribe((event)=>{})
ah okay that's helpful! cheers very much!
1 messages · Page 1 of 1 (latest)
Hi! I'm quite new to minecraft coding in particular so yeah expect quite a bit of dumbness from me about all that. I was working with json but suddenly arose a need to trigger js code with an event laid out in another json file. How can I manage that?
you can send a /scriptevent in json, then check for it in js using ```js
system.events.scriptEventReceive.subscribe((event)=>{})
ah okay that's helpful! cheers very much!