Started by
Pucky
on
Topic category: Plugins and third-party tools
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 :
- Place the create block
- Store a variable in the HashMap by naming it
- Export the HashMap as text to another string variable (Local, global...)
- Import your HashMap in another procedure (or in the same if you find it useful)
- Access your named data
- 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
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
@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)
New version released
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
Plugins can now be posted as a separate page on our Explore plugins page https://mcreator.net/plugins. Consider posting your plugin there for more recognition :)
This is a wonderful plugin! I plan to use it quite a bit!