[TUTORIAL] Baubles in mcreator!

Started by WOSAJ2 on

Topic category: User side tutorials

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
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Good?  
Tue, 02/02/2021 - 11:50

Good?

 

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
TOP! Thx!
Sat, 02/06/2021 - 14:16

TOP! Thx!

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Now this is useful :D I'll…
Wed, 02/17/2021 - 15:00

Now this is useful :D I'll try to use this in my power armor mod for an upgrade system. 

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
whoa thanks this will make…
Wed, 02/17/2021 - 15:09

whoa thanks this will make it much easier to make my elemental rings!

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm a little confused about…
Mon, 02/22/2021 - 08:35

I'm a little confused about this whole thing. Can I please have an example of a workplace with this?...

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe someday I'll lay out…
Mon, 02/22/2021 - 08:38

Maybe someday I'll lay out the UltimateS workbench

Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nice tutorial! But this…
Mon, 02/22/2021 - 16:31

Nice tutorial!

But this method will only work with items from my mod. So for me, it is unfortunately not an option.

Good thing I found a way to integrate the Curios API into my mod.

Still good tutorial!

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so i was looking at curios…
Tue, 02/23/2021 - 14:59

so i was looking at curios api and do you need to actually do liine coding for it?

Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need only to register…
Tue, 02/23/2021 - 18:53

You need only to register slot types for Curios. Then you can use tags with curios namespace to assign types to items. As for functionality(e.g when you wear it) you can use More APIs or I can give my custom plugin for Curios API.

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry if I am just blind,…
Wed, 03/03/2021 - 23:57

Sorry if I am just blind, but how exactly do we: "To add effects to the rings/what you need, just do a variable check". Do we do this in the item's procedure and if so, where?

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Most epic tutorial ever!!!…
Tue, 03/09/2021 - 01:25

Most epic tutorial ever!!! But I with that picture showed everything. :)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also, could you add pictures…
Tue, 03/09/2021 - 14:09

Also, could you add pictures for the other procedures?

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mmm, there aren't any! 
Tue, 03/09/2021 - 14:15

Mmm, there aren't any!