On block break does not fire for make player see block at player as x block
EquipableMC opened this issue · 3 comments
Skript/Server Version
[20:26:51 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[20:26:51 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[20:26:51 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[20:26:51 INFO]: [Skript] Server Version: git-Paper-550 (MC: 1.19.4)
[20:26:51 INFO]: [Skript] Skript Version: 2.8.3 (skriptlang-github)
[20:26:51 INFO]: [Skript] Installed Skript Addons:
[20:26:51 INFO]: [Skript] - skript-placeholders v1.6.0 (https://github.com/APickledWalrus/skript-placeholders)
[20:26:51 INFO]: [Skript] - PoaSK v3.3.2
[20:26:51 INFO]: [Skript] - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui)
[20:26:51 INFO]: [Skript] - DiSky v4.12.2-beta1
[20:26:51 INFO]: [Skript] - skript-reflect v2.4 (https://github.com/SkriptLang/skript-reflect)
[20:26:51 INFO]: [Skript] - SkBee v3.4.0 (https://github.com/ShaneBeee/SkBee)
[20:26:51 INFO]: [Skript] - SkLogs v1.1.1 (https://github.com/EquipableMC/SkLogs)
[20:26:51 INFO]: [Skript] Installed dependencies:
[20:26:51 INFO]: [Skript] - Vault v1.7.3-b131
Bug Description
On block break should be firing since the event is getting cancelled. When adding broadcasts, the broadcasts do not fire.
Expected Behavior
When the player mines the block, it should return the target block of the player, but on block break does not fire at all.
Steps to Reproduce
- Run
!make player see block at player as stone
(stone being the example block) - Add the code listed below:
on block break:
broadcast "%target block%"
- Break the block, you will realize on block break does not fire when it should.
Errors or Screenshots
No response
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.
since the event is getting cancelled
Skript does not support listening to cancelled events until #5891 is merged.
On the other hand, if that block is Air before you send a block change packet, then that explains it — the server sees that you’re interacting with nothing as it is a client sided block, hence the event is not called. Nothing’s wrong here.
Yeah I realized skript doesnt listen to client sided blocks, I just need to figure out what packets I need to use to listen to that, LimeGlass explained it to me.