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

You can add "File with name "Name" in directory "directory" exist?"
this would be useful for mod to check if file already exists if not then make one :)

Hello Goldorion, if this mod is working on a server in the first place, is there a way to only write on files located on servers ? (not on client side)

It works fine, when using the Mcreator 2020.5 Server/Client for test, but on my server (forge 1.15.2-31.2.47) i'll get:

←[m←[1;31m[17:02:07] [Server thread/FATAL] [ne.mi.fm.lo.RuntimeDistCleaner/DISTX
FORM]: Attempted to load class net/minecraft/client/Minecraft for invalid dist D
EDICATED_SERVER
←[m

i guess, i'll need a different version of 1.15.2?

When I use 'Get directory' It returns a '.'
e.g. [Render thread/INFO] [STDOUT/]: [net.mcreator.aliveagain.procedures.LoadConfigProcedure:executeProcedure:36 .
(I'm using print)
or does this only work when exported?

It also works with the environment test. However, there is a problem when using it with a server from what some users said. The server bug will be fixed in the next update. However, I can’t see the problem as you cut the console log.

I worked exported, I'm currently forcing the directory path to the test environment
By the way, I'm using the client test and haven't launched a server yet
By, By the way, It's a great plugin

could you add a "check if file exist" blok? So i can create a config that does not change, but only gets created when i delete the actual config.json file?