Matocolotoe / Skript-1.8

The Skript plugin made for Minecraft 1.8.x only. Releases will follow the original repository, except for some bug fixes. Please read the README before updating to Skript-1.8 !
https://discord.gg/yh3Z98m
GNU General Public License v3.0
47 stars 4 forks source link

Item comparison bug with durability #77

Closed Henriiig closed 6 months ago

Henriiig commented 7 months ago

Skript Version

[20:46:06 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases [20:46:06 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/ [20:46:06 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials [20:46:06 INFO]: [Skript] Server Version: git-PaperSpigot-94ac179e (MC: 1.8.8) [20:46:06 INFO]: [Skript] Skript Version: 2.6.5-for-1.8 [20:46:06 INFO]: [Skript] Installed Skript Addons: [20:46:06 INFO]: [Skript] - skript-placeholders v1.5.2 (https://github.com/APickledWalrus/skript-placeholders) [20:46:06 INFO]: [Skript] - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui) [20:46:06 INFO]: [Skript] - Skellett v1.9.6 (https://forums.skunity.com/resources/skellett-the-addon-with-a-beast-name.24/) [20:46:06 INFO]: [Skript] - DiSky v4.12.1 [20:46:06 INFO]: [Skript] - skDragon v0.17 [20:46:06 INFO]: [Skript] - skript-reflect v2.3 (https://github.com/TPGamesNL/skript-reflect) [20:46:06 INFO]: [Skript] - skRayFall v1.9.25 (https://sk.rayfall.net/) [20:46:06 INFO]: [Skript] - SkQuery v4.1.6 [20:46:06 INFO]: [Skript] - SkBee v1.10.3 (https://github.com/ShaneBeee/SkBee) [20:46:06 INFO]: [Skript] - WolvSK v1.7.2 [20:46:06 INFO]: [Skript] Installed dependencies: [20:46:06 INFO]: [Skript] - Vault v1.7.3-CMI [20:46:06 INFO]: [Skript] - WorldGuard v6.1.3-SNAPSHOT;c904242

Bug Description

When testing if a player's tool is a hoe it only works if the item is not damaged

Expected Behavior

It should fire the output no matter the condition, enchant and so on

Steps to Reproduce

image

Hold a hoe which is not 100% repaired and use the command

Errors or Screenshots

Replace this text with your paste link or errors/screenshots/videos.

Other

No response

Agreement

Matocolotoe commented 7 months ago

Try using type of to compare materials this way

Henriiig commented 7 months ago

That works! I used:

If type of player's tool is hoe

Perfect