#How do i call a function without a player event

1 messages · Page 1 of 1 (latest)

gloomy patio
#

/scriptevent
in your js

system.afterEvents.scriptEventReceive.subscribe(({ id, sourceEntity, message }) => {
    //code
});
cobalt rampart
gloomy patio
#

you can use a if to see if your id matches it must have a namespace ie namespace:id

stiff boltBOT
#

Con-Databases
This package contains three types of databases, JsonDatabase, NBTDatabase, CustomDatabase.
Each of these database types supports all possible Map class operations from ECMAScript, which means.

Inherited from Map

  • size: number of properties
  • [Symbol.iterator]: is iterable [key, value]
  • clear(): clear all values
  • delete(key: string): delete specific value
  • entries(): generator of ...
cobalt rampart
#

i made this, but first the code its not being read, and i dont know how to call the function i want

cobalt rampart
gloomy patio
# cobalt rampart

keep the first but on the next line js if (id === "zyro:script") //rest

#

remove initiator with sourceEntity

cobalt rampart
#

nvm i made it work somehow