Bug Closed · Invalid

Holding and HasItem conditions always return false

#6628 opened by Unknown 11 months ago

Unknownreported this bug

Summary

The conditions Holding and HasItem always return false, regardless if the player has a given item or not.

Steps to reproduce

Run the following commands while holding the dirt block in your hand: /give @s dirt /mm test mechanic message{m="wawa"} @self ?holding{m=DIRT} /mm test mechanic message{m="wawa"} @self ?hasitem{m=DIRT}

Current behavior

These conditions return false.

Intended correct behavior

These conditions should return true if the player does have the item.

Server log file

https://mclo.gs/DhO9QEy

Unknowncommented

this is expected, as the /mm test mechanic basically creates the skill at runtime, and the itemmatcher is initiated during reloads. test this with a proper metaskill that is loaded during reloads. closing for now, if this issue also happens with a metaskill, you can reopen it

Sign in to join the discussion.