Direct access to the MCreator element .jsons

Started by SnailsAttack on

Topic category: Feature requests and ideas for MCreator

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Direct access to the MCreator element .jsons
Sat, 01/25/2025 - 12:20 (edited)

Quite a few of MCreator's limitations can be resolved by directly editing the workspace element .mod.json files, but this is inconvenient for a few reasons:

  1. There's no shortcut to view or edit the element files from within MCreator.
  2. Although you could alternatively edit the .java code generated from the element .mod.jsons, any changes you make are lost unless you lock the element.
  3. Changes that are made to the element .mod.jsons externally via text editor are not updated live; you have to close and reopen MCreator to actually view and save any edits.

Editing the element .mod.jsons of GUI menus is currently the only way to change the size of buttons and text fields.

   

Mockup for how a shortcut to the workspace element .mod.json files would look (the lowermost option with the green star next to it).

 

I think that the addition of a way to view and edit the element .mod.json files directly from within MCreator using the builtin code editor would be a very useful feature to consider implementing.

Edited by SnailsAttack on Sat, 01/25/2025 - 12:20
Those files are not meant to…
Sat, 01/25/2025 - 16:27

Those files are not meant to be edited by hand. Everything that can and is safe to be changed can be changed in UI. Editing those files by hand risks breaking MCreator in very chaotic ways

Editing the element .mod.jsons of GUI menus is currently the only way to change the size of buttons and text fields.

You can set size by right-clicking while dragging the component using move tool