Removing a specific item from enderchest

Started by greyifer on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Removing a specific item from enderchest
Fri, 01/10/2025 - 17:14 (edited)

So basically I have a procedure here that is supposed to check every slot of the enderchest for this specific item, if there is then it deletes it.
Doesn't seem to work. I've tried a bunch of things and it just doesn't want to work. I could use some help ngl.

https://imgur.com/a/FWJkGYx

Edited by greyifer on Fri, 01/10/2025 - 17:14
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can use "clear slot …
Fri, 01/10/2025 - 19:38

you can use "clear slot <number> of the current open GUI" instead of "remove 1 item...> and "get item from slot <number> of the current open GUI" instead of "get a copy of item from slot..."

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So I changed the things you…
Fri, 01/10/2025 - 22:46

So I changed the things you told me to do and I did some debugging, for some reason at the end (Mind you, removed the two blocks that set it back to 0) the slot variable still = 0

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Found out, the +1 onto the…
Fri, 01/10/2025 - 22:50

Found out, the +1 onto the variable itself and then getting that and doing plus 1 again doesn't work for some reason

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I might just use NBT tags
Fri, 01/10/2025 - 22:54

I might just use NBT tags