Unable to modify items in item specific guis using procedures

Started by whitebread009 on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 21:41, 18. Apr 2024
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unable to modify items in item specific guis using procedures

I am attempting to make a procedure that should shoot an item in the inventory of a specific item, and remove it from the inventory. The code detects that an item is there, but is not able to modify it in any way. I tested this with many blocks that modify item stacks, including: Enchant itemstack, Shrink Itemstack for X, and set number if items in itemstack to X. I also tried this without the variable, but it still resulted in no change. Here is a screenshot of the part of the code that does not work.

You are shrinking a copy of…
Wed, 03/20/2024 - 22:06

You are shrinking a copy of the itemstack, so not the original stack as procedure indicates.

You need to take stack, store it in local variable, shrink it, and set stack in desired slot to the shrinked stack.