Skip to content

cancel event does not call when looking at a players feet #8434

@Nexusen38

Description

@Nexusen38

Skript/Server Version

[21:55:35 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[21:55:35 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[21:55:35 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[21:55:35 INFO]: [Skript] Server Version: 1.21.11-111-302c47c (MC: 1.21.11)
[21:55:35 INFO]: [Skript] Skript Version: 2.14.1 (skriptlang-github)
[21:55:35 INFO]: [Skript] Installed Skript Addons: 
[21:55:35 INFO]: [Skript]  - skript-placeholders v1.7.0 (https://github.com/APickledWalrus/skript-placeholders)
[21:55:35 INFO]: [Skript]  - SkBee v3.16.0 (https://github.com/ShaneBeee/SkBee)
[21:55:35 INFO]: [Skript] Installed dependencies: 
[21:55:35 INFO]: [Skript]  - Vault v1.7.3-b131
[21:55:35 INFO]: [Skript]  - WorldGuard v7.0.16-beta-01+ce4622f

Bug Description

on right click:
	if player's world is "world":
		if player's held item is wind charge:
			cancel event
		if player's offhand item is wind charge:
			cancel event

on right click:
	if player's world is "world":
		if player's held item is ender pearl:
			cancel event
		if player's offhand item is ender pearl:
			cancel event

With a skript like the above, using an enderpearl or windcharge in those worlds gets cancelled, but if I am close to a player or mob and look at their feet, I can use enderpeals and windcharges.

Expected Behavior

Wind charges and enderpearls should cancel no matter where the player is looking when an event is cancelled.

Steps to Reproduce

on right click:
	if player's world is "world":
		if player's held item is wind charge:
			cancel event
		if player's offhand item is wind charge:
			cancel event

on right click:
	if player's world is "world":
		if player's held item is ender pearl:
			cancel event
		if player's offhand item is ender pearl:
			cancel event

Create a skript like the above with the world being the world you are in, get another player or mob, and look at their feet and throw an enderpearl.

Errors or Screenshots

No response

Other

What a bizarre bug. Also tested with other right click items and it all does not cancel when looking at a player or mobs feet, just used wind charges and enderpearls as an example.

Agreement

  • I have read the guidelines above and affirm I am following them with this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR availableIssues which have a yet-to-be merged PR resolving itbugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.priority: lowIssues that are not harmful to the experience but are related to useful changes or additions.

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions