File Manager

Published by Goldorion on Wed, 07/29/2020 - 04:42
Upvotes: 80
Supported MCreator versions
2021.2
Tags / plugin type
Procedures
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, it gives you the possibility to create a config file or files to save data for your mod. This plugin has also more usage, but this it to you to find them! :)

File Types

  • JSON
  • TXT (simple file reader/writer)

Important Information

  • This plugin supports Forge 1.15.2, Forge 1.16.5 and Fabric 1.16.5
  • Versions:
    • Version 3.1: You need to use on the full release of the 2021.1.
    • Version 4.0: You need to use MCreator EAP 2021.2.26215.

Credits/License

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 modified works are endorsed by the original creator.

Changelog

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

4.0.2

Note: The ZIP file has been updated to the right version. Sorry for the mistake.

* [Bugfix #16] Write txt file and Write line procedure blocks didn't generate their code

4.0.1

* [Bugfix #9] Writing to global files resulted in a build error

Thank you @sperly for the bug fix!

4.0

**This update will cause build errors in your workspace. You now have to use a variable as usually.**
* Updated to MCreator 2021.2.26215
* Changed a bit the block color
* Added a new `File` variable
  * Local and Global session
* Updated procedure blocks to use the new variable type
  * Use the getter block to use your `File` variable
  * Current procedures need to be updated to use this new system. 
    Build errors will appear the first time you open your workspace.
* Added a new logic procedure block: Does file exists

3.1

* Updated to MCreator 2021.1.16710
* Updated to Forge & Fabric 1.16.5
* Removed support for Forge 1.14.4
* Added a new block to create sub JSON objects
* Updated current JSON property getters to read sub JSON objects
* JSON related blocks now require a JSON object variable name
* [Bugfix] Get game directory could not be used on Forge servers
 // The block still does not with Fabric servers

 

Project members
Lead developer
License
GNU Lesser General Public License version 2.1 (LGPLv2.1)
Plugin downloads

Comments

Is there version for 2020.5? I searched for it on GitHub but found nothing :/ and it would be cool to have it on version supporting 1.14.4 and being (in my feel) more stable than 2021.1.

Is there a way to create a folder through the procedures in this plugin or do I have to make a custom code element?

I figured it out, thank you. Although I am wondering if it is possible to create a "get world save folder" function. I have been looking into it but I can't find anything on 1.16.x or even 1.15.x just outdated snippets of code that no longer work.

I was wondering if you could take a look at what I wrote on this page: https://mcreator.net/forum/64639/file-creator-plugin?page=3%2C0

can you plz post an example of how to only read from a file. thank you.

I have 2 issues, I can't edit any boolean subgson's since they keep being overwritten and I can't access them outside the main prodecure since its a Local Variable and whenever I try to use a Public one it just gives me errors, Like I want to access the data if the value is true or false in another procedure but I can't since it's a local one. I followed your picture guide for gson

Hello. In the example you can see how to write to a file and then read from it. I don't understand how to only read vfrom it. Where do I say to the code where to look for the file to read?

Hi Goldorion - thank you very much for creating this long desired plugin!!! I have several use cases that I want to use this for and at looks like we're on track to getting there soon. Nice work.

Heya, I'm using a Gobal Variable and II have the "not Does Exist" if statement in the beginning but it keeps being reset like it's rewriting the config on every startup (I'm using Mod loaded in the game as my event trigger)