Array Lists

Published by Goldorion on
Supported MCreator versions
2022.1
2022.2
2022.3
2023.1
2023.2
2023.4
2024.1
Tags / plugin type
Procedures
Variables
icon
Downloads:
3188
Upvotes: 94
About the plugin

The plugin continues its journey here.

 

You can create, manage and delete lists in your procedures. You need to have a list of your favorite names for pigs, you can make it!

Features

You can have a small preview of blocks or things you can do in the following picture.

(Before 2.4.4)

An example

Important Information

  • This plugin supports Forge 1.19.4 and 1.20.1, NeoForge 1.20.4 and Fabric 1.20.1
  • Icon by Tobi-Wan#0482

Changelog

To see a complete changelog of the plugin, check this file.

2.4.8

* Updated to support MCreator 2024.1 (only)
* Added support for NeoForge 1.20.4
* Removed support for Forge 1.18.2 and 1.19.2 and Fabric 1.19.2
Project members
Lead developer
Plugin forum topic
License
Apache License version 2.0

Plugin downloads
Array Lists - 2.4.8 (MCreator 2024.1) - arraylist.zip Uploaded on: 04/19/2024 - 14:20   File size: 34.55 KB
Array Lists - 2.4.7 (MCreator 2023.4 -) - arraylist.zip Uploaded on: 08/23/2023 - 01:32   File size: 45.2 KB

Comments

Gotcha, it's been a tough nut to crack. Ty for taking the time to respond tho. Currently trying one where the block generates a unique 10 digit ID on placement and then storing that ID to a local player variable

I have a problem: I can't put custom items and blocks into an arraylist, but I can vanilla ones.

So basically I want to check if every block around my block is one of a couple specific blocks, so I created an arraylist, put all the blocks I wanted in it, and checked for them using a for loop.
Everything was working, until I tried to add a non-vanilla block to my arraylist, it gave me an error. It says that CUSTOM:blockname is not a statement.
I added a "is the same block as" statement, and checked what the code looks like if I put my custom block in that, and it was ModName.BLOCKNAME. The vanilla blocks were added to the arraylist in a similar fashion as "Blocks.BLOCKNAME".
Why does this happen? Can you fix it or is the problem with Mcreator?

I wish someone will add Key-Value (map) plugin for never versions like this one

Hello, any clue how could I make the arraylist a map/world variable? or just to make it save in a way. If you have an answer pls send it to me on discord: thevortek

You can with "filemanager" plugin from Goldorion, it has features to create files and json data, in fact i use that to create .json files. At trigger "when player leaves world" create file and save json data, and retrieves that file content at "when player enters world".

another question, actually
1 - do itemstacks in lists save the amount of items in the stack, or just the item?

are you gonna add a feature to search a list for a specific value?
i need to get the index of a specific value in a list to get a value from another list which is at the same index
(sorry for reposting comment but this one has more context and information, so)

Please tell me how to make a multidimensional array. I want to manage multiple sets of 3 numbers and 1 string.