Set item to gui slot with nbt?

Started by TheKralGame on

Topic category: Help with modding (Java Edition)

Last seen on 11:15, 21. Mar 2022
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Set item to gui slot with nbt?
Fri, 01/22/2021 - 05:34 (edited)

How to set to item with custom nbt to block gui slot #1 in MCreator 2021.1 Latest Snapshot 1.16.4.

 

My Procedure:

https://easyupload.io/ud3suh 

Edited by TheKralGame on Fri, 01/22/2021 - 05:34
Last seen on 06:33, 1. May 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make custom variable…
Tue, 02/09/2021 - 13:59

make custom variable myTempItem(itemstack)

do:

set myTempItem to (get item in block gui slot #1)

set string/number/boolean nbt of myTempItem to (your custom value)

set item in block gui slot #1 (get item count in myTempItem)  (resize myTempItem to 1)

Last seen on 06:33, 1. May 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the set block need # and…
Tue, 02/09/2021 - 13:59

the set block need # and item so I counted it and resized to one

Last seen on 06:33, 1. May 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
PS:resize item is not an in…
Tue, 02/09/2021 - 14:00

PS:resize item is not an in-place procedure