[PLUGIN] HashMap's

Started by Pucky on

Topic category: Plugins and third-party tools

Active 4 years ago
Joined Apr 2020
Points:
622

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
[PLUGIN] HashMap's
Thu, 05/28/2020 - 15:35 (edited)

A simple (and not perfect) plugin for MCreator 1.15.2 that add procedures blocks to manipulate HashMap.

It allow you to store more complex data and/or dynamic named variables. (Useful for keeping trace of several in game block, for example)

How to use :

  1. Place the create block
  2. Store a variable in the HashMap by naming it
  3. Export the HashMap as text to another string variable (Local, global...)
  4. Import your HashMap in another procedure (or in the same if you find it useful)
  5. Access your named data
  6. Enjoy :)

The HashMap support the 3 type of data (Logic, Number and Text)

Download :

https://drive.google.com/file/d/1riM-byy7KS22wPlFP-fO_mq_ZwP0M_Yf/view?usp=sharing

 

Example

 

Changelog :

  • Optimized
  • Can now iterate over HashMap index
  • Corrected st*pid error (agaiiiin²)
  • Added multiple named HashMap
  • Added "Is HashMap index exist"
  • Init block not needed anymore
  • Updated for MCreator 2020.3.18613 (Regenerate your project if you get compilation error)
Edited by Pucky on Thu, 05/28/2020 - 15:35
Active 4 days ago
Joined Aug 2016
Points:
3303

User statistics:

  • Modifications: 9
  • Forum topics: 63
  • Wiki pages: 20
  • MCreator plugins: 11
  • Comments: 2931
Nice! We are not anymore…
Tue, 04/28/2020 - 12:49

Nice! We are not anymore alone with SomeoneElse to make plugins. ^^

Active 4 years ago
Joined Apr 2020
Points:
622

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
@Goldorion I hope that…
Tue, 04/28/2020 - 13:41

@Goldorion I hope that serveral plugins will follow :P

@crispy_chips1234 Thank you :)

Active 4 days ago
Joined Aug 2016
Points:
3303

User statistics:

  • Modifications: 9
  • Forum topics: 63
  • Wiki pages: 20
  • MCreator plugins: 11
  • Comments: 2931
I’m making a big plugin (a…
Tue, 04/28/2020 - 13:56

I’m making a big plugin (a Fabric Generator), so for me, I don’t think I will fully release a plugin before some times. I will however publish development versions, and I hope I will be able to publish the first version soon.

Active 2 years ago
Joined May 2018
Points:
722

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 40
  What is HashMap?
Tue, 04/28/2020 - 15:52

 

What is HashMap?

Active 2 years ago
Joined Nov 2018
Points:
972

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 572
Nice!
Tue, 04/28/2020 - 16:31

Nice!

Active 4 years ago
Joined Apr 2020
Points:
622

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
An HashMap is a variable…
Tue, 04/28/2020 - 16:39

An HashMap is a variable that can store other variable with an associated name. It's like a local variable but with a name that the procedure can choose (/change).

Example :

Without this plugin you can't make a different variable for all player, but with an HashMap you can.

Active 4 years ago
Joined Apr 2020
Points:
622

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
(Except custom code of…
Tue, 04/28/2020 - 16:41

(Except custom code of course)

Active 4 years ago
Joined Apr 2020
Points:
622

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
@DiamondGamin & @Klemen…
Tue, 04/28/2020 - 17:52

@DiamondGamin & @Klemen Thank :)

Active 4 months ago
Joined Jun 2019
Points:
2787

User statistics:

  • Modifications: 4
  • Forum topics: 48
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3716
can you also make a …
Wed, 04/29/2020 - 00:39

can you also make a

list

plugin?

Active 4 months ago
Joined Jun 2019
Points:
2787

User statistics:

  • Modifications: 4
  • Forum topics: 48
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3716
that's typed weird lol
Wed, 04/29/2020 - 00:39

that's typed weird lol

Active 4 days ago
Joined Aug 2016
Points:
3303

User statistics:

  • Modifications: 9
  • Forum topics: 63
  • Wiki pages: 20
  • MCreator plugins: 11
  • Comments: 2931
Maybe more inside the same…
Wed, 04/29/2020 - 01:02

Maybe more inside the same plugin. No? If I’m right, it’s almost the same thing than HasMap and Arraylist.

Active 4 years ago
Joined Jun 2016
Points:
3744

User statistics:

  • Modifications: 10
  • Forum topics: 39
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5490
This is exactly what I…
Wed, 04/29/2020 - 11:02

This is exactly what I needed for many things! :D

Will it support other versions too?