How to change the hotbar slot?

Started by Mara_Is_My_Dog on

Topic category: Help with modding (Java Edition)

Last seen on 17:32, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to change the hotbar slot?

I want to make a simple autoscroller that could be used for random building! However, i can't seem to find a procedure that can help me change the currecnt slot. Does anyone know the answer to this?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could you enter on more…
Wed, 11/10/2021 - 18:15

could you enter on more detail? you want to do what with he slot?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the*
Wed, 11/10/2021 - 18:15

the*

Last seen on 17:32, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well, in building its can…
Wed, 11/10/2021 - 18:42

Well, in building its can look really nice to have random patters sometimes. So basically, i want to make it scroll through your hotbar really quickly at the press of a button and then stop at the press of another button. Really simple, but i can't find the solution!

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
overlays?
Wed, 11/10/2021 - 18:49

overlays?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry I still don't get what…
Wed, 11/10/2021 - 18:49

sorry I still don't get what you mean 

Last seen on 17:32, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just having a button to make…
Wed, 11/10/2021 - 18:56

Just having a button to make the hotbar scroll REALLY fast until you click it again.

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh I see it, well you can do…
Wed, 11/10/2021 - 19:01

oh I see it, well you can do something likes this without code by setting their item in main hand off a random hotbar slot

Last seen on 17:32, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well, i'm an absolute dummy…
Wed, 11/10/2021 - 19:16

Well, i'm an absolute dummy in using this program as i just started earlier today. Could you give me some help on how to do this? Sorry if its a dumb question!

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
code or procedure?
Wed, 11/10/2021 - 19:22

code or procedure?

Last seen on 17:32, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure please!
Wed, 11/10/2021 - 19:31

Procedure please!

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
okay this should be your…
Wed, 11/10/2021 - 19:53

okay this should be your procedure on the trigger Key is Pressed

(create a local variable called slotID)

repeat 9 times

do set local: slotID to get local: slotID + 1

set item in main hand of event target entity to get item in slot locakl: slotID + 1

And customize this example for you

Last seen on 17:32, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you send me a picture?
Thu, 11/11/2021 - 17:01

Can you send me a picture?

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
uh yeah sure give me a…
Thu, 11/11/2021 - 17:02

uh yeah sure give me a moment while I make it

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
okay it doesn't seem to work…
Thu, 11/11/2021 - 17:17

okay it doesn't seem to work so I don't have a real procedure, but with variables you should be able to figure it out, or at least with those blocks I mentioned.

Variables | MCreator