File Manager

Published by Goldorion on
Supported MCreator versions
2024.1
Tags / plugin type
Procedures
Variables
Icon
Downloads:
5527
Upvotes: 188
Plugin forum topic
About the plugin

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 1.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.10

* [#48] Add a new parameter to write lines at the end of TXT files
  * Note: Existing workspaces will get a build error due to the missing parameter. Previous behaviour was FALSE.
* [Bugfix #62] Write Json object caused a build error due to a missing import (again)

5.9.1

* [Bugfix #61] Some procedure blocks could cause build errors due to a missing import
* Added Persian language support

5.9

* Updated to MCreator 2024.1.15713
* Added support for NeoForge 1.20.4
Project members
Lead developer
License
GNU Lesser General Public License version 2.1 (LGPLv2.1)

Plugin downloads
File Manager 5.10 - file-manager_1.zipUploaded on: 04/23/2024 - 16:43   File size: 81.13 KB

Comments

Hello. In the example you can see how to write to a file and then read from it. I don't understand how to only read vfrom it. Where do I say to the code where to look for the file to read?

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, Like I want to access the data if the value is true or false in another procedure but I can't since it's a local one. I followed your picture guide for gson

can you plz post an example of how to only read from a file. thank you.

I was wondering if you could take a look at what I wrote on this page: https://mcreator.net/forum/64639/file-creator-plugin?page=3%2C0

Is there a way to create a folder through the procedures in this plugin or do I have to make a custom code element?

I figured it out, thank you. Although I am wondering if it is possible to create a "get world save folder" function. I have been looking into it but I can't find anything on 1.16.x or even 1.15.x just outdated snippets of code that no longer work.

Is there version for 2020.5? I searched for it on GitHub but found nothing :/ and it would be cool to have it on version supporting 1.14.4 and being (in my feel) more stable than 2021.1.

could you add a "check if file exist" blok? So i can create a config that does not change, but only gets created when i delete the actual config.json file?

When I use 'Get directory' It returns a '.'
e.g. [Render thread/INFO] [STDOUT/]: [net.mcreator.aliveagain.procedures.LoadConfigProcedure:executeProcedure:36 .
(I'm using print)
or does this only work when exported?