Something wrong with my gun mod

Published by supermj767 on Sat, 03/21/2020 - 16:30
Status
Resolved
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

My gun mod isn't working

A couple of my melee weapons aren't working everything else is fine

Here's the console stuff

i'm probably wrong but i think i need to change the names of something because it has special symbols somewhere but i looked for everything and i cant find anything

Thanks!

Executing Gradle task: build
Build info: MCreator 2020.2.11618 EAP (11618), 1.12.2, 64-bit, 8077 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: C:\Users\\Downloads\MCreator EAP 2020.2 b11618 Windows 64bit\MCreatorEAP20202b11618\jdk
The project name '.mcreator' starts or ends with a '.'. This has been deprecated and is scheduled to be removed in Gradle 5.0. Set the 'rootProject.name' or adjust the 'include' statement (see https://docs.gradle.org/4.4/dsl/org.gradle.api.initialization.Settings…).
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava UP-TO-DATE
:compileApiJava NO-SOURCE
:processApiResources NO-SOURCE
:apiClasses UP-TO-DATE
:sourceMainJava UP-TO-DATE
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSword.java:39: error: incompatible types: ToolMaterial cannot be converted to ElementsSupermjsDGunMod 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("SWORD", 1, 300, 4f, 1f, 2)) {
                                                                       ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSword.java:40: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSword.java:42: error: cannot find symbol 
      
            Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(slot);
                                                                ^
  symbol: method getItemAttributeModifiers(EntityEquipmentSlot)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSword.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                           ^
  symbol: variable ATTACK_DAMAGE_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSword.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                                                                                   ^
  symbol: method getAttackDamage()
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSword.java:47: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -1.2, 0));
                                           ^
  symbol: variable ATTACK_SPEED_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSword.java:58: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSword.java:60: error: cannot find symbol 
      
            super.hitEntity(itemstack, entity, entity2);
                 ^
  symbol: method hitEntity(ItemStack,EntityLivingBase,EntityLivingBase)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSword.java:39: error: cannot find symbol 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("SWORD", 1, 300, 4f, 1f, 2)) {
                               ^
  symbol: constructor (ToolMaterial)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemBaguette.java:36: error: incompatible types: ToolMaterial cannot be converted to ElementsSupermjsDGunMod 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("BAGUETTE", 1, 3, 4f, -0.6999999999999997f, 3)) {
                                                                       ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemBaguette.java:37: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemBaguette.java:39: error: cannot find symbol 
      
            Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(slot);
                                                                ^
  symbol: method getItemAttributeModifiers(EntityEquipmentSlot)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemBaguette.java:42: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                           ^
  symbol: variable ATTACK_DAMAGE_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemBaguette.java:42: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                                                                                   ^
  symbol: method getAttackDamage()
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemBaguette.java:44: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -1.2, 0));
                                           ^
  symbol: variable ATTACK_SPEED_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemBaguette.java:36: error: cannot find symbol 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("BAGUETTE", 1, 3, 4f, -0.6999999999999997f, 3)) {
                               ^
  symbol: constructor (ToolMaterial)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemElectricFlySwatter.java:39: error: incompatible types: ToolMaterial cannot be converted to ElementsSupermjsDGunMod 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("ELECTRICFLYSWATTER", 1, 1000, 3f, 1.3999999999999995f, 2)) {
                                                                       ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemElectricFlySwatter.java:40: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemElectricFlySwatter.java:42: error: cannot find symbol 
      
            Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(slot);
                                                                ^
  symbol: method getItemAttributeModifiers(EntityEquipmentSlot)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemElectricFlySwatter.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                           ^
  symbol: variable ATTACK_DAMAGE_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemElectricFlySwatter.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                                                                                   ^
  symbol: method getAttackDamage()
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemElectricFlySwatter.java:47: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -1.2, 0));
                                           ^
  symbol: variable ATTACK_SPEED_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemElectricFlySwatter.java:58: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemElectricFlySwatter.java:60: error: cannot find symbol 
      
            super.hitEntity(itemstack, entity, entity2);
                 ^
  symbol: method hitEntity(ItemStack,EntityLivingBase,EntityLivingBase)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemElectricFlySwatter.java:39: error: cannot find symbol 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("ELECTRICFLYSWATTER", 1, 1000, 3f, 1.3999999999999995f, 2)) {
                               ^
  symbol: constructor (ToolMaterial)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemKnife.java:39: error: incompatible types: ToolMaterial cannot be converted to ElementsSupermjsDGunMod 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("KNIFE", 1, 50, 2f, -0.1999999999999997f, 1)) {
                                                                       ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemKnife.java:40: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemKnife.java:42: error: cannot find symbol 
      
            Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(slot);
                                                                ^
  symbol: method getItemAttributeModifiers(EntityEquipmentSlot)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemKnife.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                           ^
  symbol: variable ATTACK_DAMAGE_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemKnife.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                                                                                   ^
  symbol: method getAttackDamage()
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemKnife.java:47: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -1.2, 0));
                                           ^
  symbol: variable ATTACK_SPEED_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemKnife.java:58: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemKnife.java:60: error: cannot find symbol 
      
            super.hitEntity(itemstack, entity, entity2);
                 ^
  symbol: method hitEntity(ItemStack,EntityLivingBase,EntityLivingBase)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemKnife.java:39: error: cannot find symbol 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("KNIFE", 1, 50, 2f, -0.1999999999999997f, 1)) {
                               ^
  symbol: constructor (ToolMaterial)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemLightSaber.java:39: error: incompatible types: ToolMaterial cannot be converted to ElementsSupermjsDGunMod 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("LIGHTSABER", 1, 500, 4f, 6f, 2)) {
                                                                       ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemLightSaber.java:40: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemLightSaber.java:42: error: cannot find symbol 
      
            Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(slot);
                                                                ^
  symbol: method getItemAttributeModifiers(EntityEquipmentSlot)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemLightSaber.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                           ^
  symbol: variable ATTACK_DAMAGE_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemLightSaber.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                                                                                   ^
  symbol: method getAttackDamage()
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemLightSaber.java:47: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -1.2, 0));
                                           ^
  symbol: variable ATTACK_SPEED_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemLightSaber.java:58: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemLightSaber.java:60: error: cannot find symbol 
      
            super.hitEntity(itemstack, entity, entity2);
                 ^
  symbol: method hitEntity(ItemStack,EntityLivingBase,EntityLivingBase)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemLightSaber.java:39: error: cannot find symbol 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("LIGHTSABER", 1, 500, 4f, 6f, 2)) {
                               ^
  symbol: constructor (ToolMaterial)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMachete.java:39: error: incompatible types: ToolMaterial cannot be converted to ElementsSupermjsDGunMod 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("MACHETE", 1, 500, 4f, 1.9f, 2)) {
                                                                       ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMachete.java:40: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMachete.java:42: error: cannot find symbol 
      
            Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(slot);
                                                                ^
  symbol: method getItemAttributeModifiers(EntityEquipmentSlot)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMachete.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                           ^
  symbol: variable ATTACK_DAMAGE_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMachete.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                                                                                   ^
  symbol: method getAttackDamage()
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMachete.java:47: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -1.2, 0));
                                           ^
  symbol: variable ATTACK_SPEED_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMachete.java:58: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMachete.java:60: error: cannot find symbol 
      
            super.hitEntity(itemstack, entity, entity2);
                 ^
  symbol: method hitEntity(ItemStack,EntityLivingBase,EntityLivingBase)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMachete.java:39: error: cannot find symbol 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("MACHETE", 1, 500, 4f, 1.9f, 2)) {
                               ^
  symbol: constructor (ToolMaterial)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMetalBat.java:39: error: incompatible types: ToolMaterial cannot be converted to ElementsSupermjsDGunMod 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("METALBAT", 1, 500, 6f, 3f, 8)) {
                                                                       ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMetalBat.java:40: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMetalBat.java:42: error: cannot find symbol 
      
            Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(slot);
                                                                ^
  symbol: method getItemAttributeModifiers(EntityEquipmentSlot)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMetalBat.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                           ^
  symbol: variable ATTACK_DAMAGE_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMetalBat.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                                                                                   ^
  symbol: method getAttackDamage()
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMetalBat.java:47: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -1.2, 0));
                                           ^
  symbol: variable ATTACK_SPEED_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMetalBat.java:58: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMetalBat.java:60: error: cannot find symbol 
      
            super.hitEntity(itemstack, entity, entity2);
                 ^
  symbol: method hitEntity(ItemStack,EntityLivingBase,EntityLivingBase)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemMetalBat.java:39: error: cannot find symbol 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("METALBAT", 1, 500, 6f, 3f, 8)) {
                               ^
  symbol: constructor (ToolMaterial)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSpikedbat.java:39: error: incompatible types: ToolMaterial cannot be converted to ElementsSupermjsDGunMod 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("SPIKEDBAT", 1, 150, 5f, 4.2f, 3)) {
                                                                       ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSpikedbat.java:40: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSpikedbat.java:42: error: cannot find symbol 
      
            Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(slot);
                                                                ^
  symbol: method getItemAttributeModifiers(EntityEquipmentSlot)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSpikedbat.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                           ^
  symbol: variable ATTACK_DAMAGE_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSpikedbat.java:45: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                                                                                   ^
  symbol: method getAttackDamage()
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSpikedbat.java:47: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -1.2, 0));
                                           ^
  symbol: variable ATTACK_SPEED_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSpikedbat.java:58: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSpikedbat.java:60: error: cannot find symbol 
      
            super.hitEntity(itemstack, entity, entity2);
                 ^
  symbol: method hitEntity(ItemStack,EntityLivingBase,EntityLivingBase)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemSpikedbat.java:39: error: cannot find symbol 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("SPIKEDBAT", 1, 150, 5f, 4.2f, 3)) {
                               ^
  symbol: constructor (ToolMaterial)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemWoodBat.java:36: error: incompatible types: ToolMaterial cannot be converted to ElementsSupermjsDGunMod 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("WOODBAT", 1, 100, 2f, 1f, 2)) {
                                                                       ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemWoodBat.java:37: error: method does not override or implement a method from a supertype 
      
         @Override
         ^
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemWoodBat.java:39: error: cannot find symbol 
      
            Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(slot);
                                                                ^
  symbol: method getItemAttributeModifiers(EntityEquipmentSlot)
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemWoodBat.java:42: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                           ^
  symbol: variable ATTACK_DAMAGE_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemWoodBat.java:42: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double) this.getAttackDamage(), 0));
                                                                                                   ^
  symbol: method getAttackDamage()
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemWoodBat.java:44: error: cannot find symbol 
      
                     new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -1.2, 0));
                                           ^
  symbol: variable ATTACK_SPEED_MODIFIER
C:\Users\\MCreatorWorkspaces\.mcreator\build\sources\main\java\net\mcreator\supermjs_gun_mod\item\ItemWoodBat.java:36: error: cannot find symbol 
      
      elements.items.add(() -> new ItemSword(EnumHelper.addToolMaterial("WOODBAT", 1, 100, 2f, 1f, 2)) {
                               ^
  symbol: constructor (ToolMaterial)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
77 errors
: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
BUILD FAILED in 2s
5 actionable tasks: 3 executed, 2 up-to-date
BUILD FAILED
Task completed in 14603 milliseconds

 

Thanks!

Issue comments

I already tried that and you already told me to do it, as the comment above yours reads, it says It didn't work and the error is still here and i will just try to recreate the mod elements Thank you



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.