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:
2170
Upvotes: 85
Plugin forum topic
About the plugin

You can create, manage and delete lists into 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
License
Apache License version 2.0

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

Comments

Can you even read values in nested lists? I have a list storing lists storing numbers and if i try to get values multiple layers deep it just gives me the error: Cannot find symbol and the line causing it is: TmMod.LOGGER.info(targetMovement.get(0)<Error arrow is HERE>.get(0) instanceof ArrayList _al ? _al : new ArrayList<>());

Is there anyway to remove a specific value from an array? Instead of removing at index, I want to remove [text string] from the array.

hiya! is there a possible way of finding the index number of an object? tried finding out but couldnt find it

Im kind of worred that if i put any array on an entity that what happens to one happens to all, because its localized, again im still confused on localized and nbt

Is there a way to use this in conjunction to store different player UUIDs for different instances of the same block kind? Basically I want to make a block that spawns an item when right clicked for a player, then is locked out for that player on that block. Basically Player A clicks Block A, and can only do it once, but Player A can repeat the process with Block B no trouble and Player B can use Block A no problem. IDK if that example was at all intuitive but you seem to be one of the more knowledgeable users on the platform

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