Procedure wont detect empty itemstack 1.18.2

Started by Arkaliasus on

Topic category: Help with modding (Java Edition)

Last seen on 14:28, 23. Mar 2024
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure wont detect empty itemstack 1.18.2
Tue, 09/13/2022 - 19:37 (edited)

Hey guys, brand new here.. (am currently using 1.18.2)

 I'm having trouble with my procedure detecting an empty itemstack for the offhand. 

 Everything works fine at first and im able to shoot fireballs, BUT as soon as i equip and dequip a shield in the offhand slot i am unable to shoot the fireballs unless i have an item in offhand.
if i save and quit the test environment with nothing in offhand (and then go back in) , im then able to shoot fireballs again, but when i equip and dequip the shield again i am only able to fire in the circumstances said above :(

Procedure: https://imgur.com/a/vSscjzI

 

EDIT: i tested 'player right clicks with item' with just a simple message to tell me whats equipped. it gives a response every single time with any item, but if i equip and dequip the shield 
 its like the procedure dies. when i place any item back in then it all works fine again, if its not a shield when i remove it, it will also detect the air. very weird sounds like a bug xD

Edited by Arkaliasus on Tue, 09/13/2022 - 19:37