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
Thank you!! Now I will quickly try to figure out how it works :)
I was trying to use your plugin to create a config file, but while compiling Mcreator give me error like "found catch without try" and other "grammar" errors.
I'm new in Mcreator and minecraft modding (just started 2 days ago) and i have just basic C knowledge. the MCreator blocky procedure thingy says there is no error (like forgotten variables and stuff), is something wrong in the plugin or in my procedure?
Error: https://pastebin.com/CBZjL8LU
the file that try to compile: https://pastebin.com/Lbz4n7t2
sorry to post here and to post links. i tought can help find the errors
I am making a mod with this plugin but i have some errors of compilation when i try to write in the file in the 2020.5 release with "start to write in the file [arg]", "write [arg1] in the file variable [arg2] and go to the next line" and "write [arg1] in the file variable [arg2] and stop writing".
Is there a way to make the config file create in the config folder
Goldorion, would you know if you will ever add compatibility with the MCreator Files plugin in order to create the configuration?
The configuration of Forge doesn't work this way. This plugin is pretty bad because I never tested it with the real Minecraft launcher, so I'm pretty sure it doesn't work, and only work for the environment test.
The first good version of the plugin is available. You can now make your own configuration files!
https://mcreator.net/plugin/64638/file-creator
can this pluglin create a file for every instance of an iten?
What do you mean? Do you want to create a JSON file for every single item of Minecraft? If yes, if you are able to get all items of the game, yes it's possible.
Can you add a way to get the current world save directory if possible please? And if you know any code that can do it could you plz share it because I have spent the whole day searching for a way to get it and not been successful...
You can save the file in the game directory + \config
Should work I think
my plugin won't work it says its loaded but I get none of the procedure blocks need help
fixed it lol