Started by
Mara_Is_My_Dog
on
Topic category: Help with Minecraft modding (Java Edition)
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?
could you enter on more detail? you want to do what with he slot?
the*
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!
overlays?
sorry I still don't get what you mean
Just having a button to make the hotbar scroll REALLY fast until you click it again.
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
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!
code or procedure?
Procedure please!
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
Can you send me a picture?
uh yeah sure give me a moment while I make it
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