how do i make a code block activate only if there is a item in your offhand

Started by Doge1 on

Topic category: Help with modding (Java Edition)

Last seen on 20:53, 24. Apr 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i make a code block activate only if there is a item in your offhand

hi im making a dimension where you lose your items then get them back when you leave(i got that part)

but when i try saving my inventory i have one blank spot and minecraft crashes how do i make the code only activate if there is a item in the slot its trying to save