Started by
Goldorion
on
Topic category: Plugins and third-party tools
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
The 2 following examples require File Manager 5.0 or after.
Create a JSON file
Read a JSON file
I made a tutorial covering this here.
Credits/License
Tutorial on sub-JSON objects by NorthWestTrees
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
Can you type a tutorial on this as im getting errors while building
Nvm figured it out. Question though, when you check create the config does it override the config each time you call that method?
can we write this to config directory by adding \\config to the "write to" part instead of putting game directory?
nvm i figured out how! Typing a tutorial right now
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.
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 Manager allowing to create fully customizable JSON files has been released!
Changelog:
https://mcreator.net/plugin/64638/file-creator
https://github.com/Goldorion/File-Manager-MCreator
This appears to crash on servers. Any help?
Any details?
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!
https://mcreator.net/plugin/64638/file-creator
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
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.
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
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