#Is this possible?

8 messages · Page 1 of 1 (latest)

cedar geyser
#

Is what im trying to do here StartupEvents.registry("mob_effect", (event) => { event .create("betterasfour:frosty_environmental") .displayName("Frosty Environmental") .beneficial() .effectTick((entity) =>{ let {server,level} = entity; if (entity.tickCount % 100) return; if (level.clientSide){ entity.tell("test") } else { entity.server.sendData("Frosty") } }) }); possible? because i keep getting crashes on the trigger of the tick

tepid shellBOT
#

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

cedar geyser
#

this is on the other side NetworkEvents.dataReceived("Frosty", event =>{ const {server} = event; if (event.entity.hasEffect("betterasfour:frosty_environmental")){ server.tell("Server test") } })

sonic heronBOT
#

Please send your KubeJS server log. It can be found at /minecraft/logs/kubejs/server.log.
If you are on 1.18 or 1.16 it will be called server.txt.
Please send the file directly, without links or snippets.

robust niche
#

If you're trying to run tell from the client, that's the issue, you can't run server commands on the client

#

Because the effect Tick should already be running on the server

#

What is the intended use case?

cedar geyser
#

I no longer need this but it is cool to know that it is possible