[PLUGIN] HashMap's

Started by Pucky on

Topic category: Plugins and third-party tools

Last seen on 08:34, 30. Jul 2020
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
Last seen on 08:34, 30. Jul 2020
Joined Apr 2020
Points:

User statistics:

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

@Goldorion I hope that serveral plugins will follow :P

@crispy_chips1234 Thank you :)

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.

Last seen on 13:27, 27. Feb 2023
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?

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

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

Nice!

Last seen on 08:34, 30. Jul 2020
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.

Last seen on 08:34, 30. Jul 2020
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)

Last seen on 08:34, 30. Jul 2020
Joined Apr 2020
Points:

User statistics:

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

@DiamondGamin & @Klemen Thank :)

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

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

can you also make a

list

plugin?

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

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

that's typed weird lol

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.

Last seen on 17:49, 25. Mar 2021
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?