Fabric Essentials aims to integrate as many new features into the fabric generator as possible, making it a viable choice for making complex and large-scale mods. Expanded functionality is implemented through the introduction of a large array of procedures, global triggers and modification of existing code templates.
Currently includes:
- 23 Global Triggers (will be reduced once some are merged in the fabric plugin)
- 30 Procedure blocks
- Swings item/tool/ranged item procedures
- Block NBT tags
- Entity NBT tags
- Player persistent NBTs (Same as forge player persistent player variables)
- And much more in the future!
Existing workspaces:
If you plan on changing your fabric workspace's mod ID while the plugin is loaded, you will first need to convert your workspace to forge. This is because some of the files the plugin modifies do not update, and will therefore cause a sizeable amount of features to cause crashes after the mod is exported. The same is the case for any existing workspace as it will not have the code the plugin applies by default unless it was made in the most recent version of the fabric generator that implements that code already.
Requirements:
Before you start using the plugin's features, you will need to enable fabric essentials in workspace settings -> external APIs, as this plugin uses a library to gain access to most of its features. Always make sure you are using the latest version of the generator as some features are sometimes moved over from this plugin to it.
This API is included as a part of your mod after exporting, so it will not be required for it to work outside MCreator.
Many thanks to Kleiders for helping me develop this project and to Goldorion for making this all possible by developing the Fabric Generator.
Side note: When getting global variables, you must use an if not(is provided world client side) otherwise they return 2 values
Changelog
v1.7.1
-Some changes to apply the fixes from the latest generator update
v1.7
-Fixed an issue with fabric generator mods not working if used together (issue with the gen itself)
v1.6.3
-Fixed workspace not working if there was no items
v1.6.2
-Fixed more major bugs
v1.6.1
-Fixed a bug where ranged items and music discs would cause a crash
-Fixed a bug where making an item and deleting it caused a crash
v1.6
-Fixed an outdated template breaking some workspaces
-Added temporary bugfixes for GUI procedures
v1.5
-Removed features merged into fabric generator
-Introduced a new category, fabric variables
-Added 6 new procedures to fabric variables
-Temporary keybinds bugfix
v1.4
-Fixed global variables causing a build error
-Added a new global trigger
-Updated the API version to build 2.1.627
-Added some temporary features and bugfixes
v1.3
-Added support for block nbt tags
-Added support for entity nbt tags
-Added 9 new procedures
-Added 7 new global triggers
-Added support for global map/world variables
Comments
I almost forgot what is written in the console
Build info: MCreator 2023.1.10610, fabric-1.19.2, 64-bit, 5585 MB, Windows 10, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-03-24-21:11:22
> Configure project :
Fabric Loom: 1.0.17
Not publishing sources jar as it was not found. Use java.withSourcesJar() to fix.
> Task :compileJava
C:\Users\Windows 10\Desktop\Renceron_mobs\Fabric 1.19.2\src\main\java\net\mcreatorfabric\renceronsmobs\init\RenceronsMobsModBiomes.java:18: error: cannot find symbol
RockysteppeBiome.createBiome();
^
symbol: variable RockysteppeBiome
location: class RenceronsMobsModBiomes
1 error
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
Biomes are not created, TerraBlender is installed, mcr version is latest