File Manager

Published by Goldorion on
Supported MCreator versions
2024.1
Tags / plugin type
Procedures
Variables
Icon
Downloads:
6937
Upvotes: 202
About the plugin

The plugin continues its journey here.

 

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
Plugin forum topic
License
GNU Lesser General Public License version 2.1 (LGPLv2.1)

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

Comments

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?

It also works with the environment test. However, there is a problem when using it with a server from what some users said. The server bug will be fixed in the next update. However, I can’t see the problem as you cut the console log.

I worked exported, I'm currently forcing the directory path to the test environment
By the way, I'm using the client test and haven't launched a server yet
By, By the way, It's a great plugin

It works fine, when using the Mcreator 2020.5 Server/Client for test, but on my server (forge 1.15.2-31.2.47) i'll get:

←[m←[1;31m[17:02:07] [Server thread/FATAL] [ne.mi.fm.lo.RuntimeDistCleaner/DISTX
FORM]: Attempted to load class net/minecraft/client/Minecraft for invalid dist D
EDICATED_SERVER
←[m

i guess, i'll need a different version of 1.15.2?

Hello Goldorion, if this mod is working on a server in the first place, is there a way to only write on files located on servers ? (not on client side)

You can add "File with name "Name" in directory "directory" exist?"
this would be useful for mod to check if file already exists if not then make one :)