File Manager [Plugin - 5.8]

Started by Goldorion on

Topic category: Plugins and third-party tools

File Manager [Plugin - 5.8]
Thu, 02/08/2024 - 02:49 (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! 

File Types

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

Important Information

  • This version supports Forge 1.19.4 and 1.20.1 and Fabric .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.8

* Removed support for Forge 1.18.2, 1.19.2
* Removed support for Fabric 1.19.2
* Re-organized File Manager's categories to use the new parent/children category system
* [#51] Add a Remove JSON property
* [#54] Add Get client's directory
* [#58] Add Get JSON property name at index
* [Bugfix #50] Is JSON object empty caused a build error
* [Bugfix #52] Copy url to file didn't work correctly
Edited by Goldorion on Thu, 02/08/2024 - 02:49
Last seen on 07:40, 14. Apr 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you type a tutorial on…
Mon, 03/22/2021 - 00:13

Can you type a tutorial on this as im getting errors while building 

Last seen on 07:40, 14. Apr 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nvm figured it out. Question…
Mon, 03/22/2021 - 00:20

Nvm figured it out. Question though, when you check create the config does it override the config each time you call that method? 

Last seen on 07:40, 14. Apr 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can we write this to config…
Mon, 03/22/2021 - 00:23

can we write this to config directory by adding \\config to the "write to" part instead of putting game directory? 

Last seen on 07:40, 14. Apr 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nvm i figured out how!…
Mon, 03/22/2021 - 00:39

nvm i figured out how! Typing a tutorial right now 

Last seen on 08:11, 13. Apr 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in "Write ... in the file …
Wed, 03/24/2021 - 20:28

in "Write ... in the file ... add as a new line ..." you cant put "get (variable)" as a type "number". Repair that cuz i need to make system when someone pressed the button subtracts a number from a variable and saves it into a file.

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you use this for…
Sat, 04/03/2021 - 19:06

can you use this for entities too? (java files)? i want to set a config file for my animals mod.

The new update of File…
Sun, 04/25/2021 - 18:38

The new update of File Manager allowing to create fully customizable JSON files has been released!
Changelog:

* 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

https://mcreator.net/plugin/64638/file-creator
https://github.com/Goldorion/File-Manager-MCreator

Last seen on 07:40, 14. Apr 2024
Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This appears to crash on…
Wed, 05/19/2021 - 19:33

This appears to crash on servers. Any help? 

File Manager 4.0 for the…
Fri, 07/02/2021 - 02:34

File Manager 4.0 for the latest MCreator's snapshot is now available. This new major update now supports the new variable system and adds a new expected procedure block. Check the changelog!

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

https://mcreator.net/plugin/64638/file-creator

Last seen on 02:40, 4. Jan 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank You! I wanted…
Sat, 07/03/2021 - 03:37

Thank You! I wanted something to check if the JSON file was already created so it wasn't overwriting my config file. Now I can charge steadily forth with my Land Claiming mod!

 

Can I ask for support for the Array Lists plugin? I am wanting to allow people to customize the item-based currency (by default; gold nugget is $1, gold ingot is $9, and gold block is $81) and i want to have this be an array I can call from the JSON

Can I ask for support for…
Sat, 07/03/2021 - 04:05

Can I ask for support for the Array Lists plugin?

I wanted to add support for my Arraylists plugin, but it's a bit harder than supporting numbers, String and logic values. For array lists, GSON (the library used) doesn't return an ArrayList, but a JSONArray, that isn't compatible with ArrayList. I need to find a way to convert them to an ArrayList simply in keeping in mind, I also need to make it compatible with lists containing several variable types (as I will have a lot of (beginner) users reporting me it doesn't work). Anyways, it's still in my head, but I need more time to figure out the best-generated code.

Last seen on 02:40, 4. Jan 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Understandable. Maybe…
Sun, 07/04/2021 - 02:49

Understandable. Maybe holding it as a string then parsing it and putting the parsed pieces into an Array List array could work?

 

Aka converting a String to an Array

 

Already technically possible but tedious to do with Mcreator

Last seen on 01:35, 18. Apr 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have 2 issues, I can't…
Thu, 09/16/2021 - 07:05

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