File Manager

Published by Goldorion on Wed, 07/29/2020 - 04:42
Upvotes: 160
Downloads:
3666
Supported MCreator versions
2023.1
2023.2
Tags / plugin type
Procedures
Variables
Plugin forum topic
Icon
About the plugin

File Manager is a plugin adding new procedure blocks allowing you to create and read your files! 

Adding support for JSON files, this plugin allows you to create a config file or files to save data for your mod. This plugin has also more usage, but this is up to you to find them! :)

File Types

  • JSON
  • TXT (simple file reader/writer)
  • ZIP (5.7+)

Important Information

  • This version supports Forge 1.18.2, 1.19.2, 1.19.4 and 1.20.1 and Fabric 1.19.2 and 1.20.1

https://storage.ko-fi.com/cdn/brandasset/kofi_button_blue.png

The 2 following examples require File Manager 5.0 or after.

Create a JSON file

Create a json file

Read a JSON file

Read a JSON file

I made a tutorial covering this here.

Credits/License

Tutorial by NorthWestTrees

Tutorial on sub-JSON objects by NorthWestTrees

Tutorial by Cursed Warrior

Icon by Tobi-Wan#0482

Licensed under the GNU Lesser General Public License, version 2.1  

  • Appropriate credit must be provided to the creators and maintainers of this plugin.
  • Forked versions of this plugin must be distributed under the same license as this with attribution if distributed.
  • Changes must be stated if any modified works are to be distributed.
  • Under no circumstances you can state that the original creator endorses modified works.

Changelog

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

5.7.3

* Added Forge 1.20.1 support

5.7

* Added new ZIP related procedure blocks: ZIP a single file, ZIP multiple files from a list (Require ArrayLists), ZIP a folder and Unzip a file
* Procedure blocks are now grouped depending on their usage
  * Note: This only work if "Smart sorting" is enabled in the preferences
* Added new general file procedure blocks: Get file parent's path, Get file's path, Get temp directory, Is directory and Is file
* Added 2 new categories: File Manager data and File Manager utils
* [#32] Added a "Get current world's name" procedure block (Forge only)
* [Bugfix] Add a new line for TXT files didn't work
* [Bugfix] Path separator block wasn't inside a category
Project members
Lead developer
License
GNU Lesser General Public License version 2.1 (LGPLv2.1)
Plugin downloads
Attachment Size
File Manager 5.7.3100.34 KB 100.34 KB

Comments

you propably should add .json5 support which makes it easier. CurseForge is floaded with mods where no description is present in config files. most of those mods are mcreator mods. .json5 allows to add comments.

you could try to add .toml support.
it's indeed possible with the Blocky system MCreator uses.
Since Players use NBTTags/Capabilities to make configs with your plugin this causes way to much issues on Client/Server side modpacks. i really recommend to add this so CurseForge is not Cursed anymore by MCreator mod which doesn't support anything. i'll probably make a post on request forum .. since there a few things which really needs to be changed.

Is there a way to delete lines from a file? If not, is there a different way to save persistent data in MCreator?

Greetings, I am trying to use it but it gives me this error: https://i.postimg.cc/qRFxM0Mm/0.png, the problem is that it is not referring to the project, the variables are named as local. Can you tell me how I can refer to the project please? I know how to do it manually but I don't want to have to do it manually every time I do a procedure. (Google translator)

https://i.postimg.cc/qRFxM0Mm/0.png
https://i.postimg.cc/T2yZj3m3/1.png
https://i.postimg.cc/15w2T7vx/2.png

I don't mean to bother, but when I attempt to use the "Write text in the file and add a new line" I get an error about an unknown symbol for both the written part and the attempt at doing .newLine();

Any suggestions or fixes I can do to manually fix this temporarily if this is a bug, or am I misunderstanding something?

Hmmm, there isnt a logic operator for the "Get Json Object Property" which limits this plugin in many ways. I tried to make a vanilla styled crafting system but without that feature I couldn't move on.

the block write string to file is messed up.checked the code viewer, says that filebw.write . wtf is that? and when I remove it the procedure gets completely ruined and the code viewer does not show anything after doing any change
.

Hello, I'm not sure if this is a bug or if I'm just too stupid.
In any case, I use the (
MCreator 2022.1) version and I have the problem that no selection is given in the fields (local: file) which unfortunately causes an error every time.
Did I do something wrong?

You cannot get any selection shown in the variables until you add a variable in the right panel of MCreator. Once you add the Local Variable, save the procedure and then look at the Custom Variables and you should see they are there. If you add more than one variable of the same type, once you select the get/set you can click on the down arrow to choose which variable you want to use.

Soo uhh, how does the Copy path block work, a wiki or any documentation would do wonders when working with iti!

Sorry if I'm asking such a stupid question, but is that only for the "players since" because of "local" or is it also possible on a server

for example if you want to have a list of your inventory for each player or something

Why did you remove 1.16.5 when it's still supported by MCreator and is also a very widely used versions?