#Scripting 1.21

1 messages · Page 1 of 1 (latest)

toxic skiff
#

Ukmm... i'm gonna update my addon into 1.21 , but my friend to me that a lots of thing in 1.21 make old scripts broken, so i just wanna ask a question that is there anything that i need to know about there new code , please help i dont wanna waste my time to fixed bug by hand ._.

sudden lava
#

I can help

vapid tree
#

What version are you currently using?

sudden lava
#

Script api

jagged vale
#

You have to use custom components in 1.21

#

Only the events is changed in 1.21

#

Nothing else is changed in 1.21

#

like, in 1.20, it's written like this:

world.afterEvents.playerPlaceBlock.subscribe((event)) => {})

But, in 1.21, it is changed, you have to use: registerCustomComponent.

#

@toxic skiff

vapid tree
#

that's not a thing 1.21 but rather something that will come in a future update. Also I haven't read into it but afaik custom components will only replace hcf

sudden lava
#

?