• 0

    posted a message on [1.7.10] TYNKYN v2.1 Out Now! Lumber Axe, Biome Dictionary Compatibility, Bug Fixes, and More.
    Quote from Sojourner_cat

    The Hummingbirds are a lovely touch. They are flying about the orchard at the moment. Have a few problems with some of the items in the Inventory panel coming up with purple and black tiles. I am not sure as I am new to Minecraft what is happing. Once I have more time I will have a better look at it.

    I have to say this is still one of my favorite mods. Lovely work and thank you for the time you have spent on it.


    Awesome! I would love to see a screenshot :) The purple and black tiles mean that a texture is missing. Can you tell me the names of a few of the ones that are missing? I might have uploaded the development version by mistake, haha. I really appreciate you sentiments :) Knowing that even one person is getting enjoyment out of this is all the motivation I need to keep going. Are there any ideas or suggests you would like to see added? I can't promise they'll make it in but I would love to hear any ideas you might have :)
    Posted in: Minecraft Mods
  • 1

    posted a message on 1.7.2 Ore Generation Problem
    Quote from Browse

    Despite the high values for spawns per chunk and vein size I can't seem to find my ores anywhere. I'm looking between 0 and 64, any help would be greatly appreciated!

    Main
    package skytanic.antimatter.common;
    
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.item.Item;
    import skytanic.antimatter.blocks.BlockLithiumOre;
    import skytanic.antimatter.blocks.BlockMatterScanner;
    import skytanic.antimatter.blocks.BlockZirconiumOre;
    import skytanic.antimatter.blocks.tileentity.MatterScannerTileEntity;
    import skytanic.antimatter.items.ItemLithiumFragment;
    import skytanic.antimatter.items.ItemMatterWrench;
    import skytanic.antimatter.items.ItemZirconiumFragment;
    import skytanic.antimatter.proxy.ProxyCommon;
    import skytanic.antimatter.worldgen.LithiumOreWorldgen;
    import skytanic.antimatter.worldgen.ZirconiumOreWorldgen;
    import cpw.mods.fml.common.Mod;
    import cpw.mods.fml.common.Mod.EventHandler;
    import cpw.mods.fml.common.Mod.Instance;
    import cpw.mods.fml.common.SidedProxy;
    import cpw.mods.fml.common.event.FMLInitializationEvent;
    import cpw.mods.fml.common.registry.GameRegistry;
    
    @Mod(modid = References.MODID, name = "Antimatter", version = References.VERSION)
    
    public class Antimatter {
    
    @Instance(value = References.MODID)
    public static Antimatter instance;
    
    @SidedProxy(
    clientSide = References.ProxyClient,
    serverSide = References.ProxyCommon)
    
    public static ProxyCommon proxy;
    
    @EventHandler
    public void load(FMLInitializationEvent event){
    proxy.registerRenderers();
    }
    
    // Creative Tab
    public static CreativeTabs AntimatterTab = new AntimatterTab("Antimatter"){
    public Item getTabIconItem(){
    return new Item();
    }
    };
    
    // Blocks
    public static final Block MatterScanner = new BlockMatterScanner(7300, Material.iron);
    public static final Block LithiumOre = new BlockLithiumOre(7000, Material.rock);
    public static final Block ZirconiumOre = new BlockZirconiumOre(7002, Material.rock);
    
    // Items
    public static final Item MatterWrench = new ItemMatterWrench(7200);
    public static final Item LithiumFragment = new ItemLithiumFragment(7001);
    public static final Item ZirconiumFragment = new ItemZirconiumFragment(7003);
    
    // World Generation
    public static LithiumOreWorldgen WorldgenLithiumOre = new LithiumOreWorldgen();
    public static ZirconiumOreWorldgen WorldgenZirconiumOre = new ZirconiumOreWorldgen();
    
    public Antimatter(){
    // Block Registry
    
    GameRegistry.registerBlock(MatterScanner, "MatterScanner");
    GameRegistry.registerBlock(LithiumOre, "LithiumOre");
    GameRegistry.registerBlock(ZirconiumOre, "Zirconium");
    
    // Tile Entity
    
    GameRegistry.registerTileEntity(MatterScannerTileEntity.class, "MatterScannerTileEntity");
    
    //GameRegistry.registerTileEntity(LithiumOreTileEntity.class, "LithiumOreTimeEntity");
    
    //Item Registry
    
    GameRegistry.registerItem(MatterWrench, "MatterWrench");
    GameRegistry.registerItem(LithiumFragment, "LithiumExtract");
    GameRegistry.registerItem(ZirconiumFragment, "ZirconiumFragment");
    
    GameRegistry.registerWorldGenerator(WorldgenLithiumOre, 1);
    GameRegistry.registerWorldGenerator(WorldgenZirconiumOre, 1);
    }
    
    }

    Zirconium Ore Block
    package skytanic.antimatter.blocks;
    
    import java.util.Random;
    
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.renderer.texture.IIconRegister;
    import net.minecraft.item.Item;
    import skytanic.antimatter.common.Antimatter;
    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    
    public class BlockZirconiumOre extends Block{
    
    @SideOnly(Side.CLIENT) // Registers textures for the block.
    public void registerBlockIcons(IIconRegister p_149651_1_)
    {
    this.blockIcon = p_149651_1_.registerIcon("antimatter:ZirconiumOre");
    }
    
    public BlockZirconiumOre(int i, Material rock) {
    super(rock);
    this.setCreativeTab(skytanic.antimatter.common.Antimatter.AntimatterTab);
    this.setStepSound(soundTypeStone);
    this.setHardness(5f);
    this.setResistance(20f);
    this.setBlockName("ZirconiumOre");
    this.setHarvestLevel("pickaxe", 2);
    
    }
    
    public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_){
    return Antimatter.ZirconiumFragment;
    }
    
    public int damageDropped(int par1, Random par2Random, int par3){
    return 0;
    }
    
    public int quantityDropped(Random par1Random){
    return 1 + par1Random.nextInt(3);
    }
    }

    Lithium Ore Block
    package skytanic.antimatter.blocks;
    
    import java.util.Random;
    
    import skytanic.antimatter.common.Antimatter;
    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.renderer.texture.IIconRegister;
    import net.minecraft.init.Items;
    import net.minecraft.item.Item;
    
    public class BlockLithiumOre extends Block{
    
    @SideOnly(Side.CLIENT) // Registers textures for the block.
    public void registerBlockIcons(IIconRegister p_149651_1_)
    {
    this.blockIcon = p_149651_1_.registerIcon("antimatter:LithiumOre");
    }
    
    public BlockLithiumOre(int i, Material rock) {
    super(rock);
    this.setCreativeTab(skytanic.antimatter.common.Antimatter.AntimatterTab);
    this.setStepSound(soundTypeStone);
    this.setHardness(3f);
    this.setResistance(15f);
    this.setBlockName("LithiumOre");
    this.setHarvestLevel("pickaxe", 1);
    
    }
    
    public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_){
    return Antimatter.LithiumFragment;
    }
    
    public int damageDropped(int par1, Random par2Random, int par3){
    return 0;
    }
    
    public int quantityDropped(Random par1Random){
    return 1 + par1Random.nextInt(3);
    }
    
    
    }

    Zirconium Ore Worldgen
    package skytanic.antimatter.worldgen;
    
    import java.util.Random;
    
    import skytanic.antimatter.common.Antimatter;
    import net.minecraft.world.World;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.gen.feature.WorldGenMinable;
    import cpw.mods.fml.common.IWorldGenerator;
    
    public class ZirconiumOreWorldgen implements IWorldGenerator {
    
    @Override
    public void generate(Random random, int chunkX, int chunkZ, World world,
    IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
    switch(world.provider.dimensionId){
    case -1 : generateNether(world, random, chunkX*16, chunkX*16);
    case 0 : generateSurface(world, random, chunkX*16, chunkX*16);
    }
    
    }
    
    private void generateSurface(World world, Random random, int blockX, int blockZ) {
    for(int i = 0; i < 40; i++){
    int Xcoord = blockX + random.nextInt(16);
    int Ycoord = random.nextInt(64);
    int Zcoord = blockZ + random.nextInt(16);
    
    new WorldGenMinable(Antimatter.ZirconiumOre, 8).generate(world, random, Xcoord, Ycoord, Zcoord);
    }
    
    }
    
    private void generateNether(World world, Random random, int blockX, int blockZ) {
    
    
    }
    
    }

    Lithium Ore Worldgen
    package skytanic.antimatter.worldgen;
    
    import java.util.Random;
    
    import skytanic.antimatter.common.Antimatter;
    import net.minecraft.world.World;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.gen.feature.WorldGenMinable;
    import cpw.mods.fml.common.IWorldGenerator;
    
    public class LithiumOreWorldgen implements IWorldGenerator {
    
    @Override
    public void generate(Random random, int chunkX, int chunkZ, World world,
    IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
    switch(world.provider.dimensionId){
    case -1 : generateNether(world, random, chunkX*16, chunkX*16);
    case 0 : generateSurface(world, random, chunkX*16, chunkX*16);
    }
    
    }
    
    private void generateSurface(World world, Random random, int blockX, int blockZ) {
    for(int i = 0; i < 40; i++){
    int Xcoord = blockX + random.nextInt(16);
    int Ycoord = random.nextInt(64);
    int Zcoord = blockZ + random.nextInt(16);
    
    new WorldGenMinable(Antimatter.LithiumOre, 8).generate(world, random, Xcoord, Ycoord, Zcoord);
    }
    
    }
    
    private void generateNether(World world, Random random, int blockX, int blockZ) {
    
    
    }
    
    }

    Thanks in advance for your time!


    In both WorldGen classes in the generate methods you have chunkX twice instead of chunkX and chunkZ. I'm not sure that's the problem but I do have some advice. You don't need a separate WorldGen class for each ore you add. You can do all your ore generation for each dimension in the same class. You can even do things like add flowers using the same World Generator. If you need more help let me know.
    Posted in: Modification Development
  • 0

    posted a message on [1.7.2]Tile Entities Making World-Gen Very Laggy
    Quote from Repxile

    It basically updates the block to an active state when the player wears a certain armor piece.

    EDIT: Oh, and to clarify that it acts very similarly to a furnace in that the block is two separate blocks attached to one block class, and that the tile entity updates the block through calling a method telling it to do as such.


    Couldn't you just make it a metadata block and if the player has the armor the metadata of the block is changed? That should remove the need for a tile entity
    Posted in: Modification Development
  • 0

    posted a message on [1.7.10] TYNKYN v2.1 Out Now! Lumber Axe, Biome Dictionary Compatibility, Bug Fixes, and More.
    Quote from Aphenon

    Can your books be patched so they can be placed in Bibliocraft Bookshelves? i keep finding them in chests and need a place to store them :)


    It actually turns out that Bibliocraft handles what can be stored in bookshelves through their config file. You will need to add at least one word from the title of each book to the bookshelf section of the Bibliocraft config. If I can I will try to come up with a way to make them automatically compatible. I might try getting in touch with the author to see what can be done.
    Posted in: Minecraft Mods
  • 0

    posted a message on [1.7.10] TYNKYN v2.1 Out Now! Lumber Axe, Biome Dictionary Compatibility, Bug Fixes, and More.
    Quote from Aphenon

    Can your books be patched so they can be placed in Bibliocraft Bookshelves? i keep finding them in chests and need a place to store them :)


    I'll see what I can do :) Are they too frequent? I'm not sure where to balance it so they aren't clogging up inventories but are frequent enough that they are useful.
    Posted in: Minecraft Mods
  • 0

    posted a message on [Solved] Gradlew.bat build failed
    Quote from thislooksfun

    No idea. Seeing as this thread was created less than an hour ago, I think it only just happened. Unless I'm missing other places where people are reporting this. (Wouldn't be surprised if I was. :P )


    Good to know its multiple people getting this error. I'm certain it's a problem with gradle now. It seems to not recognize the end of the forge version number as valid. Changing it or trying other versions produces the same result.
    Posted in: Modification Development
  • 0

    posted a message on [Solved] Gradlew.bat build failed
    I'm having the same problem. I even tried going to an old backup version of my mod that worked fine two days ago but now it gives this exact same error.

    Edit: I downloaded the newest version of forge and tried to set up a new project with it. I get the same error. I have very little knowledge of gradle but I would have to guess the problem is with gradle or forge if a new project doesn't even work.
    Posted in: Modification Development
  • 0

    posted a message on [1.7.10] TYNKYN v2.1 Out Now! Lumber Axe, Biome Dictionary Compatibility, Bug Fixes, and More.
    I am currently working on a site to showcase things a little better. The site should be finished and version 1.3 should be out within the week. The site is still being worked on but you can get a sneak peak at some of the upcoming stuff. The site can be found here: https://sites.google.com/site/tynkynwiki/
    Posted in: Minecraft Mods
  • 0

    posted a message on Generation custom flower problem
    Quote from mightydanp

    I tried that ... it does the same thing


    Do you mind posting your entire Generator class? Without seeing the whole thing I can't really be much more help.
    Posted in: Modification Development
  • 0

    posted a message on Ore Generation Problems
    Not positive, but from what I can see, you are breaking out of the switch before anything is actually called. Try taking out all the break; from your switch. You can also make the file a lot smaller by just making a oreSpawn method and then you will only need one line of code for each ore you are spawning regardless of dimension and which block you want the ore to spawn in. If you need more help let me know.
    Posted in: Modification Development
  • 1

    posted a message on (1.6.4) How do I add a texture so you can see my egg when it is thrown?
    You need to create an entity and render class. Then you need to register your egg in your proxy. If your egg acts similarly to the minecraft egg you should be able to look at the egg code in all those files to see what you need to do.
    Posted in: Modification Development
  • 0

    posted a message on Generation custom flower problem
    Instead of making your own WorldGen class why not just use the WorldGenFlowers class. Then in your Generator class, add a block parameter to your spawnThorns method and change new WorldGenTwigs() to new WorldGenFlowers(block). That way you won't need a whole bunch off WorldGen classes if you want to add more flowers later. This is the way I'm doing it. If you need more help, let me know.
    Posted in: Modification Development
  • 0

    posted a message on Turtle Mod
    I am actually working on turtles as an addition to my mod right now. Unfortunately for the last part of your request, they are not so much set in reality. There is the normal turtle but, as a fan of Pokemon, the rest of the turtles have elemental attributes and are usable as a base defense option.
    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on [1.7.10] TYNKYN v2.1 Out Now! Lumber Axe, Biome Dictionary Compatibility, Bug Fixes, and More.
    Quote from Zedner

    hi, got conflict with tile recipe that is made from 6 woodplank slabs and recipe from bibliocraft for item label.
    nice mod btw :)


    I noticed that as well. Thanks for letting me know. I am already working on a fix for that. The new version of the mod should be ready by tomorrow. Thank you for the support.
    Quote from Duckingcreepers

    Very nice. I'll have to try this out later. I really like the concept of overriding worldgen with clones that can drop different items. Have you considered making sand, gravel, and end stone behave similarly? Also, 1/1000 for nether stars is a bit overpowered for netherrack in my opinion. Maybe you could instead apply that chance to end stone to provide more incentive for players to actually reach the end?


    Thanks. I actually don't override worldgen though. That would cause problems with other mods that required those specific blocks to be in the world. These blocks just spawn like normal ore but in bigger chunks of space. As far as the other materials, I will only do that if I come up with something that would make sense for it to drop from there. I originally had a version for the end that would drop ender pearls as well as ender peral dust and ender pearl fragments but then I had the idea for the chickend. I will change the nether star drop rate if they do become too frequent. I plan on testing it out today with a quarry to see what the drop rate is. Thank you for your feedback.
    Posted in: Minecraft Mods
  • To post a comment, please or register a new account.