Jump to content

Recommended Posts

Posted

Mac OS X 10.11.5

I'm trying to compile my mod with "bash gradlew build" inside my modding folder but it's saying build failed.

 

I know it says to change it at line 21 of build.gradle but I don't know what to change it to.

 

Last login: Mon Jul 25 17:22:45 on ttys000
tnts-macbook:~ Tnt$ cd /Users/Tnt/Desktop/Modding\ Workspace 
tnts-macbook:Modding Workspace Tnt$ bash gradlew build

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/Tnt/Desktop/Modding Workspace/build.gradle' line: 21

* What went wrong:
Could not compile build file '/Users/Tnt/Desktop/Modding Workspace/build.gradle'.
> startup failed:
  build file '/Users/Tnt/Desktop/Modding Workspace/build.gradle': 21: Invalid variable name. Must start with a letter but was: “com
  . At [21:8]  @ line 21, column 8.
     group= “com.tntdiamond.rm” // http://maven.apache.org/guides/mini/guide-naming-conventions.html
            ^
  
  1 error


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.005 secs
tnts-macbook:Modding Workspace Tnt$ 

 

 

Here is the build.gradle

 

buildscript {
    repositories {
        mavenCentral()
        maven {
            name = "forge"
            url = "http://files.minecraftforge.net/maven"
        }
        maven {
            name = "sonatype"
            url = "https://oss.sonatype.org/content/repositories/snapshots/"
        }
    }
    dependencies {
        classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
    }
}

apply plugin: 'forge'

version = "1.0"
group= “com.tntdiamond.rm” // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = “Regid Mod“

minecraft {
    version = "1.7.10-10.13.4.1448-1.7.10"
    runDir = "eclipse"
}

dependencies {
    // you may put jars on which you depend on in ./libs
    // or you may define them like so..
    //compile "some.group:artifact:version:classifier"
    //compile "some.group:artifact:version"
      
    // real examples
    //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env
    //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env

    // for more info...
    // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
    // http://www.gradle.org/docs/current/userguide/dependency_management.html

}

processResources
{
    // this will ensure that this task is redone when the versions change.
    inputs.property "version", project.version
    inputs.property "mcversion", project.minecraft.version

    // replace stuff in mcmod.info, nothing else
    from(sourceSets.main.resources.srcDirs) {
        include 'mcmod.info'
                
        // replace version and mcversion
        expand 'version':project.version, 'mcversion':project.minecraft.version
    }
        
    // copy everything else, thats not the mcmod.info
    from(sourceSets.main.resources.srcDirs) {
        exclude 'mcmod.info'
    }
}

 

 

 

 

mod.java

 

package tntdiamond.RegidMod;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;
import tntdiamond.RegidMod.item.ItemBatmanArmor;
import tntdiamond.RegidMod.item.ItemCheeseArmor;
import tntdiamond.RegidMod.item.ItemCheeseAxe;
import tntdiamond.RegidMod.item.ItemCheeseHoe;
import tntdiamond.RegidMod.item.ItemCheesePickaxe;
import tntdiamond.RegidMod.item.ItemCheeseShovel;
import tntdiamond.RegidMod.item.ItemCheeseSword;
import tntdiamond.RegidMod.item.ItemGalaxySlayer;
import tntdiamond.RegidMod.item.ItemGalaxySword;
import tntdiamond.RegidMod.item.ItemIllusionArmor;
import tntdiamond.RegidMod.item.ItemRegidAxe;
import tntdiamond.RegidMod.item.ItemRegidHoe;
import tntdiamond.RegidMod.item.ItemRegidPickaxe;
import tntdiamond.RegidMod.item.ItemRegidShovel;
import tntdiamond.RegidMod.item.ItemRegidSword;
import tntdiamond.RegidMod.item.ItemSuuuuupermanArmor;
import tntdiamond.RegidMod.item.ItemUltimateArmor;

//step 1
@Mod(modid = "rm", name = "Regid Mod", version = "1.0")
public class RegidMod {

public static Item itemRegid; 
public static Block blockRegid;
public static Block blockRegidOre;
public static Item itemCheese;
public static Item itemGrilledCheese;
public static Block blockCheese;

public static Item cheeseHelmet;
public static Item cheeseChestplate;
public static Item cheeseLeggings;
public static Item cheeseBoots;

public static Item cheesePickaxe;
public static Item cheeseAxe;
public static Item cheeseShovel;
public static Item cheeseHoe;
public static Item cheeseSword;
public static Item itemCheeseStick;

public static Item regidPickaxe;
public static Item regidAxe;
public static Item regidShovel;
public static Item regidHoe;
public static Item regidSword;

public static Block blockIllusionOre;
public static Block blockIllusion;
public static Item itemIllusion;

public static Item illusionHelmet;
public static Item illusionChestplate;
public static Item illusionLeggings;
public static Item illusionBoots;

public static Item galaxySword;
public static Item galaxySlayer;
public static Item itemHilt;
public static Item itemBlade;
public static Item itemHandle;

public static Item itemStar;
public static Item itemDiamondStick;
public static Item itemMetal;

public static Item itemSuuuuupermanLogo;
public static Item itemBatmanLogo;

public static Item batmanHelmet;
public static Item batmanChestplate;
public static Item batmanLeggings;
public static Item batmanBoots;

public static Item suuuuupermanHelmet;
public static Item suuuuupermanChestplate;
public static Item suuuuupermanLeggings;
public static Item suuuuupermanBoots;

public static Item ultimateHelmet;
public static Item ultimateChestplate;
public static Item ultimateLeggings;
public static Item ultimateBoots;

public static Block blockDemoniteOre;
public static Block blockDemonite;
public static Item itemDemonite;



//diamond harvestlevel=4, diamond maxUses = 1560, diamond efficiency = 8.0F, iron = 6.0F, diamond damage = 6.0F, enchantibility diamond = 10
public static final Item.ToolMaterial cheeseToolMaterial = EnumHelper.addToolMaterial("cheeseToolMaterial", 1, 400, 5.0F, 1.5F, 5);
public static final ItemArmor.ArmorMaterial cheeseArmorMaterial = EnumHelper.addArmorMaterial("cheeseArmorMaterial", 400, new int[]{1,4,3,2}, 5);

public static final Item.ToolMaterial galaxyToolMaterial = EnumHelper.addToolMaterial("galaxyToolMaterial", 4, 2500, 12.0F, 17.0F, 15);
public static final Item.ToolMaterial illusionToolMaterial = EnumHelper.addToolMaterial("illusionToolMaterial", 4, 1800, 8.0F, 10.0F, 12);
public static final ItemArmor.ArmorMaterial illusionArmorMaterial = EnumHelper.addArmorMaterial("illusionArmorMaterial", 1800, new int[]{3,9,7,4}, 30);
public static final Item.ToolMaterial galaxy2ToolMaterial = EnumHelper.addToolMaterial("galaxy2ToolMatieral", 4, 3200, 15.0F, 20.0F, 18);
public static final ItemArmor.ArmorMaterial batmanArmorMaterial = EnumHelper.addArmorMaterial("batmanArmorMaterial", 300, new int[]{5,11,9,6}, 34);
public static final ItemArmor.ArmorMaterial suuuuupermanArmorMaterial = EnumHelper.addArmorMaterial("suuuuupermanArmorMaterial", 300, new int[]{5,11,9,6}, 34);
public static final ItemArmor.ArmorMaterial ultimateArmorMaterial = EnumHelper.addArmorMaterial("ultimateArmorMaterial", 400, new int[]{6,12,10,7}, 40);
//default 2,7,5,3.

public static final Item.ToolMaterial regidToolMaterial = EnumHelper.addToolMaterial("regidToolMaterial", 5, 2000, 9.0F, 7.0F, 11);


@EventHandler
public void preInit(FMLPreInitializationEvent event) {
	//step 2
	//Item/Block init and registering
	//config handling
	itemRegid = new ItemRegid().setUnlocalizedName("itemRegid").setTextureName("rm:itemRegid").setCreativeTab(tabRegidModItems);
	blockRegid = new BlockRegid(Material.iron).setBlockName("BlockRegid").setBlockTextureName("rm:blockregid").setCreativeTab(tabRegidModBlocks);
	blockRegidOre = new BlockRegidOre(Material.rock).setBlockName("BlockRegidOre").setBlockTextureName("rm:blockregidore").setCreativeTab(tabRegidModBlocks);

	cheesePickaxe = new ItemCheesePickaxe(cheeseToolMaterial).setUnlocalizedName("ItemCheesePickaxe").setTextureName("rm:itemcheesepickaxe").setCreativeTab(tabRegidModTools);
	cheeseAxe = new ItemCheeseAxe(cheeseToolMaterial).setUnlocalizedName("ItemCheeseAxe").setTextureName("rm:itemcheeseaxe").setCreativeTab(tabRegidModTools);
	cheeseShovel = new ItemCheeseShovel(cheeseToolMaterial).setUnlocalizedName("ItemCheeseShovel").setTextureName("rm:itemcheeseshovel").setCreativeTab(tabRegidModTools);
	cheeseHoe = new ItemCheeseHoe(cheeseToolMaterial).setUnlocalizedName("ItemCheeseHoe").setTextureName("rm:itemcheesehoe").setCreativeTab(tabRegidModTools);
	cheeseSword = new ItemCheeseSword(cheeseToolMaterial).setUnlocalizedName("ItemCheeseSword").setTextureName("rm:itemcheesesword").setCreativeTab(tabRegidModCombat);

	cheeseHelmet = new ItemCheeseArmor(cheeseArmorMaterial, 0, 0).setUnlocalizedName("ItemCheeseHelmet").setTextureName("rm:itemcheesehelmet").setCreativeTab(tabRegidModCombat);
	cheeseChestplate = new ItemCheeseArmor(cheeseArmorMaterial, 0, 1).setUnlocalizedName("ItemCheeseChestplate").setTextureName("rm:itemcheesechestplate").setCreativeTab(tabRegidModCombat);
	cheeseLeggings = new ItemCheeseArmor(cheeseArmorMaterial, 0, 2).setUnlocalizedName("ItemCheeseLeggings").setTextureName("rm:itemcheeseleggings").setCreativeTab(tabRegidModCombat);
	cheeseBoots = new ItemCheeseArmor(cheeseArmorMaterial, 0, 3).setUnlocalizedName("ItemCheeseBoots").setTextureName("rm:itemcheeseboots").setCreativeTab(tabRegidModCombat);

	blockCheese = new BlockCheese(Material.cloth).setBlockName("BlockCheese").setBlockTextureName("rm:blockcheese").setCreativeTab(tabRegidModBlocks);

	regidPickaxe = new ItemRegidPickaxe(regidToolMaterial).setUnlocalizedName("ItemRegidPickaxe").setTextureName("rm:itemregidpickaxe").setCreativeTab(tabRegidModTools);
	regidAxe = new ItemRegidAxe(regidToolMaterial).setUnlocalizedName("ItemRegidAxe").setTextureName("rm:itemregidAxe").setCreativeTab(tabRegidModTools);
	regidShovel = new ItemRegidShovel(regidToolMaterial).setUnlocalizedName("ItemRegidShovel").setTextureName("rm:itemregidshovel").setCreativeTab(tabRegidModTools);
	regidHoe = new ItemRegidHoe(regidToolMaterial).setUnlocalizedName("ItemRegidHoe").setTextureName("rm:itemregidhoe").setCreativeTab(tabRegidModTools);;
	regidSword = new ItemRegidSword(regidToolMaterial).setUnlocalizedName("ItemRegidSword").setTextureName("rm:itemregidsword").setCreativeTab(tabRegidModCombat);;


	itemCheeseStick = new ItemCheeseStick().setUnlocalizedName("ItemCheeseStick").setTextureName("rm:itemcheesestick").setCreativeTab(tabRegidModItems);
	itemCheese = new ItemFood(4, 0.1F, false).setUnlocalizedName("ItemCheese").setTextureName("rm:itemcheese").setCreativeTab(tabRegidModItems);
	itemGrilledCheese = new ItemFood(8, 0.2F, true).setUnlocalizedName("ItemGrilledCheese").setTextureName("rm:itemgrilledcheese").setCreativeTab(tabRegidModItems);
	//food new ItemFood(1, 2, 3) 1=Food Points (max20) 2=Saturation (max1.0F) 3=wolf food (T/F)

	blockIllusionOre = new BlockIllusionOre(Material.rock).setBlockName("BlockIllusionOre").setBlockTextureName("rm:blockillusionore").setCreativeTab(tabRegidModBlocks);
	blockIllusion = new BlockIllusion(Material.rock).setBlockName("BlockIllusion").setBlockTextureName("rm:blockillusion").setCreativeTab(tabRegidModBlocks);
	itemIllusion = new ItemIllusion().setUnlocalizedName("itemIllusion").setTextureName("rm:itemIllusion").setCreativeTab(tabRegidModItems);

	illusionHelmet = new ItemIllusionArmor(illusionArmorMaterial, 0, 0).setUnlocalizedName("ItemIllusionHelmet").setTextureName("rm:itemillusionhelmet").setCreativeTab(tabRegidModCombat);
	illusionChestplate = new ItemIllusionArmor(illusionArmorMaterial, 0, 1).setUnlocalizedName("ItemIllusionChestplate").setTextureName("rm:itemillusionchestplate").setCreativeTab(tabRegidModCombat);;
	illusionLeggings = new ItemIllusionArmor(illusionArmorMaterial, 0, 2).setUnlocalizedName("ItemIllusionLeggings").setTextureName("rm:itemillusionleggings").setCreativeTab(tabRegidModCombat);;
	illusionBoots = new ItemIllusionArmor(illusionArmorMaterial, 0, 3).setUnlocalizedName("ItemIllusionBoots").setTextureName("rm:itemillusionboots").setCreativeTab(tabRegidModCombat);;

	galaxySword = new ItemGalaxySword(galaxyToolMaterial).setUnlocalizedName("ItemGalaxySword").setTextureName("rm:itemgalaxysword").setCreativeTab(tabRegidModCombat);
	galaxySlayer = new ItemGalaxySlayer(galaxy2ToolMaterial).setUnlocalizedName("ItemGalaxySlayer").setTextureName("rm:itemgalaxyslayer").setCreativeTab(tabRegidModCombat);
	itemHilt = new ItemHilt().setUnlocalizedName("ItemHilt").setTextureName("rm:itemhilt").setCreativeTab(tabRegidModItems);
	itemBlade = new ItemBlade().setUnlocalizedName("ItemBlade").setTextureName("rm:itemblade").setCreativeTab(tabRegidModItems);
	itemHandle = new ItemHandle().setUnlocalizedName("ItemHandle").setTextureName("rm:itemhandle").setCreativeTab(tabRegidModItems);

	itemStar = new ItemStar().setUnlocalizedName("ItemStar").setTextureName("rm:itemstar").setCreativeTab(tabRegidModItems);
	itemDiamondStick = new ItemDiamondStick().setUnlocalizedName("ItemDiamondStick").setTextureName("rm:itemdiamondstick").setCreativeTab(tabRegidModItems);
	itemMetal = new ItemMetal().setUnlocalizedName("ItemMetal").setTextureName("rm:itemmetal").setCreativeTab(tabRegidModItems);

	itemSuuuuupermanLogo = new ItemSuuuuupermanLogo().setUnlocalizedName("ItemSuuuuupermanLogo").setTextureName("rm:itemsuuuuupermanlogo").setCreativeTab(tabRegidModItems);
	itemBatmanLogo = new ItemBatmanLogo().setUnlocalizedName("ItemBatmanLogo").setTextureName("rm:itembatmanlogo").setCreativeTab(tabRegidModItems);

	batmanHelmet = new ItemBatmanArmor(batmanArmorMaterial, 0, 0).setUnlocalizedName("ItemBatmanHelmet").setTextureName("rm:itembatmanhelmet").setCreativeTab(tabRegidModCombat);
	batmanChestplate = new ItemBatmanArmor(batmanArmorMaterial, 0, 1).setUnlocalizedName("ItemBatmanChestplate").setTextureName("rm:itembatmanchestplate").setCreativeTab(tabRegidModCombat);
	batmanLeggings = new ItemBatmanArmor(batmanArmorMaterial, 0, 2).setUnlocalizedName("ItemBatmanLeggings").setTextureName("rm:itembatmanleggings").setCreativeTab(tabRegidModCombat);
	batmanBoots = new ItemBatmanArmor(batmanArmorMaterial, 0, 3).setUnlocalizedName("ItemBatmanBoots").setTextureName("rm:itembatmanboots").setCreativeTab(tabRegidModCombat);

	suuuuupermanHelmet = new ItemSuuuuupermanArmor(suuuuupermanArmorMaterial, 0, 0).setUnlocalizedName("ItemSuuuuupermanHelmet").setTextureName("rm:itemsuuuuupermanhelmet").setCreativeTab(tabRegidModCombat);
	suuuuupermanChestplate = new ItemSuuuuupermanArmor(suuuuupermanArmorMaterial, 0, 1).setUnlocalizedName("ItemSuuuuupermanChestplate").setTextureName("rm:itemsuuuuupermanchestplate").setCreativeTab(tabRegidModCombat);
	suuuuupermanLeggings = new ItemSuuuuupermanArmor(suuuuupermanArmorMaterial, 0, 2).setUnlocalizedName("ItemSuuuuupermanLeggings").setTextureName("rm:itemsuuuuupermanleggings").setCreativeTab(tabRegidModCombat);
	suuuuupermanBoots = new ItemSuuuuupermanArmor(suuuuupermanArmorMaterial, 0, 3).setUnlocalizedName("ItemSuuuuupermanBoots").setTextureName("rm:itemsuuuuupermanboots").setCreativeTab(tabRegidModCombat);

	ultimateHelmet = new ItemUltimateArmor(ultimateArmorMaterial, 0, 0).setUnlocalizedName("ItemUltimateHelmet").setTextureName("rm:itemultimatehelmet").setCreativeTab(tabRegidModCombat);
	ultimateChestplate = new ItemUltimateArmor(ultimateArmorMaterial, 0, 1).setUnlocalizedName("ItemUltimateChestplate").setTextureName("rm:itemultimatechestplate").setCreativeTab(tabRegidModCombat);
	ultimateLeggings = new ItemUltimateArmor(ultimateArmorMaterial, 0, 2).setUnlocalizedName("ItemUltimateLeggings").setTextureName("rm:itemultimateleggings").setCreativeTab(tabRegidModCombat);
	ultimateBoots = new ItemUltimateArmor(ultimateArmorMaterial, 0, 3).setUnlocalizedName("ItemUltimateBoots").setTextureName("rm:itemultimateboots").setCreativeTab(tabRegidModCombat);

	blockDemoniteOre = new BlockDemoniteOre(Material.rock).setBlockName("BlockDemoniteOre").setBlockTextureName("rm:blockdemoniteore").setCreativeTab(tabRegidModBlocks);
	blockDemonite = new BlockDemonite(Material.rock).setBlockName("BlockDemonite").setBlockTextureName("rm:blockdemonite").setCreativeTab(tabRegidModBlocks);
	itemDemonite = new ItemDemonite().setUnlocalizedName("ItemDemonite").setTextureName("rm:itemdemonite").setCreativeTab(tabRegidModItems);

	//step 3
	GameRegistry.registerItem(itemRegid, itemRegid.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockRegid, blockRegid.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockRegidOre, blockRegidOre.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemCheese, itemCheese.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemGrilledCheese, itemGrilledCheese.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(cheesePickaxe, cheesePickaxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseAxe, cheeseAxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseShovel, cheeseShovel.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseHoe, cheeseHoe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseSword, cheeseSword.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemCheeseStick, itemCheeseStick.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(cheeseHelmet, cheeseHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseChestplate, cheeseChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseLeggings, cheeseLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(cheeseBoots, cheeseBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(regidPickaxe, regidPickaxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidAxe, regidAxe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidShovel, regidShovel.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidHoe, regidHoe.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(regidSword, regidSword.getUnlocalizedName().substring(5));

	GameRegistry.registerBlock(blockCheese, blockCheese.getUnlocalizedName().substring(5));

	GameRegistry.registerBlock(blockIllusionOre, blockIllusionOre.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockIllusion, blockIllusion.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemIllusion, itemIllusion.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(galaxySword, galaxySword.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(galaxySlayer, galaxySlayer.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemHilt, itemHilt.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemBlade, itemBlade.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemHandle, itemHandle.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(itemStar, itemStar.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemDiamondStick, itemDiamondStick.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemMetal, itemMetal.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(illusionHelmet, illusionHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(illusionChestplate, illusionChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(illusionLeggings, illusionLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(illusionBoots, illusionBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(itemSuuuuupermanLogo, itemSuuuuupermanLogo.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemBatmanLogo, itemBatmanLogo.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(batmanHelmet, batmanHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(batmanChestplate, batmanChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(batmanLeggings, batmanLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(batmanBoots, batmanBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(suuuuupermanHelmet, suuuuupermanHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(suuuuupermanChestplate, suuuuupermanChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(suuuuupermanLeggings, suuuuupermanLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(suuuuupermanBoots, suuuuupermanBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(ultimateHelmet, ultimateHelmet.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(ultimateChestplate, ultimateChestplate.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(ultimateLeggings, ultimateLeggings.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(ultimateBoots, ultimateBoots.getUnlocalizedName().substring(5));

	GameRegistry.registerBlock(blockDemoniteOre, blockDemoniteOre.getUnlocalizedName().substring(5));
	GameRegistry.registerBlock(blockDemonite, blockDemonite.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(itemDemonite, itemDemonite.getUnlocalizedName().substring(5));

	GameRegistry.registerWorldGenerator(new CheeseGeneration(), 0);
	GameRegistry.registerWorldGenerator(new DemoniteGeneration(), 0);
	GameRegistry.registerWorldGenerator(new IllusionGeneration(), 0);
	GameRegistry.registerWorldGenerator(new IllusionGeneration(), 0);
}

@EventHandler
public void init(FMLInitializationEvent event) {
	//Proxy, TileEntity, entity, GUI and Packet Registering
	GameRegistry.addRecipe(new ItemStack(cheesePickaxe), new Object[]{"CCC", " S ", " S ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseAxe), new Object[]{"CC ", "CS ", " S ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseShovel), new Object[]{"C", "S", "S", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseHoe), new Object[]{"CC ", " S ", " S ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(cheeseSword), new Object[]{"C", "C", "S", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(itemCheeseStick), new Object[]{" C ", " S ", "   ", 'C', itemGrilledCheese, 'S', Items.stick});
	GameRegistry.addRecipe(new ItemStack(itemGrilledCheese), new Object[]{"   ", "CC ", "CC ", 'C', itemCheeseStick,});

	GameRegistry.addRecipe(new ItemStack(cheeseHelmet), new Object[]{"CCC", "C C", "   ", 'C', itemGrilledCheese});
	GameRegistry.addRecipe(new ItemStack(cheeseChestplate), new Object[]{"C C", "CCC", "CCC", 'C', itemGrilledCheese});
	GameRegistry.addRecipe(new ItemStack(cheeseLeggings), new Object[]{"CCC", "C C", "C C", 'C', itemGrilledCheese});
	GameRegistry.addRecipe(new ItemStack(cheeseBoots), new Object[]{"   ", "C C", "C C", 'C', itemGrilledCheese});

	GameRegistry.addRecipe(new ItemStack(blockIllusion), new Object[]{"III", "III", "III", 'I', itemIllusion});
	GameRegistry.addRecipe(new ItemStack(galaxySword), new Object[]{" FI", " IF", "O  ", 'F', Items.flint_and_steel, 'I', itemIllusion, 'O', Blocks.obsidian});
	GameRegistry.addRecipe(new ItemStack(itemHandle), new Object[]{"SIS", "SIS", "SIS", 'S', itemStar, 'I', itemIllusion});
	GameRegistry.addRecipe(new ItemStack(itemBlade), new Object[]{" SI", " IS", " G ", 'S', itemStar, 'I', itemIllusion, 'G', galaxySword});
	GameRegistry.addRecipe(new ItemStack(itemHilt), new Object[]{"   ", "DSD", " G ", 'D', Items.diamond, 'S', itemStar, 'G', itemDiamondStick});
	GameRegistry.addRecipe(new ItemStack(galaxySlayer), new Object[]{" B ", " H ", " A ", 'B', itemBlade, 'H', itemHilt, 'A', itemHandle});

	GameRegistry.addRecipe(new ItemStack(itemMetal), new Object[]{"IDI", "EPE", "IDI", 'I', Items.iron_ingot, 'D', Items.diamond, 'E', Items.emerald, 'P', Items.ender_pearl});

	GameRegistry.addRecipe(new ItemStack(itemBatmanLogo), new Object[]{"IOI", "OOO", "IOI", 'I', itemIllusion, 'O', Blocks.obsidian});
	GameRegistry.addRecipe(new ItemStack(itemSuuuuupermanLogo), new Object[]{"RLR", "RRR", "RLR", 'R', Blocks.redstone_block, 'L', Blocks.lapis_block});

	GameRegistry.addRecipe(new ItemStack(batmanHelmet), new Object[]{"MBM", "M M", "   ", 'M', itemMetal, 'B', itemBatmanLogo});
	GameRegistry.addRecipe(new ItemStack(batmanChestplate), new Object[]{"M M", "MBM", "MMM", 'M', itemMetal, 'B', itemBatmanLogo});
	GameRegistry.addRecipe(new ItemStack(batmanLeggings), new Object[]{"MBM", "M M", "M M", 'M', itemMetal, 'B', itemBatmanLogo});
	GameRegistry.addRecipe(new ItemStack(batmanBoots), new Object[]{"   ", "M M", "M M", 'M', itemMetal, 'B', itemBatmanLogo});

	GameRegistry.addRecipe(new ItemStack(suuuuupermanHelmet), new Object[]{"ISI", "I I", "   ", 'I', itemIllusion, 'S', itemSuuuuupermanLogo});
	GameRegistry.addRecipe(new ItemStack(suuuuupermanChestplate), new Object[]{"I I", "ISI", "III", 'I', itemIllusion, 'S', itemSuuuuupermanLogo});
	GameRegistry.addRecipe(new ItemStack(suuuuupermanLeggings), new Object[]{"ISI", "I I", "I I", 'I', itemIllusion, 'S', itemSuuuuupermanLogo});
	GameRegistry.addRecipe(new ItemStack(suuuuupermanBoots), new Object[]{"   ", "I I", "I I", 'I', itemIllusion});

	GameRegistry.addRecipe(new ItemStack(ultimateHelmet), new Object[]{"OEO", "O O", "   ", 'O', Blocks.obsidian, 'E', Items.ender_pearl});
	GameRegistry.addRecipe(new ItemStack(ultimateChestplate), new Object[]{"O O", "ODO", "OOO", 'O', Blocks.obsidian, 'D', Blocks.diamond_block});
	GameRegistry.addRecipe(new ItemStack(ultimateLeggings), new Object[]{"ODO", "O O", "O O", 'O', Blocks.obsidian, 'D', Blocks.diamond_block});
	GameRegistry.addRecipe(new ItemStack(ultimateBoots), new Object[]{"   ", "E E", "O O", 'O', Blocks.obsidian, 'E', Items.ender_pearl});

	GameRegistry.addRecipe(new ItemStack(blockDemonite), new Object[]{"DDD", "DDD", "DDD", 'D', itemDemonite});

	GameRegistry.addSmelting(blockDemoniteOre, new ItemStack(itemDemonite), 5.0F);
	GameRegistry.addSmelting(blockIllusionOre, new ItemStack(itemIllusion), 5.0F);
	GameRegistry.addSmelting(blockRegidOre, new ItemStack (itemRegid), 5.0F);

	GameRegistry.addSmelting(itemCheese, new ItemStack(itemGrilledCheese), 5.0F);
	GameRegistry.addSmelting(itemCheeseStick, new ItemStack(RegidMod.itemGrilledCheese), 5.0F);
}

@EventHandler
public void postInit(FMLPostInitializationEvent event) {

}

public static CreativeTabs tabRegidModBlocks = new CreativeTabs("tabRegidModBlocks"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(blockRegid).getItem();
	}
};

public static CreativeTabs tabRegidModItems = new CreativeTabs("tabRegidModItems"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(itemRegid).getItem();

	}
};

public static CreativeTabs tabRegidModTools = new CreativeTabs("tabRegidModTools"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(regidPickaxe).getItem();
	}
};

public static CreativeTabs tabRegidModCombat = new CreativeTabs("tabRegidModCombat"){
	@Override
	public Item getTabIconItem(){
		return new ItemStack(regidSword).getItem();
	}
};
}

 

 

 

Posted

It looks like you're using the wrong quotation mark characters on line 21 and 22. You're using U+201C LEFT DOUBLE QUOTATION MARK and U+201D RIGHT DOUBLE QUOTATION MARK, but Gradle expects U+0022 QUOTATION MARK.

 

You probably need to disable OS X's smart quotes feature by following these instructions. The instructions are for 10.9 rather than 10.11, so it may be a bit different on your system.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.