How I Can Make Item That Opens GUI And Spawn Random Item In?

Started by KinderCrowd602xD on

Topic category: Help with modding (Java Edition)

Last seen on 19:44, 22. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How I Can Make Item That Opens GUI And Spawn Random Item In?

Hello Guys!

How i can make an item that opens gui with one slot and in this slot to spawn random item like (weapons, etc.) i tried but didn't work i used a procedure from one other post but i tried alot of times didn't work but i need to do this because it's important to my mod i want to add all CS:GO knifes with all skins alot of work but i want you can get them from a case so when you right click on the case it opens gui and there is an item random and also then i want case to disappear but im bad at procedures so if you can help me THANK YOU! 

Last seen on 22:39, 22. Aug 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There should be a "Place …
Sat, 02/27/2021 - 18:06

There should be a "Place ... in slot (number)" block in GUI menu in procedures -- Not sure though

By the way, I suggest seperate sentences (or at least divide in the whole text into a few sections) for more readability