So I've had to restart my mod and when I try to type gradlew setupDecompWorkspace in my terminal it comes out to say this:
FAILURE: Build failed with an exception.
* What went wrong:
The setupDecompWorkspace will only work with Java 7! This is fixed in ForgeGradl
e 1.2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
I tried to reinstall Java 7 but that didn't work and I tried everything I could think of but nothing worked! I know that I could probably fix it by using 1.7.10 or typing gradlew.bat setupDevWorkspace but if I did 1.7.10 I wont be able to find an updated tutorial and if I typed DevWorkspace I wouldnt be able to reference from the vanilla classes! Please help!
So I'm working on my mod and I'm currently trying to add mobs and I'd like to take a look at the vanilla mobs before I start my custom ones yet when I try to open the EntityCow.class it says this.
Class File Editor
Source not found
The source attachment does not contain the source for the file EntityCow.class
You can change the source attachment by clicking Change Attatched Source below:
I tried to change it but I can't understand whats wrong! All my classes are fine and I setup eclipse fine. Please help!
So I'm following NealeGamings 1.7.10 Modding Tutorials yet I just finished watching his Ore Gen episodes and I'm trying to spawn 14 of my ores(the blocks and ingots work) yet I can't seem to get it to work. I scrolled through the comments and messaged Neale but neither places could answer my questions! (In order) Here is my Error, WorldGen, Main and OreBlocks code!
at net.mskitty.mod.blocks.BlockOres.getIcon(BlockOres.java:49)
at net.minecraft.block.Block.getIcon(Block.java:649)
at net.minecraft.client.renderer.RenderBlocks.getBlockIcon(RenderBlocks.java:8492)
at net.minecraft.client.renderer.RenderBlocks.renderStandardBlockWithAmbientOcclusion(RenderBlocks.java:5294)
at net.minecraft.client.renderer.RenderBlocks.renderStandardBlock(RenderBlocks.java:4473)
at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:394)
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:207)
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1647)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1271)
package net.mskitty.mod.worldgen;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import net.mskitty.mod.blocks.BlockDecGM;
import cpw.mods.fml.common.IWorldGenerator;
public class GMWorldGen implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
//
switch(world.provider.dimensionId) {
case 0: //surface
generateSurface(world, random, chunkX*16, chunkZ*16);
break;
case 1: //end
//generateEnd(world, random, chunkX*16, chunkZ*16);
break;
case -1: //nether
//generateNether(world, random, chunkX*16, chunkZ*16);
break;
}
}
private void generateSurface(World world, Random random, int x, int z) {
this.addOreSpawn(BlockDecGM.blockOres, 0, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 1, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 2, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 3, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 4, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 5, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 6, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 7, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 8, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 9, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 10, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 11, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 12, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 13, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 14, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
}
private void addOreSpawn(Block block, int meta, World world, Random random, int blockXPos, int blockZPos, int maxX, int maxZ, int maxVeinSize, int chanceToSpawn, int minY, int maxY) {
for(int i = 0; i < chanceToSpawn; i++) {
int posX = blockXPos + random.nextInt(maxX);
int posY = minY + random.nextInt(maxY - minY);
int posZ = blockZPos + random.nextInt(maxZ);
(new WorldGenMinable(block, meta, maxVeinSize, Blocks.stone)).generate(world, random, posX, posY, posZ);
}
}
}
@Mod(modid = Main.modID, version = Main.version, name = Main.modName)
public class Main {
public static final String modID = "greekmyths";
public static final String version = "v0.1 ALPHA";
public static final String modName = "Greek Myths Mod";
public static CreativeTabs tabGreekMyths = new CreativeTabs("GreekMyths") {
@SideOnly(Side.CLIENT)
public Item getTabIconItem(){
return Item.getItemFromBlock(Blocks.bookshelf);
}
};
public static CreativeTabs tabGreekMythsMaterials = new CreativeTabs("GreekMythsMaterials") {
@SideOnly(Side.CLIENT)
public Item getTabIconItem(){
return Item.getItemFromBlock(Blocks.dragon_egg);
}
};
public static CreativeTabs tabGreekMythsBlocks = new CreativeTabs("GreekMythsBlocks") {
@SideOnly(Side.CLIENT)
public Item getTabIconItem(){
return Item.getItemFromBlock(Blocks.stone);
}
};
public static CreativeTabs tabGreekMythsItems = new CreativeTabs("GreekMythsItems") {
@SideOnly(Side.CLIENT)
public Item getTabIconItem(){
return (Items.book);
}
};
GMWorldGen eventWorldGen = new GMWorldGen();
@EventHandler
public void preInit(FMLPreInitializationEvent preEvent) {
BlocksGM.init();
ItemsGM.init();
}
@EventHandler
public void Init(FMLInitializationEvent event) {
GameRegistry.registerWorldGenerator(new GMWorldGen(), 1);
}
@EventHandler
public void postInit(FMLPostInitializationEvent postEvent) {
Check out my cool Dwarf Mod! It is a WIP and is still being worked on a lot, just so you know I am no advanced coder I'm trying to learn so please no hate!
This Dwarf Mod is very simple. Has a set of tools, a piecce of food and a set of armor. I am no longer continuing this mod due to the lack of ideas!
So, I'm coding a mod called The Dwarf Mod and I have a few items where I'd like to add some tool tips. Like for example an unactivated and activated dwarf gem and the lore would say "To activate your sacrifice must be more valuable than diamonds" Someone please help!
0
0
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
0
0
0
0
0
So I've had to restart my mod and when I try to type gradlew setupDecompWorkspace in my terminal it comes out to say this:
FAILURE: Build failed with an exception.
* What went wrong:
The setupDecompWorkspace will only work with Java 7! This is fixed in ForgeGradl
e 1.2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
I tried to reinstall Java 7 but that didn't work and I tried everything I could think of but nothing worked! I know that I could probably fix it by using 1.7.10 or typing gradlew.bat setupDevWorkspace but if I did 1.7.10 I wont be able to find an updated tutorial and if I typed DevWorkspace I wouldnt be able to reference from the vanilla classes! Please help!
0
So I'm working on my mod and I'm currently trying to add mobs and I'd like to take a look at the vanilla mobs before I start my custom ones yet when I try to open the EntityCow.class it says this.
Class File Editor
Source not found
The source attachment does not contain the source for the file EntityCow.class
You can change the source attachment by clicking Change Attatched Source below:
I tried to change it but I can't understand whats wrong! All my classes are fine and I setup eclipse fine. Please help!
0
0
0
at net.mskitty.mod.blocks.BlockOres.getIcon(BlockOres.java:49)
at net.minecraft.block.Block.getIcon(Block.java:649)
at net.minecraft.client.renderer.RenderBlocks.getBlockIcon(RenderBlocks.java:8492)
at net.minecraft.client.renderer.RenderBlocks.renderStandardBlockWithAmbientOcclusion(RenderBlocks.java:5294)
at net.minecraft.client.renderer.RenderBlocks.renderStandardBlock(RenderBlocks.java:4473)
at net.minecraft.client.renderer.RenderBlocks.renderBlockByRenderType(RenderBlocks.java:394)
at net.minecraft.client.renderer.WorldRenderer.updateRenderer(WorldRenderer.java:207)
at net.minecraft.client.renderer.RenderGlobal.updateRenderers(RenderGlobal.java:1647)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1271)
package net.mskitty.mod.worldgen;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import net.mskitty.mod.blocks.BlockDecGM;
import cpw.mods.fml.common.IWorldGenerator;
public class GMWorldGen implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
//
switch(world.provider.dimensionId) {
case 0: //surface
generateSurface(world, random, chunkX*16, chunkZ*16);
break;
case 1: //end
//generateEnd(world, random, chunkX*16, chunkZ*16);
break;
case -1: //nether
//generateNether(world, random, chunkX*16, chunkZ*16);
break;
}
}
private void generateSurface(World world, Random random, int x, int z) {
this.addOreSpawn(BlockDecGM.blockOres, 0, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 1, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 2, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 3, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 4, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 5, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 6, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 7, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 8, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 9, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 10, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 11, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 12, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 13, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
this.addOreSpawn(BlockDecGM.blockOres, 14, world , random, x, z, 16, 16, 4 + random.nextInt(6), 25, 38, 100);
}
private void addOreSpawn(Block block, int meta, World world, Random random, int blockXPos, int blockZPos, int maxX, int maxZ, int maxVeinSize, int chanceToSpawn, int minY, int maxY) {
for(int i = 0; i < chanceToSpawn; i++) {
int posX = blockXPos + random.nextInt(maxX);
int posY = minY + random.nextInt(maxY - minY);
int posZ = blockZPos + random.nextInt(maxZ);
(new WorldGenMinable(block, meta, maxVeinSize, Blocks.stone)).generate(world, random, posX, posY, posZ);
}
}
}
package net.mskitty.mod;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.mskitty.mod.blocks.BlocksGM;
import net.mskitty.mod.items.ItemsGM;
import net.mskitty.mod.worldgen.GMWorldGen;
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 cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@Mod(modid = Main.modID, version = Main.version, name = Main.modName)
public class Main {
public static final String modID = "greekmyths";
public static final String version = "v0.1 ALPHA";
public static final String modName = "Greek Myths Mod";
public static CreativeTabs tabGreekMyths = new CreativeTabs("GreekMyths") {
@SideOnly(Side.CLIENT)
public Item getTabIconItem(){
return Item.getItemFromBlock(Blocks.bookshelf);
}
};
public static CreativeTabs tabGreekMythsMaterials = new CreativeTabs("GreekMythsMaterials") {
@SideOnly(Side.CLIENT)
public Item getTabIconItem(){
return Item.getItemFromBlock(Blocks.dragon_egg);
}
};
public static CreativeTabs tabGreekMythsBlocks = new CreativeTabs("GreekMythsBlocks") {
@SideOnly(Side.CLIENT)
public Item getTabIconItem(){
return Item.getItemFromBlock(Blocks.stone);
}
};
public static CreativeTabs tabGreekMythsItems = new CreativeTabs("GreekMythsItems") {
@SideOnly(Side.CLIENT)
public Item getTabIconItem(){
return (Items.book);
}
};
GMWorldGen eventWorldGen = new GMWorldGen();
@EventHandler
public void preInit(FMLPreInitializationEvent preEvent) {
BlocksGM.init();
ItemsGM.init();
}
@EventHandler
public void Init(FMLInitializationEvent event) {
GameRegistry.registerWorldGenerator(new GMWorldGen(), 1);
}
@EventHandler
public void postInit(FMLPostInitializationEvent postEvent) {
}
}
package net.mskitty.mod.blocks;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.mskitty.mod.Main;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class BlockOres extends Block{
@SideOnly(Side.CLIENT)
private IIcon[] texture;
final static String[] subBlocks = new String[] {"Poseidon", "Zeus", "Hades",
"Athena", "Artemis", "Demeter",
"Ares", "Apollo", "Hephaestus", "Hera",
"Aphrodite", "Hermes", "Dionysus", "Iris"};
protected BlockOres() {
super(Material.rock);
this.setHardness(3.0F);
this.setResistance(3.0F);
this.setCreativeTab(Main.tabGreekMythsBlocks);
}
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
texture = new IIcon[subBlocks.length];
for (int i = 0; i < subBlocks.length; i++) {
texture = iconRegister.registerIcon(Main.modID + ":" + subBlocks + "Ore");
}
}
@SideOnly(Side.CLIENT)
public void getSubBlocks(Item block, CreativeTabs creativeTabs, List list) {
for (int i = 0; i < subBlocks.length; i++) {
list.add(new ItemStack(block, 1, i));
}
}
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return texture[meta];
}
public int damageDropped(int meta) {
return meta;
}
}
Thnx for reading! Please try and help! It'd mean so much!!
0
https://www.dropbox.com/s/af47go0np3o8pua/Dwarf-Mod-1.7.10-ALPHA-1.7.10.jar?dl=0
Check out my cool Dwarf Mod! It is a WIP and is still being worked on a lot, just so you know I am no advanced coder I'm trying to learn so please no hate!
This Dwarf Mod is very simple. Has a set of tools, a piecce of food and a set of armor. I am no longer continuing this mod due to the lack of ideas!
Things that are bugged:
Dwarf Mob
Village Barrier(Almost Done)
0
0
0
Skype: Weareminecraf
Favorite Mod: Thermal Expansion