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!
It would be useful, the problem is that the images are not visible, they are not available, could you make or explain an updated version of this tutorial???
PS: for the mc creator dell version 2021 above all (i.e. for mods of 1.12.2)