File Manager [Plugin - V.5.2]

Started by Goldorion on Wed, 07/29/2020 - 04:49

Topic category: Plugins and third-party tools

File Manager [Plugin - V.5.2]
Sun, 03/13/2022 - 21:47 (edited)

Plugin's page: https://mcreator.net/plugin/64638/file-creator

 

  

File Manager is a plugin adding new procedure blocks allowing you to create and read your files! Adding support for JSON files, this plugin gives you the possibility to create a config file or files to save data for your mod. This plugin has also more usages, but this is to you to find them! :)

File Types

  • JSON
  • TXT (simple file reader/writer)

Important Information

  • JSON
  • TXT files - Basic file reader/writer

 

The 2 following examples require File Manager 5.0.

Create a JSON file

Create a json file

Read a JSON file

Read a JSON file

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

Changelog

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

5.2

* Added support for Fabric 1.17.1 and Forge 1.18.2
* Removed support for Fabric 1.16.5

5.1

* Added a new copy URl to file procedure block
  * Note: It can be used to download online files.
* Removed some old tool tips
* Added French translations
* [Repository] Added Crowdin support for the externalization (Read https://github.com/Goldorion/File-Manager-MCreator/issues/24)

5.0.1

* [Bugfix #22] Getter used for the File setter could not be used with Forge and Fabric 1.16.5

5.0

I would like to thank NorthWestTrees for all the feedback he gives me in order to improve the plugin.

Note: This version breaks workspaces using a previous update.
* Updated to MCreator 2021.3.51219
* Removed support for Forge 1.15.2
* Added support for Forge 1.17.1
* Added a new JsonObject variable type
* Removed the "Create sub JSON object" block
* Added "Add JSON object to Json Object" and "Get Json Object property" blocks
* Changed the old Json Object fields to the new JsonObject variable list
* Procedure blocks requiring a file variable now use a normal variable list
* Created file block has been changed for a block giving values to the setter block variable
* Added a new create file procedure block
* Changed the new line checkbox to an input boolean value in the "Write TXT line" block

 

Edited by Goldorion on Sun, 03/13/2022 - 21:47
Last seen on 17:19, 3. Apr 2022
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Wow! This is incredible! I…
Wed, 07/29/2020 - 05:00

Wow! This is incredible! I could see this coming in handy for config files

Wow! This is incredible! I…
Wed, 07/29/2020 - 05:07

Wow! This is incredible! I could see this coming in handy for config files

You can use it to create your own basic config file 9with a TXT file for example), but a real config file has to be coded of another way. This plugin use the File class of Java and not the Config thing of Forge. Anyways, thank you ^^

1.1 Removed support for the…
Sun, 08/09/2020 - 21:15

1.1

  • Removed support for the Fabric1.15.2 generator
  • Added a new procedure block
  • The procedure block to create a folder now needs a variable name.
  • The code of Get the text of the latest read line of *variable* is now in parentheses.
I just released a new…
Thu, 08/13/2020 - 17:11

I just released a new version of File Creator.
File Creator 2.0.0:
This new version is incompatible with the previous versions.

  • Added support for Fabric and Spigot 1.16.2
  • Removed support for Fabric and Spigot 1.16.1
  • Changed machine name files
  • Changed the colour of the blocks and the category
  • Fixed the field input of the procedure block to create a folder

https://mcreator.net/plugin/64638/file-creator
https://github.com/Goldorion/MCreatorPluginFiles/releases/tag/2.0.0

Last seen on 16:48, 17. Dec 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Very nice! I can see this…
Thu, 08/13/2020 - 17:14

Very nice! I can see this come in handy for more advanced functions and configs.

Last seen on 09:24, 5. May 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This is a great plugin. Very…
Wed, 08/26/2020 - 11:10

This is a great plugin. Very good job. I am testing this in 1.12.2 and works really smooth so far. I have made a basic config kinda file so the client loads the global settings from the file. Is there a workaround atm to let the client know if there is a file with config and if not then to create one? Right now the way i set it is not to create the file by default (getting errors in console that procedure couldn't find the file) and force the client to create the file once the player try to change the settings with my in-game guide book.

The previous setting i had was to create the file on world load but like this i couldn't load the settings from the file. I was keep recreating the file from template.

But yet anything i tried so far (except this) it worked like a charm in general so yea. gg for this great plugin. I am gonna implement this in my mods for sure.

Thank you a lot! I'm glad to…
Wed, 08/26/2020 - 13:16

Thank you a lot! I'm glad to see it's useful for some users.

About your question, I'm not sure to understand what you want. Do you mean, something to check if the file exists and if not, create the file? If you are talking about that or something similar, I already make this before creating the file, but I didn't test with Forge 1.12.2 (even if it should work the same way as it's a Java feature and not a Forge feature).

Last seen on 09:24, 5. May 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yea that's exactly what i…
Wed, 08/26/2020 - 14:45

Yea that's exactly what i want to do. If there is already a file with this name, to skip creation and start reading. I only tested this in 1.12.2.

By now, i have already found a workaround kinda. I added an else {} code in the procedure when the world loads. Exactly after the  if (!file.exists()) {} and made it load a different procedure inside the else statement, that only reads the file. If that makes sense because i don't know anything about java and forge. But it worked and doesn't overwrite my file and my pc didn't explode so all good.
 
For my needs, this plugin is extremely useful. I can't thank you enough for this plugin. 

I think what you made for…
Wed, 08/26/2020 - 15:19

I think what you made for the file, but if it's really that, I can't make it because I can't make something similar than the if else block. I'm sorry for that because MCreator has a bad support of Blockly currently. However, I tried many times, and when you make your procedure properly, it shouldn't overwrite the file.

Last seen on 23:47, 8. Sep 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
So I can finally make a…
Sat, 08/29/2020 - 20:07

So I can finally make a config file?????
 

Last seen on 23:47, 8. Sep 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If I can I will try to add a…
Sat, 08/29/2020 - 20:13

If I can I will try to add a custom kind of lucky block (it will be way different than the original lucky blocks mod)

 

So I can finally make a…
Sat, 08/29/2020 - 20:34

So I can finally make a config file?????

Yeah, you can make basic config files with this plugin.