For 2020.6 EAP 52319 - reguarding "For each slot of inventory of [] get contents copy as [Itemstack Iterator] do"

Started by yui on

Topic category: Help with modding (Java Edition)

Last seen on 17:02, 1. Aug 2021
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For 2020.6 EAP 52319 - reguarding "For each slot of inventory of [] get contents copy as [Itemstack Iterator] do"
Wed, 01/06/2021 - 05:43 (edited)

Is there a way to update the entity's inventory with the (now modified) Itemstack Iterator?

Edited by yui on Wed, 01/06/2021 - 05:43
I think you could set eg…
Wed, 01/06/2021 - 13:15

I think you could set eg. stack count, but to set some slot directly, you would need to address it by its id and set contents in slot with said id

Last seen on 17:02, 1. Aug 2021
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hmm. OK, thank you!
Wed, 01/06/2021 - 18:44

Hmm. OK, thank you!