for context i am trying to make a script when a player interacts with a block
i saw that on the api and i cannot for the life of me figure out how to implement it
can anyone please help me???
1 messages · Page 1 of 1 (latest)
for context i am trying to make a script when a player interacts with a block
i saw that on the api and i cannot for the life of me figure out how to implement it
can anyone please help me???
i also saw this
still cant figure it out
ok solved.. but for everyones future reference
block needs a custom component!!!!!!
custom component - stable
world event (interact with block) - unstable yet
custom component only work for custom blocks
yes, custom component is on stable, the world event didnt work even with beta api on, i believe the block needs a custom component nomatter what
no
you were probably using afterEvents, people were having issues with afterEvents for it.
i see, maybe, either way custom somponent isnt in beta anymore so i dont mind using that, thank you so much guys for the help
do you have an example in which you used this you could provide?
sure, here i made a empty one for you also put the block.json additions in comments below it
You can avoid using custom components if you use beforeEvent of these
we have itemUseOn, it fires with the empty hand if I'm not wrong
the only thing is that it spams