[PLUGIN] HashMap's

Started by Pucky on

Topic category: Plugins and third-party tools

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[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
Joined Aug 2016
Points:

User statistics:

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

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

Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Joined May 2018
Points:

User statistics:

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

 

What is HashMap?

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Joined Apr 2020
Points:

User statistics:

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

(Except custom code of course)

Joined Aug 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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?