#On Player Interact (RESOLVED)

1 messages · Page 1 of 1 (latest)

potent sparrow
#

When I try to right-click on my custom block that has the  :
”onPlayerInteract: ({ block, player }) => {“
Component, the block does not get placed and I have to sneak. Do you have a solution?

drifting drum
#

no

#

they removed interaction conditions

potent sparrow
#

🙁

drifting drum
#

there might be some other events in scripting that can replicate it without actually making the block able to be interacted with but that would also prevent the player's arm from swinging

potent sparrow
#

So if you have these solutions, I'll try them.

drifting drum
#

just checked, using world.beforeEvents.playerInteractWithBlock and then executing the code inside a system.run should work

#

the after event only triggers for blocks that can be interacted with

potent sparrow
#

Okay thanks ❤️

potent sparrow
#

On Player Interact (SOLVED)

#

On Player Interact (RESOLVED)