Custom Sword in snapshot version not working

Published by supermj767 on Mon, 05/11/2020 - 04:49
Status
Can not reproduce
Type
Product/platform
Not applicable
Priority
Normal
Issue description

i figured out why a ton of my tools were not working, because they had the "Sword" option on and it didn't compile correctly and keeps giving me errors in the MCreator Snapshot

Issue comments

When possible, attach your MCreator workspace (or even better a minimal example workspace required to reproduce the bug), game logs (full logs, do not crop them, in text format, not screenshots of logs) from the Console tab or terminal and steps to reproduce the bug in your workspace. If logs are long, use service such as Pastebin to host the log and provide the link to the log from the ticket. Please specify which mod elements to check in your workspace too, if applicable.

The workspace is to large to upload but i can do this

Executing Gradle task: build
Build info: MCreator 2020.3.18613 EAP (18613), forge-1.15.2, 64-bit, 8077 MB, Windows 10, JVM 1.8.0_252, JAVA_HOME: C:\Users\\Downloads\MCreator EAP 2020.3 b18613 Windows 64bit\MCreatorEAP20203b18613\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.15.2-31.1.63_mapped_snapshot_20200225-1.15.1
> Task :compileJava
C:\Users\\MCreatorWorkspaces\GunmodGlitch\src\main\java\net\mcreator\supermjs_gun_mod\item\SwordItem.java:23: error: constructor SwordItem in class SwordItem cannot be applied to given types; elements.items.add(() -> new SwordItem(new IItemTier() {
^
required: SupermjsDGunModElements
found: <anonymous IItemTier>,int,float,Properties
reason: actual and formal argument lists differ in length
C:\Users\\MCreatorWorkspaces\GunmodGlitch\src\main\java\net\mcreator\supermjs_gun_mod\item\BaguetteDupItem.java:23: error: constructor SwordItem in class SwordItem cannot be applied to given types; elements.items.add(() -> new SwordItem(new IItemTier() {
^
required: SupermjsDGunModElements
found: <anonymous IItemTier>,int,float,Properties
reason: actual and formal argument lists differ in length
C:\Users\\MCreatorWorkspaces\GunmodGlitch\src\main\java\net\mcreator\supermjs_gun_mod\item\ElectricFlySwatterItem.java:23: error: constructor SwordItem in class SwordItem cannot be applied to given types; elements.items.add(() -> new SwordItem(new IItemTier() {
^
required: SupermjsDGunModElements
found: <anonymous IItemTier>,int,float,Properties
reason: actual and formal argument lists differ in length
C:\Users\\MCreatorWorkspaces\GunmodGlitch\src\main\java\net\mcreator\supermjs_gun_mod\item\KnifeItem.java:23: error: constructor SwordItem in class SwordItem cannot be applied to given types; elements.items.add(() -> new SwordItem(new IItemTier() {
^
required: SupermjsDGunModElements
found: <anonymous IItemTier>,int,float,Properties
reason: actual and formal argument lists differ in length
C:\Users\\MCreatorWorkspaces\GunmodGlitch\src\main\java\net\mcreator\supermjs_gun_mod\item\LightSaberDupItem.java:23: error: constructor SwordItem in class SwordItem cannot be applied to given types; elements.items.add(() -> new SwordItem(new IItemTier() {
^
required: SupermjsDGunModElements
found: <anonymous IItemTier>,int,float,Properties
reason: actual and formal argument lists differ in length
C:\Users\\MCreatorWorkspaces\GunmodGlitch\src\main\java\net\mcreator\supermjs_gun_mod\item\MacheteDupItem.java:23: error: constructor SwordItem in class SwordItem cannot be applied to given types; elements.items.add(() -> new SwordItem(new IItemTier() {
^
required: SupermjsDGunModElements
found: <anonymous IItemTier>,int,float,Properties
reason: actual and formal argument lists differ in length
C:\Users\\MCreatorWorkspaces\GunmodGlitch\src\main\java\net\mcreator\supermjs_gun_mod\item\MetalBatDupItem.java:23: error: constructor SwordItem in class SwordItem cannot be applied to given types; elements.items.add(() -> new SwordItem(new IItemTier() {
^
required: SupermjsDGunModElements
found: <anonymous IItemTier>,int,float,Properties
reason: actual and formal argument lists differ in length
C:\Users\\MCreatorWorkspaces\GunmodGlitch\src\main\java\net\mcreator\supermjs_gun_mod\item\ShovelItem.java:23: error: constructor ShovelItem in class ShovelItem cannot be applied to given types; elements.items.add(() -> new ShovelItem(new IItemTier() {
^
required: SupermjsDGunModElements
found: <anonymous IItemTier>,int,float,Properties
reason: actual and formal argument lists differ in length
C:\Users\\MCreatorWorkspaces\GunmodGlitch\src\main\java\net\mcreator\supermjs_gun_mod\item\SpikedbatItem.java:23: error: constructor SwordItem in class SwordItem cannot be applied to given types; elements.items.add(() -> new SwordItem(new IItemTier() {
^
required: SupermjsDGunModElements
found: <anonymous IItemTier>,int,float,Properties
reason: actual and formal argument lists differ in length
C:\Users\\MCreatorWorkspaces\GunmodGlitch\src\main\java\net\mcreator\supermjs_gun_mod\item\WoodBatItem.java:23: error: constructor SwordItem in class SwordItem cannot be applied to given types; elements.items.add(() -> new SwordItem(new IItemTier() {
^
required: SupermjsDGunModElements
found: <anonymous IItemTier>,int,float,Properties
reason: actual and formal argument lists differ in length
10 errors
> Task :compileJava FAILED
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 12s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 16167 milliseconds

This is a copy of my gun mods workspace with only the glitched mod elements

 

 



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.