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
Or better yet, do what Kuraion said and add an "does JSON property exist" block, that would be more helpful
There is already a procedure block to check if a JSON property exists.
Well turns out it is the "does JSON [x] have [x]" block, my bad.
It'd make more sense in my opinion if it was "does JSON [json] have [value]" instead of "does JSON [value] have [json]", but thank u
Like this! all I did was swap %2 and %1 around :]
(this DOES also make your block switch to external inputs for some reason, but you can easily just add
"inputsInline": true,
to the code to fix that)aaand for some reason this isn't working.. why??
Nevermind I solved this on the MCToolKit discord server, which admittedly took me an embarrassingly long time to figure out
How do you make a folder (using the procedures)?
The same you create a file except the name you give is the folder itself and not a file.
File Manager 5.8
https://mcreator.net/plugin/64638/file-creator