#Need to change it
1 messages · Page 1 of 1 (latest)
You need to send code as text @waxen wraith
How many instances of these are getting created? Per player etc, there is new intervals being created in a very short period and possibly alot of processing needed for that. Send code in text format and we can try to find a solution.
Could cache some stuff possibly.
I bet it's all those commands causing the lagg for particles
If you use native it would help alot
Let me see what I can do
switch to using native methods
what native methods?
Try this and see if it has any errors or works?...faster?
😂 I just started working on this lol
I just verify that chatgpt4 is using the api correctly and then role with what it says. It's helped me do alot of coding so fast haha
@waxen wraith did the code work or help?
run interval doesn’t cause lag adding an effect and getting a property directly per entity each tick doesn’t help either
@woven crown chatgbt 4 lol 😂
Lmao yeh
Bro text, not photo pls
Oh nvm I see issue
any ways to replace runInterval by another way
getDefinitionIdentifer isn't a thing. It should be like damager.id or just damager
line 51 issue I believe
Bro really uses chatgpt
Yup proud of it, I'm able to do alot with it
Just correct api or train it
It works most of the time for ts issues
and it's useful for converting js to ts
For me, I'll probably make a global array and update it using entitySpawn afterEvents.
Instead of using world.getEntities() for each tick, it's a bit expensive.
Or you know... you can just do a bit of editing in the entity.json and call each ability by its own /scriptevents commands when reaching certain requirements. I think it's cheaper this way.