Set item to gui slot with nbt?

Started by TheKralGame on Fri, 01/22/2021 - 05:25

Topic category: Help with modding (Java Edition)

Last seen on 12:58, 23. Feb 2021
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 13:38, 22. Feb 2021
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 13:38, 22. Feb 2021
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 13:38, 22. Feb 2021
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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