#Scripting 1.21
1 messages · Page 1 of 1 (latest)
I can help
What version are you currently using?
Script api
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
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
?