I tried both the snapshot version and the release version. The attached workspace file was for the Fabric 1.16.1 generator, but I have attempted it on the Forge 1.15.2 generator too and got the same result. Any slab I try to create, no matter the name or texture or other properties, always fails to compile and spits out a 'cannot find symbol'. This is my first day using this so I'm not trying to make anything complicated. Full blocks, stairs, fences, etc. work but slabs do not.
Executing
Gradle task: build
Build
info: MCreator 2020.4.32115, fabric-1.16.1, 64-bit, 8173 MB, Windows 10,
JVM 1.8.0_252, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
>
Configure project :
Fabric
Loom: 0.4.33 Build(jenkins #33)
:setting
up loom dependencies
:setting
up mappings (yarn 1.16.1+build.21)
Configuring
compiler arguments for Java
>
Task :compileJava FAILED
Note:
SpongePowered MIXIN Annotation Processor Version=0.8
Note:
ObfuscationServiceFabric supports type: "official:intermediary"
Note:
ObfuscationServiceFabric supports type: "official:named"
Note:
ObfuscationServiceFabric supports type: "intermediary:official"
Note:
ObfuscationServiceFabric supports type: "intermediary:named"
Note:
ObfuscationServiceFabric supports type: "named:official"
Note:
ObfuscationServiceFabric supports type: "named:intermediary"
Note:
ObfuscationServiceMCP supports type: "searge"
Note:
ObfuscationServiceMCP supports type: "notch"
F:\WIP\Minecraft
Mods\RoofingSolutions\src\main\java\net\mcreator\roofingsolutions\block\BlockFlatShinglesBlock.java:26:
error: cannot find symbol
return Collections.singletonList(new ItemStack(this, state.get(TYPE)
== SlabType.DOUBLE ? 2 : 1));
^
symbol: variable TYPE
location: class BlockFlatShinglesBlock
1
error
FAILURE:
Build failed with an exception.
*
What went wrong:
Execution
failed for task ':compileJava'.
>
Compilation failed; see the compiler error output for details.
*
Try:
Run
with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full
insights.
*
Get more help at https://help.gradle.org
BUILD
FAILED in 1s
1
actionable task: 1 executed
BUILD
FAILED
Task
completed in 26064 milliseconds
Issue comments
I have attached a new forge workspace, suffering from the same issue.
Executing
Gradle task: build
Build
info: MCreator 2020.4.32115, forge-1.15.2, 64-bit, 8173 MB, Windows 10,
JVM 1.8.0_252, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk
>
Configure project :
New
Dep: net.minecraftforge:forge:1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1
>
Task :compileJava FAILED
C:\Users\mason\MCreatorWorkspaces\a\src\main\java\net\mcreator\a\block\SlabBlock.java:32:
error: no suitable method found for add(()->new Cu[...]ock())
elements.blocks.add(() -> new CustomBlock());
^
method Collection.add(Supplier<Block>) is not applicable
(argument mismatch; bad return type in lambda expression
CustomBlock cannot be converted to Block)
method List.add(Supplier<Block>) is not applicable
(argument mismatch; bad return type in lambda expression
CustomBlock cannot be converted to Block)
C:\Users\mason\MCreatorWorkspaces\a\src\main\java\net\mcreator\a\block\SlabBlock.java:38:
error: incompatible types: Properties cannot be converted to AModElements
super(Block.Properties.create(Material.ROCK).sound(SoundType.GROUND).hardnessAndResistance(1f,
10f).lightValue(0));
^
C:\Users\mason\MCreatorWorkspaces\a\src\main\java\net\mcreator\a\block\SlabBlock.java:39:
error: cannot find symbol
setRegistryName("slab");
^
symbol: method setRegistryName(String)
location: class CustomBlock
C:\Users\mason\MCreatorWorkspaces\a\src\main\java\net\mcreator\a\block\SlabBlock.java:42:
error: method does not override or implement a method from a supertype
@Override
^
C:\Users\mason\MCreatorWorkspaces\a\src\main\java\net\mcreator\a\block\SlabBlock.java:44:
error: cannot find symbol
List<ItemStack> dropsOriginal = super.getDrops(state, builder);
^
symbol: method getDrops(BlockState,Builder)
C:\Users\mason\MCreatorWorkspaces\a\src\main\java\net\mcreator\a\block\SlabBlock.java:47:
error: cannot find symbol
return Collections.singletonList(new ItemStack(this,
state.get(TYPE) == SlabType.DOUBLE ? 2 : 1));
^
symbol: variable TYPE
location: class CustomBlock
C:\Users\mason\MCreatorWorkspaces\a\src\main\java\net\mcreator\a\block\SlabBlock.java:47:
error: incompatible types: CustomBlock cannot be converted to
IItemProvider
return Collections.singletonList(new ItemStack(this,
state.get(TYPE) == SlabType.DOUBLE ? 2 : 1));
^
Note:
Some messages have been simplified; recompile with -Xdiags:verbose to get
full output
7
errors
FAILURE:
Build failed with an exception.
*
What went wrong:
Execution
failed for task ':compileJava'.
>
Compilation failed; see the compiler error output for details.
*
Try:
Run
with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full
insights.
*
Get more help at https://help.gradle.org
Deprecated
Gradle features were used in this build, making it incompatible with
Gradle 5.0.
Use
'--warning-mode all' to show the individual deprecation warnings.
See
https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#se…
BUILD
FAILED in 2s
1
actionable task: 1 executed
BUILD
FAILED
Task
completed in 5046 milliseconds
Delete the entire <your user home folder>/.mcreator/gradle folder, create a new workspace with the same generator version as the version of the workspace failing, after the setup of this new workspace is done, open your current workspace, and click Build & run -> Build workspace, then Build & run -> Reload gradle project and then Build & run -> Regenerate code and build.
This is Fabric plugin so report a bug to developers of Fabric plugin, not here.
It is almost impossible you get same error on Forge so provide log for Forge, also provide example workspace for Forge.