File Creator [Plugin]

Started by Goldorion on Wed, 07/29/2020 - 04:49

Topic category: Plugins and third-party tools

Last seen on 02:08, 23. Oct 2020
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
File Creator [Plugin]
Thu, 08/13/2020 - 17:12 (edited)

This MCreator plugin allows you to create files for what you want. I mainly created this plugin for one of my mods, so even if I tried to make it for everyone, some things can't be as you wish. With better support of Blockly, the plugin would be better, but currently, we have this. :)

Features

  • Create your own files and folders

write

  • Read files

read

Important Information

Credits/License

Dev - Goldorion

  • Licensed under the GNU Lesser General Public License, version 2.1  
  • Appropriate credit must be provided to the creators and maintainers of this software.
  • Forked versions of this software 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 can you state that modified works are endorsed by the original creators.

Changelogs

2.0

This new version is incompatible with the previous versions.

  • Added support for Fabric and Spigot 1.16.2
  • Removed support for Fabric and Spigot 1.16.1
  • Changed machine name files
  • Changed the colour of the blocks and the category
  • Fixed the field input of the procedure block to create a folder

1.1

  • Removed support for the Fabric1.15.2 generator
  • Added a new procedure block
  • The procedure block to create a folder now needs a variable name.
  • The code of Get the text of the latest read line of *variable* is now in parentheses.

1.0

Initial release

 

Edited by Goldorion on Thu, 08/13/2020 - 17:12
Last seen on 22:15, 22. Oct 2020
Joined May 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Wow! This is incredible! I…
Wed, 07/29/2020 - 05:00

Wow! This is incredible! I could see this coming in handy for config files

Last seen on 02:08, 23. Oct 2020
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Wow! This is incredible! I…
Wed, 07/29/2020 - 05:07

Wow! This is incredible! I could see this coming in handy for config files

You can use it to create your own basic config file 9with a TXT file for example), but a real config file has to be coded of another way. This plugin use the File class of Java and not the Config thing of Forge. Anyways, thank you ^^

Last seen on 02:08, 23. Oct 2020
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
1.1 Removed support for the…
Sun, 08/09/2020 - 21:15

1.1

  • Removed support for the Fabric1.15.2 generator
  • Added a new procedure block
  • The procedure block to create a folder now needs a variable name.
  • The code of Get the text of the latest read line of *variable* is now in parentheses.
Last seen on 02:08, 23. Oct 2020
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I just released a new…
Thu, 08/13/2020 - 17:11

I just released a new version of File Creator.
File Creator 2.0.0:
This new version is incompatible with the previous versions.

  • Added support for Fabric and Spigot 1.16.2
  • Removed support for Fabric and Spigot 1.16.1
  • Changed machine name files
  • Changed the colour of the blocks and the category
  • Fixed the field input of the procedure block to create a folder

https://mcreator.net/plugin/64638/file-creator
https://github.com/Goldorion/MCreatorPluginFiles/releases/tag/2.0.0

Last seen on 09:54, 8. Oct 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Very nice! I can see this…
Thu, 08/13/2020 - 17:14

Very nice! I can see this come in handy for more advanced functions and configs.

Last seen on 07:37, 16. Sep 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This is a great plugin. Very…
Wed, 08/26/2020 - 11:10

This is a great plugin. Very good job. I am testing this in 1.12.2 and works really smooth so far. I have made a basic config kinda file so the client loads the global settings from the file. Is there a workaround atm to let the client know if there is a file with config and if not then to create one? Right now the way i set it is not to create the file by default (getting errors in console that procedure couldn't find the file) and force the client to create the file once the player try to change the settings with my in-game guide book.

The previous setting i had was to create the file on world load but like this i couldn't load the settings from the file. I was keep recreating the file from template.

But yet anything i tried so far (except this) it worked like a charm in general so yea. gg for this great plugin. I am gonna implement this in my mods for sure.

Last seen on 02:08, 23. Oct 2020
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you a lot! I'm glad to…
Wed, 08/26/2020 - 13:16

Thank you a lot! I'm glad to see it's useful for some users.

About your question, I'm not sure to understand what you want. Do you mean, something to check if the file exists and if not, create the file? If you are talking about that or something similar, I already make this before creating the file, but I didn't test with Forge 1.12.2 (even if it should work the same way as it's a Java feature and not a Forge feature).

Last seen on 07:37, 16. Sep 2020
Joined Aug 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yea that's exactly what i…
Wed, 08/26/2020 - 14:45

Yea that's exactly what i want to do. If there is already a file with this name, to skip creation and start reading. I only tested this in 1.12.2.

By now, i have already found a workaround kinda. I added an else {} code in the procedure when the world loads. Exactly after the  if (!file.exists()) {} and made it load a different procedure inside the else statement, that only reads the file. If that makes sense because i don't know anything about java and forge. But it worked and doesn't overwrite my file and my pc didn't explode so all good.
 
For my needs, this plugin is extremely useful. I can't thank you enough for this plugin. 

Last seen on 02:08, 23. Oct 2020
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I think what you made for…
Wed, 08/26/2020 - 15:19

I think what you made for the file, but if it's really that, I can't make it because I can't make something similar than the if else block. I'm sorry for that because MCreator has a bad support of Blockly currently. However, I tried many times, and when you make your procedure properly, it shouldn't overwrite the file.

Last seen on 23:01, 22. Oct 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
So I can finally make a…
Sat, 08/29/2020 - 20:07

So I can finally make a config file?????
 

Last seen on 23:01, 22. Oct 2020
Joined Mar 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If I can I will try to add a…
Sat, 08/29/2020 - 20:13

If I can I will try to add a custom kind of lucky block (it will be way different than the original lucky blocks mod)

 

Last seen on 02:08, 23. Oct 2020
Joined Aug 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
So I can finally make a…
Sat, 08/29/2020 - 20:34

So I can finally make a config file?????

Yeah, you can make basic config files with this plugin.