[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 Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@crispy_chips1234 A list ?…
Wed, 04/29/2020 - 15:22

@crispy_chips1234 A list ? You mean an Array ? If so then I decided to not implement Array cause an HashMap can already do the same thing but with more possibility.

@Goldorion A new version is comming with "loop over all index" and some optimization :)

@RaolTheBest It only use basic Java functionality so in theory it can support any version, but you can tell me an MCreator version to support if you want (of course this MCreator version need to support plugins)

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
New version released
Wed, 04/29/2020 - 19:03

New version released

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I meant for other minecraft…
Sat, 05/02/2020 - 00:16

I meant for other minecraft versions, but I just realised I asked a stupid question since 1.12.2 support will be dropped in the next update... XD

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is a wonderful plugin!…
Mon, 08/24/2020 - 22:33

This is a wonderful plugin! I plan to use it quite a bit!