How do i make a wallet???

Started by Bxo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make a wallet???

How do i make a item that when i right click it opens a inventory?

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1. Make a gui with inventory…
Thu, 11/07/2019 - 01:56

1. Make a gui with inventory slots.

2. Make a procedure that opens the gui

3. Attach the gui to the item on right click

There you go!

Reply if you need more help

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1. Make a gui with inventory…
Thu, 11/07/2019 - 07:44

1. Make a gui with inventory slots.

2. Make a procedure that opens the gui

3. Attach the gui to the item on right click

There you go!

Reply if you need more help

This would not work correctly and would cause many issues later,
I will explain in detail,

The items bound to GUI's that are not bound to a block are stored in client data and then reflected via the host - server - world to avoid exploitation,

So if you have more then one of the same item, it would open the same GUI with the same item codex as the last - or just reset your items.

And that's not even taking into account the possible conflicts that, that procedure would create - possibly conflict in the console!

 

Here is what i would do in a debugging standpoint,

  1. Create a list value or string of values based around the item that is created when it is created
  2. Refer the item whenever the gui is used and then trigger a temp logic value to be set to a value that will trigger the alt function that loads the items,
  3. Whenever a slot is "updated" refer to the procedure that would save each item slot - slot value to NBT data of the item id name or possible item id ( not supported feature yet sadly )
  4. Whenever the item is right clicked it will open the gui, then it would set the slots IN ORDER of the NBT data list of the items added to the GUI,

this is all in "concept" and is not currently possible in Mcreator, but with some [java code] it "should" be completly possible.

this is my debugging opinion on how to create this system from a view-point of a experienced general scripter - coder.

 

 

Infact i was thinking of making something like this in my current Mcreator based mod,
So i will attempt to make this work via work arounds or alike,

When i managed to get it to work i will let you know
<3

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank's
Thu, 11/07/2019 - 16:04

Thank's