[TUTORIAL] Baubles in mcreator!

Started by WOSAJ2 on

Topic category: User side tutorials

Last seen on 14:33, 18. Aug 2023
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[TUTORIAL] Baubles in mcreator!
Sat, 02/06/2021 - 14:12 (edited)

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

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:

 

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:

Read

Save:

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!

Edited by WOSAJ2 on Sat, 02/06/2021 - 14:12
Last seen on 00:44, 19. Sep 2022
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What are the get item blocks…
Sun, 05/30/2021 - 21:56

What are the get item blocks in the Write Procedure connected to? I don't understand

Last seen on 22:43, 10. Apr 2023
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I save a post to look…
Sun, 05/30/2021 - 22:07

How do I save a post to look at later because its really helpful?

Last seen on 14:33, 18. Aug 2023
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ctrl+A Ctrl+C In Microsoft…
Sun, 05/30/2021 - 23:55

Ctrl+A Ctrl+C

In Microsoft Word: Ctrl+V

Last seen on 00:45, 18. Feb 2024
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you send me a photo of…
Mon, 06/21/2021 - 16:03

can you send me a photo of the procedure Write, the image was cut off and I couldn't see the rest of the procedure very well

Last seen on 00:23, 27. May 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in the "write" part what…
Mon, 11/15/2021 - 16:32

in the "write" part what does it say before "get item from slot"?

Last seen on 21:03, 23. Mar 2022
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What do the red blocks say…
Sat, 03/19/2022 - 22:57

What do the red blocks say in the write procedure????

Last seen on 12:02, 20. Mar 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't even load the images.
Wed, 05/11/2022 - 12:38

I can't even load the images.

Last seen on 06:06, 16. Feb 2023
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you explain in more…
Sun, 06/19/2022 - 18:59

can you explain in more detail? I did not quite understand (google translate)

Last seen on 21:29, 7. Jun 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can't see the images. Can…
Wed, 07/13/2022 - 16:07

I can't see the images. Can somebody put the code as text?

 

Last seen on 16:45, 7. Apr 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The pictures arent working
Wed, 10/12/2022 - 18:07

The pictures arent working

Last seen on 19:30, 7. Apr 2023
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For people like me who came…
Sun, 01/29/2023 - 15:04

For people like me who came here but pictures didn't load

To do it as of 2022.3, follow the instructions of WOSAJ2's post, here is the code for all procedures (i did it with 1 slot but you can do with more):

Read:

https://ibb.co/QY9BJ3t

Save:
https://ibb.co/z2tscwL

Write:
https://ibb.co/rdWRD54

 

If you come from the future and have questions/ don't understand, reply to my comment, I may still help you!

Last seen on 13:22, 20. May 2023
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but... there arent any…
Sat, 04/22/2023 - 20:49

but... there arent any pictures :(