Topic category: User side tutorials
Hello everyone, today we will make baubles in mcreator, we will be able to wear rings and amulets just like in this mod.
The guide will be further developed
Let's go!
To begin with, we create a GUI, remove all the checkboxes in each slot, and arrange the slots according to your taste.
My GUI
Next, go to variables, there make logical and itemstack variables, there will be as many of them as you have slots in the gui, configure them like this:
Name | type | scope | initial value
Amuletslot | itemstack | player lifetime |
Ringslot1 | itemstack | player lifetime |
Ringslot2 | itemstack | player lifetime |
Save | logic | player persistent | true
The next step is to do 4 procedures, for convenience, call them: read, write, open, save.
That's what the horses look like:
Write:
This is a bit truncated unfortunately, it says: if get global "save" do: repeat 10 times: call "read" set global "save" to false
Read:
Save:
Open:
Open screen to event/target entity (your GUI name)
next, we do key binding and assign it to 'when key pressed' insert the 'open' procedure.
Take longer to open shashe GUI click "click to expand" and insert the following procedures: "read" in 'when GUI open', "write" in 'update tick', "save" in 'when GUI closed'
Done!
To add effects to the rings/what you need, just do a variable check
BB4N!
Also, could I make it to when I put an item into a slot, there be, for example, a headband on the players head? Is it possible to make a position for this in Blockbench?
Unfortunately, no
Wonderful tutorial!
Is there a way to make that only a few items are able to be put in accessory slots?
Awesome! Very helpful, thank you
Could I make a piece of armor that I could put it into a slot that would show the model then?
(this is similar to my recent question)
Pls, give full pictures
Google drive truncates them in any case
can you send me a discord please 96maxxam69#8449
I'll make a new complex Armory System in my mod,
you'll see soon (whenever I finish it).
This works great! I just ask if you could upload better pictures u-u" . Something showing the procedure blocks fully would be best! You can use the Windows Screen Snipping tool, or just press PrtSc (print screen) and edit on Paint.
omg I did this for my mod before seeing this, it is exactly the same
needs some improvements
You can show screenshots of your block system ?
This tutorial doesn't seem to work for me.
I followed it step-by-step and it just doesn't work.
(I am using MCreator 2021.1, 1.16.5)