File Manager

Published by Goldorion on Wed, 07/29/2020 - 04:42
Upvotes: 64
Supported MCreator versions
2021.1
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

  • TXT Files:

txt

In this example, each time a block is broken a new file named file.txt will be created at the current game's directory. Then, the procedure will read this same file and send a message to the player each line of the file. JSON Files:

  • JSON Files

json

This image shows an example of a small JSON file containing another JSON object with values and a value. The first (main) JSON object (shown by the "Write following values as a JSON file" block) contains everything the JSON file will have. Then, the sub JSON object will be created containing normal values. When the JSON object has been added into the file, the procedure will get the field named number into the JSON object subgson shown here by gson,subgson. To get a sub JSON object. you have to write every JSON objects in the order of the procedure and separte them with a comma (No space).

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

**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
Attachment Size
File Manager 4.023.72 KB 23.72 KB
File Manager 3.122.18 KB 22.18 KB

Comments

This seems really useful but it's unfortunately won't work for any recent versions. Could you make a version for 2021.1 EAP (03117)?

Very cool!! But is there a way to use itemstack in a json file?

Can anyone release a video explaining how to possibly make a config file with this? I am trying to make one but I seem to be failing at it. Thank you

I saw the second photo. I just don't understand how it works. I'm trying to make a config to where I can disable or enable my ores from spawning into the world kind of like how other mods work. So I can make them better compatible with each other.

can you post a video tutorial on this plugin please, i am create a config to my mod to save blocks rank