• 0

    posted a message on Antique Atlas
    Awesome Mod, Thanks!! One request, to make this even more EPIC! A way to add dots or marks with some sort of text, so we can make different spots to remember!
    Posted in: Minecraft Mods
  • 0

    posted a message on Forge modding tutorials
    Quote from Kakarotvg

    make sure all your block ids are 4096 or below, then delete the config file in "forge/mcp/jars/config/yourmodsmodid.cfg"

    then try again

    your awesome! it worked! thanks again!
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Forge modding tutorials
    Quote from Kakarotvg

    only block ids have to be 4096 and below, item ids range to something like 36000, probably should have covered this in the tutorials.

    any idea on the error? thanks for all your help, and sorry im so bothersome lol
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Forge modding tutorials
    i guess ill just go through it all and comment the lines and just add one at a time to see if i can find it
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Forge modding tutorials
    i thought it was like 42000... or something like that. but i changed all the ids below4k anyways and still got an error

    ---- Minecraft Crash Report ----
    // Why is it breaking :(

    Time: 9/29/13 8:26 AM
    Description: Initializing game

    java.lang.ArrayIndexOutOfBoundsException: 4201
    at net.minecraft.block.Block.<init>(Block.java:346)
    at net.minecraft.block.BlockContainer.<init>(BlockContainer.java:11)
    at mods.cosmetica.common.tileentitys.TileEntityBarrel.<init>(TileEntityBarrel.java:19)
    at mods.cosmetica.common.handlers.TileEntityHandler.ConfigureTiles(TileEntityHandler.java:53)
    at mods.cosmetica.common.Cosmetica.preInit(Cosmetica.java:52)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)
    at cpw.mods.fml.common.Loader.loadMods(Loader.java:520)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:181)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:470)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)
    at net.minecraft.client.main.Main.main(Main.java:93)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:18)


    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- Head --
    Stacktrace:
    at net.minecraft.block.Block.<init>(Block.java:346)
    at net.minecraft.block.BlockContainer.<init>(BlockContainer.java:11)
    at mods.cosmetica.common.tileentitys.TileEntityBarrel.<init>(TileEntityBarrel.java:19)
    at mods.cosmetica.common.handlers.TileEntityHandler.ConfigureTiles(TileEntityHandler.java:53)
    at mods.cosmetica.common.Cosmetica.preInit(Cosmetica.java:52)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)
    at cpw.mods.fml.common.Loader.loadMods(Loader.java:520)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:181)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:470)

    -- Initialization --
    Details:
    Stacktrace:
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)
    at net.minecraft.client.main.Main.main(Main.java:93)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

    -- System Details --
    Details:
    Minecraft Version: 1.6.2
    Operating System: Windows 7 (amd64) version 6.1
    Java Version: 1.7.0_40, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 780476920 bytes (744 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Suspicious classes: FML and Forge are installed
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP v8.04 FML v6.2.57.845 Minecraft Forge 9.10.0.845 4 mods loaded, 4 mods active
    mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
    FML{6.2.57.845} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized
    Forge{9.10.0.845} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized
    CosmeticaModInfo.ID{CosmeticaModInfo.MOD_V } [CosmeticaModInfo.MOD_N] (bin) Unloaded->Constructed->Errored
    Launched Version: 1.6
    LWJGL: 2.9.0
    OpenGL: GeForce GT 240/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Pack: Default
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Forge modding tutorials
    tileentityhandlers class

    package mods.cosmetica.common.handlers;
    
    import mods.cosmetica.common.entity.TileEntityBarrelEntity;
    import mods.cosmetica.common.entity.TileEntityChairEntity;
    import mods.cosmetica.common.entity.TileEntityCounterEntity;
    import mods.cosmetica.common.entity.TileEntityEndTable1Entity;
    import mods.cosmetica.common.entity.TileEntityGrave1Entity;
    import mods.cosmetica.common.entity.TileEntityGrave2Entity;
    import mods.cosmetica.common.entity.TileEntityGrave3Entity;
    import mods.cosmetica.common.entity.TileEntityShelfSM1Entity;
    import mods.cosmetica.common.entity.TileEntityTable1Entity;
    import mods.cosmetica.common.entity.TileEntityTable2Entity;
    import mods.cosmetica.common.entity.TileEntityTentEntity;
    import mods.cosmetica.common.entity.TileEntityWeaponRack1Entity;
    import mods.cosmetica.common.tileentitys.TileEntityBarrel;
    import mods.cosmetica.common.tileentitys.TileEntityChair;
    import mods.cosmetica.common.tileentitys.TileEntityCounter;
    import mods.cosmetica.common.tileentitys.TileEntityEndTable1;
    import mods.cosmetica.common.tileentitys.TileEntityGrave1;
    import mods.cosmetica.common.tileentitys.TileEntityGrave2;
    import mods.cosmetica.common.tileentitys.TileEntityGrave3;
    import mods.cosmetica.common.tileentitys.TileEntityShelfSM1;
    import mods.cosmetica.common.tileentitys.TileEntityTable1;
    import mods.cosmetica.common.tileentitys.TileEntityTable2;
    import mods.cosmetica.common.tileentitys.TileEntityTent;
    import mods.cosmetica.common.tileentitys.TileEntityWeaponRack1;
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraftforge.common.Configuration;
    import cpw.mods.fml.common.registry.GameRegistry;
    import cpw.mods.fml.common.registry.LanguageRegistry;
    
    public class TileEntityHandler {
        
        public static Block tileentitycounter;
        public static Block tileentitybarrel;
        public static Block tileentitychair;
        public static Block tileentityendtable1;
        public static Block tileentitygrave1;
        public static Block tileentitygrave2;
        public static Block tileentitygrave3;
        public static Block tileentityshelfsm1;
        public static Block tileentitytable1;
        public static Block tileentitytable2;
        public static Block tileentitytent;
        public static Block tileentityweaponrack1;
        
        
        
        
        public static void ConfigureTiles(Configuration config){
            tileentitycounter = new TileEntityCounter(CosmeticaIDHandler.tileentitycounter, Material.rock).setUnlocalizedName("counterone").setCreativeTab(CreativeTabHandler.cosmeticatab);
            tileentitybarrel = new TileEntityBarrel(CosmeticaIDHandler.tileentitybarrel, Material.wood).setUnlocalizedName("barrelone").setCreativeTab(CreativeTabHandler.cosmeticatab);
            tileentitychair = new TileEntityChair(CosmeticaIDHandler.tileentitychair, Material.wood).setUnlocalizedName("chairone").setCreativeTab(CreativeTabHandler.cosmeticatab);
            tileentityendtable1 = new TileEntityEndTable1(CosmeticaIDHandler.tileentityendtable1, Material.wood).setUnlocalizedName("endtableone").setCreativeTab(CreativeTabHandler.cosmeticatab);
            tileentitygrave1 = new TileEntityGrave1(CosmeticaIDHandler.tileentitygrave1, Material.rock).setUnlocalizedName("graveone").setCreativeTab(CreativeTabHandler.cosmeticatab);
            tileentitygrave2 = new TileEntityGrave2(CosmeticaIDHandler.tileentitygrave2, Material.rock).setUnlocalizedName("gravetwo").setCreativeTab(CreativeTabHandler.cosmeticatab);
            tileentitygrave3 = new TileEntityGrave3(CosmeticaIDHandler.tileentitygrave3, Material.rock).setUnlocalizedName("gravethree").setCreativeTab(CreativeTabHandler.cosmeticatab);
            tileentityshelfsm1 = new TileEntityShelfSM1(CosmeticaIDHandler.tileentityshelfsm1, Material.wood).setUnlocalizedName("shelfsmone").setCreativeTab(CreativeTabHandler.cosmeticatab);
            tileentitytable1 = new TileEntityTable1(CosmeticaIDHandler.tileentitytable1, Material.wood).setUnlocalizedName("tableone").setCreativeTab(CreativeTabHandler.cosmeticatab);
            tileentitytable2 = new TileEntityTable2(CosmeticaIDHandler.tileentitytable2, Material.wood).setUnlocalizedName("tabletwo").setCreativeTab(CreativeTabHandler.cosmeticatab);
            tileentitytent = new TileEntityTent(CosmeticaIDHandler.tileentitytent, Material.cloth).setUnlocalizedName("tentone").setCreativeTab(CreativeTabHandler.cosmeticatab);
            tileentityweaponrack1 = new TileEntityWeaponRack1(CosmeticaIDHandler.tileentityweaponrack1, Material.iron).setUnlocalizedName("weaponrackone").setCreativeTab(CreativeTabHandler.cosmeticatab);
            
        }
    
        public static void registerTileEntitys(GameRegistry registry){
            registry.registerBlock(tileentitycounter, "tileentitycounter");
            registry.registerBlock(tileentitybarrel, "tileentitybarrel");
            registry.registerBlock(tileentitychair, "tileentitychair");
            registry.registerBlock(tileentityendtable1, "tileentityendtable1");
            registry.registerBlock(tileentitygrave1, "tileentitygrave1");
            registry.registerBlock(tileentitygrave2, "tileentitygrave2");
            registry.registerBlock(tileentitygrave3, "tileentitygrave3");
            registry.registerBlock(tileentityshelfsm1, "tileentityshelfsm1");
            registry.registerBlock(tileentitytable1, "tileentitytable1");
            registry.registerBlock(tileentitytable2, "tileentitytable2");
            registry.registerBlock(tileentitytent, "tileentitytent");
            registry.registerBlock(tileentityweaponrack1, "tileentityweaponrack1");
            
        }
        
        public static void addNames(LanguageRegistry registry){
            registry.addName(tileentitycounter, "Counter");
            registry.addName(tileentitybarrel, "Barrel");
            registry.addName(tileentitychair, "Chair");
            registry.addName(tileentityendtable1, "End Table");
            registry.addName(tileentitygrave1, "Grave 1");
            registry.addName(tileentitygrave2, "Grave 2");
            registry.addName(tileentitygrave3, "Grave 3");
            registry.addName(tileentityshelfsm1, "SM Shelf");
            registry.addName(tileentitytable1, "SM Table");
            registry.addName(tileentitytable2, "LG Table");
            registry.addName(tileentitytent, "Tent");
            registry.addName(tileentityweaponrack1, "Weapon Rack");
        }
        
        public static void tileentityRegistry(GameRegistry registry){
            registry.registerTileEntity(TileEntityCounterEntity.class, "tileentitycounter");
            registry.registerTileEntity(TileEntityBarrelEntity.class, "tileentitybarrel");
            registry.registerTileEntity(TileEntityChairEntity.class, "tileentitychair");
            registry.registerTileEntity(TileEntityEndTable1Entity.class, "tileentityendtable1");
            registry.registerTileEntity(TileEntityGrave1Entity.class, "tileentitygrave1");
            registry.registerTileEntity(TileEntityGrave2Entity.class, "tileentitygrave2");
            registry.registerTileEntity(TileEntityGrave3Entity.class, "tileentitygrave3");
            registry.registerTileEntity(TileEntityShelfSM1Entity.class, "tileentityshelfsm1");
            registry.registerTileEntity(TileEntityTable1Entity.class, "tileentitytable1");
            registry.registerTileEntity(TileEntityTable2Entity.class, "tileentitytable2");
            registry.registerTileEntity(TileEntityTentEntity.class, "tileentitytent");
            registry.registerTileEntity(TileEntityWeaponRack1Entity.class, "tileentityweaponrack1");
        }
    
        
    }


    tileentitybarrel class

    package mods.cosmetica.common.tileentitys;
    
    import cpw.mods.fml.relauncher.Side;
    import cpw.mods.fml.relauncher.SideOnly;
    import mods.cosmetica.common.CosmeticaReference;
    import mods.cosmetica.common.entity.TileEntityBarrelEntity;
    import net.minecraft.block.BlockContainer;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.renderer.texture.IconRegister;
    import net.minecraft.entity.EntityLivingBase;
    import net.minecraft.item.ItemStack;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.util.MathHelper;
    import net.minecraft.world.World;
    
    public class TileEntityBarrel extends BlockContainer{
    
        public TileEntityBarrel(int id, Material material) {
            super(id, material);
            
        }
    
        @Override
        public TileEntity createNewTileEntity(World world) {
        
            return new TileEntityBarrelEntity();
        }
    
        
        @Override
        public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase player, ItemStack itemstack){
            int dir = MathHelper.floor_double((double)((player.rotationYaw * 4F) / 360F) + 0.5D) & 3;
            world.setBlockMetadataWithNotify(x, y, z, dir, 0);
        }
        
        @Override
        public int getRenderType(){
            return -1;
        }
        
        @Override
        public boolean isOpaqueCube(){
            return false;
        }
        
        public boolean renderAsNormalBlock(){
            return false;
        }
        
        @SideOnly(Side.CLIENT)
        @Override
        public void registerIcons(IconRegister register){
            this.blockIcon = register.registerIcon(CosmeticaReference.modid + ":" + (this.getUnlocalizedName().substring(5)));
        }
        
    }


    And the IDhandlerclass

    package mods.cosmetica.common.handlers;
    
    import net.minecraft.block.Block;
    import net.minecraftforge.common.Configuration;
    
    public class CosmeticaIDHandler {
    
        public static String blockids = "Block IDs";
        
        public static String tileentityids = "TileEntity IDs";
        
        //block ids
        public static int cosmeticablockID;
        public static int crateID;
        public static int roughwoodID;
        
        //tile entity ids
        public static int tileentitycounter;
        public static int tileentitybarrel;
        public static int tileentitychair;
        public static int tileentityendtable1;
        public static int tileentitygrave1;
        public static int tileentitygrave2;
        public static int tileentitygrave3;
        public static int tileentityshelfsm1;
        public static int tileentitytable1;
        public static int tileentitytable2;
        public static int tileentitytent;
        public static int tileentityweaponrack1;
    
        public static void createConfigfile(Configuration config){
            //block ids
            cosmeticablockID = config.get(blockids, "Cosmetica Block", 4100).getInt();
            crateID = config.get(blockids, "Crate", 4101).getInt();
            roughwoodID = config.get(blockids, "Rough Wood", 4102).getInt();
            
            //tile entity ids
            tileentitycounter = config.get(tileentityids, "Tile Entity Counter", 4200).getInt();
            tileentitybarrel = config.get(tileentityids, "Tile Entity Barrel", 4201).getInt();
            tileentitychair = config.get(tileentityids, "Tile Entity Chair", 4202).getInt();
            tileentityendtable1 = config.get(tileentityids, "Tile Entity EndTable1", 4203).getInt();
            tileentitygrave1 = config.get(tileentityids, "Tile Entity Grave1", 4204).getInt();
            tileentitygrave2 = config.get(tileentityids, "Tile Entity Grave2", 4205).getInt();
            tileentitygrave3 = config.get(tileentityids, "Tile Entity Grave3", 4206).getInt();
            tileentityshelfsm1 = config.get(tileentityids, "Tile Entity ShelfSM1", 4207).getInt();
            tileentitytable1 = config.get(tileentityids, "Tile Entity Table1", 4208).getInt();
            tileentitytable2 = config.get(tileentityids, "Tile Entity Table2", 4209).getInt();
            tileentitytent = config.get(tileentityids, "Tile Entity Tent", 4210).getInt();
            tileentityweaponrack1 = config.get(tileentityids, "Tile Entity WeaponRack1", 4211).getInt();
            
            
            
            
        }
        
    }

    Thanks for all the help!
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Forge modding tutorials
    ok I'll look into it, I tryed to add a bunch of models and I'm getting an error...could you teach me or do a tutorial on how to read the error reports?

    ---- Minecraft Crash Report ----
    // I bet Cylons wouldn't have this problem.

    Time: 9/28/13 11:42 PM
    Description: Initializing game

    java.lang.ArrayIndexOutOfBoundsException: 4201
    at net.minecraft.block.Block.<init>(Block.java:346)
    at net.minecraft.block.BlockContainer.<init>(BlockContainer.java:11)
    at mods.cosmetica.common.tileentitys.TileEntityBarrel.<init>(TileEntityBarrel.java:19)
    at mods.cosmetica.common.handlers.TileEntityHandler.ConfigureTiles(TileEntityHandler.java:53)
    at mods.cosmetica.common.Cosmetica.preInit(Cosmetica.java:52)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)
    at cpw.mods.fml.common.Loader.loadMods(Loader.java:520)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:181)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:470)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)
    at net.minecraft.client.main.Main.main(Main.java:93)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:18)


    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- Head --
    Stacktrace:
    at net.minecraft.block.Block.<init>(Block.java:346)
    at net.minecraft.block.BlockContainer.<init>(BlockContainer.java:11)
    at mods.cosmetica.common.tileentitys.TileEntityBarrel.<init>(TileEntityBarrel.java:19)
    at mods.cosmetica.common.handlers.TileEntityHandler.ConfigureTiles(TileEntityHandler.java:53)
    at mods.cosmetica.common.Cosmetica.preInit(Cosmetica.java:52)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)
    at cpw.mods.fml.common.Loader.loadMods(Loader.java:520)
    at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:181)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:470)

    -- Initialization --
    Details:
    Stacktrace:
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)
    at net.minecraft.client.main.Main.main(Main.java:93)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

    -- System Details --
    Details:
    Minecraft Version: 1.6.2
    Operating System: Windows 7 (amd64) version 6.1
    Java Version: 1.7.0_40, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 780447240 bytes (744 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Suspicious classes: FML and Forge are installed
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP v8.04 FML v6.2.57.845 Minecraft Forge 9.10.0.845 4 mods loaded, 4 mods active
    mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized
    FML{6.2.57.845} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized
    Forge{9.10.0.845} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized
    CosmeticaModInfo.ID{CosmeticaModInfo.MOD_V } [CosmeticaModInfo.MOD_N] (bin) Unloaded->Constructed->Errored
    Launched Version: 1.6
    LWJGL: 2.9.0
    OpenGL: GeForce GT 240/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Pack: Default
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Forge modding tutorials
    you pointed me in the right direction again lol it wasn't in assets lol stupid mistakes! I do have another question, I have made models like counters they are about two blocks wide. If I wanted to make it so you cant walk through half of them would that be the block bounds?
    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Did the direction placement change?
    Well I tried it but I'm still learning java so i got lost...I didn't really know what to do with it i guess...
    Posted in: Modification Development
  • 0

    posted a message on Did the direction placement change?
    I haven't had a chance to try it yet, fairly busy today i will later today tho! I'm making stuff like tables, barrels, tents, bookshelves, light posts and what not, so I don't think making a regular block will suffice...Magic spells are next on my list lol after i figure this out and finish up a few more models!
    Posted in: Modification Development
  • 0

    posted a message on Did the direction placement change?
    Well its basically a block, but i was under the impression it had to be a TE... I made models in techne and am trying to render them as blocks i guess...The models don't actually do anything they are just for visuals, so I thouht it didnt need to be an TE but that is what someone helped me to create. It worked great in 1.5.2...then the update came....
    Posted in: Modification Development
  • 0

    posted a message on Did the direction placement change?
    It didn't affect anything for me... now I'm just lost lol

    block class

    package mods.cosmetica.common;
    
    import static net.minecraftforge.common.ForgeDirection.EAST;
    import static net.minecraftforge.common.ForgeDirection.NORTH;
    import static net.minecraftforge.common.ForgeDirection.SOUTH;
    import static net.minecraftforge.common.ForgeDirection.WEST;
    
    import java.util.Random;
    
    import net.minecraft.block.Block;
    import net.minecraft.block.BlockContainer;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.renderer.texture.IconRegister;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.entity.EntityLiving;
    import net.minecraft.entity.EntityLivingBase;
    import net.minecraft.item.ItemStack;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.tileentity.TileEntityFurnace;
    import net.minecraft.util.MathHelper;
    import net.minecraft.world.IBlockAccess;
    import net.minecraft.world.World;
    
    
    
    public class Grave1Block extends BlockContainer{
    
    
    
    /**
    	 * Called whenever the block is added into the world. Args: world, x, y, z
    	 */
    public void onBlockAdded(World par1World, int par2, int par3, int par4)
    {
    	 super.onBlockAdded(par1World, par2, par3, par4);
    	 this.setDefaultDirection(par1World, par2, par3, par4);
    }
    
    /**
    	 * set a blocks direction
    	 */
    private void setDefaultDirection(World par1World, int par2, int par3, int par4)
    {
    	 if (!par1World.isRemote)
    	 {
    		 int l = par1World.getBlockId(par2, par3, par4 - 1);
    		 int i1 = par1World.getBlockId(par2, par3, par4 + 1);
    		 int j1 = par1World.getBlockId(par2 - 1, par3, par4);
    		 int k1 = par1World.getBlockId(par2 + 1, par3, par4);
    		 byte b0 = 3;
    
    		 if (Block.opaqueCubeLookup[l] && !Block.opaqueCubeLookup[i1])
    		 {
    			 b0 = 3;
    		 }
    
    		 if (Block.opaqueCubeLookup[i1] && !Block.opaqueCubeLookup[l])
    		 {
    			 b0 = 2;
    		 }
    
    		 if (Block.opaqueCubeLookup[j1] && !Block.opaqueCubeLookup[k1])
    		 {
    			 b0 = 5;
    		 }
    
    		 if (Block.opaqueCubeLookup[k1] && !Block.opaqueCubeLookup[j1])
    		 {
    			 b0 = 4;
    		 }
    
    		 par1World.setBlockMetadataWithNotify(par2, par3, par4, b0, 2);
    	 }
    }
    public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLivingBase par5EntityLivingBase, ItemStack par6ItemStack)
    {
    	 int l = MathHelper.floor_double((double)(par5EntityLivingBase.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3;
    
    	 if (l == 0)
    	 {
    		 par1World.setBlockMetadataWithNotify(par2, par3, par4, 2, 2);
    	 }
    
    	 if (l == 1)
    	 {
    		 par1World.setBlockMetadataWithNotify(par2, par3, par4, 5, 2);
    	 }
    
    	 if (l == 2)
    	 {
    		 par1World.setBlockMetadataWithNotify(par2, par3, par4, 3, 2);
    	 }
    
    	 if (l == 3)
    	 {
    		 par1World.setBlockMetadataWithNotify(par2, par3, par4, 4, 2);
    	 }
    
    	 if (par6ItemStack.hasDisplayName())
    	 {
    		 ((TileEntityFurnace)par1World.getBlockTileEntity(par2, par3, par4)).setGuiDisplayName(par6ItemStack.getDisplayName());
    	 }
    }
    
    private static int getMetadataBasedOnRotation(int rotation) {
    if (rotation >= 315 || rotation < 45) {
    	 return 1;
    } else if (rotation >= 45 && rotation < 135) {
    	 return 2;
    } else if (rotation >= 135 && rotation < 225) {
    	 return 0;
    } else {
    	 return 3;
    }
    }
    
    public Grave1Block(int id, Material mat) {
    super(id, mat);
    
    
    this.setHardness(1F);
    this.setResistance(1F);
    this.setLightValue(0F);
    //this.setBlockBounds(0.1F, 0F, 0.1F, 0.9F, 1F, 0.9F); //min x y z max x y z
    }
    
    
    
    
    	 public boolean isOpaqueCube() {
    return false;
    }
    
    	 public boolean renderAsNormalBlock() {
    return false;
    }
    
    	 public int getRenderType(){
    return -1;
    	 }
    
    	 private static void replaceGround(World world, int x, int y, int z) {
    		 int botBlockID = world.getBlockId(x, y, z);
    		 if (botBlockID == 2 || botBlockID == 110) {
    			 world.setBlock(x, y, z, Block.dirt.blockID);
    		 }
    	 }
    
    	 public static int getMetaDirection(int direction) {
    		 switch (direction) {
    		 case 0: // S
    				 return 0;
    			 case 1: // N
    				 return 2;
    			 case 2: // E
    				 return 3;
    			 case 3: // W
    				 return 1;
    			 default:
    				 return 2;
    		 }
    
    	 }
    
    	 protected boolean bFull3D = false;
    
    @Override
    public TileEntity createNewTileEntity(World world) {
    
    return new TileEntityGrave1();
    }
    
    
    }


    render class

    package mods.cosmetica.common;
    
    import org.lwjgl.opengl.GL11;
    
    import net.minecraft.block.Block;
    import net.minecraft.client.renderer.OpenGlHelper;
    import net.minecraft.client.renderer.Tessellator;
    import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.util.ResourceLocation;
    import net.minecraft.world.World;
    
    public class RenderGrave1 extends TileEntitySpecialRenderer{
    
    public RenderGrave1(){
    aModel = new ModelGrave1();
    }
    
    public void renderTileEntityAt(TileEntity te, double x, double y, double z, float f) {
    	 TileEntityGrave1 tileEntity = (TileEntityGrave1) te;
    
    	 int meta = te.worldObj.getBlockMetadata((int) x,(int) y,(int) z);
    
    GL11.glPushMatrix();
    GL11.glTranslatef((float)x + 0.5F, (float)y + 1.52F, (float)z + 0.5F);
    
    
    
    
    	 switch (getMetaDirection(meta)) {
    		 case 0:
    			 GL11.glRotatef(0, 0.0F, 1.0F, 0.0F);
    			 break;
    
    		 case 1:
    			 GL11.glRotatef(90, 0.0F, 1.0F, 0.0F);
    			 break;
    
    		 case 2:
    			 GL11.glRotatef(0, 0.0F, 1.0F, 0.0F);
    			 break;
    
    		 case 3:
    			 GL11.glRotatef(270, 0.0F, 1.0F, 0.0F);
    			 break;
    	 }
    
    
    
    
    GL11.glRotatef(180F, 0F, 0F, 1F);
    func_110628_a(new ResourceLocation("cosmetica:textures/models/grave1.png"));
    GL11.glPushMatrix();
    aModel.renderAll(0.0625F);
    GL11.glPopMatrix();
    GL11.glPopMatrix();
    }
    
    
    public static int getMetaDirection(int meta) {
    		 switch (meta) {
    						 case 0: // S
    										 return 0;
    						 case 1: // N
    										 return 2;
    						 case 2: // E
    										 return 3;
    						 case 3: // W
    										 return 1;
    						 default:
    										 return 2;
    		 }
    }
    
    
    
    
    private ModelGrave1 aModel;
    
    
    }

    Posted in: Modification Development
  • 0

    posted a message on Did the direction placement change?
    int meta = world.getBlockMetadata((int) x,(int) y,(int) z);

    world cannot be resolved and im not sure what to do with it...all the options it has changes the world class, and i dont wanna do that


    after messing around with it for a long time im pretty sure
      switch (getMetaDirection(meta)) {
    		  case 0:
    			  GL11.glRotatef(180f, 0.0F, 1.0F, 0.0F);
    			  break;
    		  case 1:
    			  GL11.glRotatef(-180f, 0.0F, 1.0F, 0.0F);
    			  break;
    		  case 2:
    			  GL11.glRotatef(-90f, 0.0F, 1.0F, 0.0F);
    			  break;
    		  case 3:
    			  GL11.glRotatef(-0f, 0.0F, 1.0F, 0.0F);
    			  break;
    	  }

    is where my issue is. I can change their directions they are facing all except one....
    Posted in: Modification Development
  • 0

    posted a message on Did the direction placement change?
    i tried that but world gave me issues, The method getBlockMetadata(int, int, int) in the type World is not applicable for the arguments (double, double, double), which then my options are to change world....
    Posted in: Modification Development
  • 0

    posted a message on Did the direction placement change?
    private static int getmetaDirection(int meta) {
    	    switch (meta) {
    		    case 0: // S
    			    return 0;
    		    case 1: // N
    			    return 2;
    		    case 2: // E
    			    return 3;
    		    case 3: // W
    			    return 1;
    		    default:
    			    return 2;
    	    }
        }

    This is what i have, did it change too? It used to work fine.
    Posted in: Modification Development
  • To post a comment, please or register a new account.