#Need to change it

1 messages · Page 1 of 1 (latest)

waxen wraith
#

runInterval() causes lag, what i need to improve

woven crown
#

You need to send code as text @waxen wraith

woven crown
#

Could cache some stuff possibly.

woven crown
#

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

trail verge
waxen wraith
woven crown
trail verge
woven crown
woven crown
#

@waxen wraith did the code work or help?

supple bay
stone scaffold
woven crown
#

Bro text, not photo pls

#

Oh nvm I see issue

waxen wraith
#

any ways to replace runInterval by another way

woven crown
#

getDefinitionIdentifer isn't a thing. It should be like damager.id or just damager

line 51 issue I believe

waxen wraith
#

sorry wrong file

woven crown
#

Just correct api or train it

supple bay
trail verge
undone raven
#

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.