Procedures and performance

Started by Lendill on

Topic category: Help with MCreator software

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedures and performance

I want to create a gui from which you can select blocks. There will be a bunch of blocks being legit to call the procedure to open the gui (a ton of blocks).

What would be better:

- Make several procedures that are called by several keybindings to check if the required block is in the main hand of the player. (as the number of keys are limited i would use the same key for all keybindings)

or

- one gigantic procedure.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so, basically what you want…
Thu, 11/04/2021 - 02:33

so, basically what you want to do is give the player a block if they have it on main hand?

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not exactly. Imagine you…
Thu, 11/04/2021 - 09:29

Not exactly.

Imagine you have iron ore in your mainhand. When you are in creative, press the assigned button:

it opens a menu where it shows you all other ore and you can pick them to your inventory.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I see, well you have 2…
Thu, 11/04/2021 - 15:53

I see, well you have 2 options. Coding or Making multiple Guis