Jump to content

Alexthe666

Members
  • Posts

    58
  • Joined

  • Last visited

Posts posted by Alexthe666

  1. ModelBiped's textureHeight is 32. ModelPlayer's texture height is 64. here is your two options:

     

    new model, extending ModelBiped and setting textureHeight to 64,

     

    or

     

    change your texture to ModelBiped's format, look at the normal zombie texture as an example.

  2. Hello. I have an event that tells me if certain keys are down. They work as intended in the workspace, but for some reason, outside of the workspace, isKeyDown() is never true.

     

    my event code:

     

     

    @SubscribeEvent
    public void handleClientTick(ClientTickEvent event) {
    	if (Minecraft.getMinecraft().inGameHasFocus && Minecraft.getMinecraft().thePlayer != null) {
    	 Minecraft.getMinecraft().thePlayer.worldObj.spawnParticle(EnumParticleTypes.SWEEP_ATTACK, Minecraft.getMinecraft().thePlayer.posX, Minecraft.getMinecraft().thePlayer.posY + 2, Minecraft.getMinecraft().thePlayer.posZ, 0, 0, 0, new int[0]);
    	}
    	if (checkIfPlayer()) {
    		 Minecraft.getMinecraft().thePlayer.worldObj.spawnParticle(EnumParticleTypes.CLOUD, Minecraft.getMinecraft().thePlayer.posX, Minecraft.getMinecraft().thePlayer.posY + 2, Minecraft.getMinecraft().thePlayer.posZ, 0, 0, 0, new int[0]);
    		Entity dragon = Minecraft.getMinecraft().thePlayer.getRidingEntity();
    		if (Minecraft.getMinecraft().gameSettings.keyBindJump.isKeyDown()) {
    			IceAndFire.NETWORK_WRAPPER.sendToServer(new MessageDragonKeys(dragon.getEntityId(), 0));
    		}
    		if (Minecraft.getMinecraft().gameSettings.keyBindSneak.isKeyDown()) {
    			 Minecraft.getMinecraft().thePlayer.worldObj.spawnParticle(EnumParticleTypes.FIREWORKS_SPARK, Minecraft.getMinecraft().thePlayer.posX, Minecraft.getMinecraft().thePlayer.posY + 2, Minecraft.getMinecraft().thePlayer.posZ, 0, 0, 0, new int[0]);
    			IceAndFire.NETWORK_WRAPPER.sendToServer(new MessageDragonKeys(dragon.getEntityId(), 1));
    		}
    		if (ModKeys.dragon_fireAttack.isKeyDown()) {
    			IceAndFire.NETWORK_WRAPPER.sendToServer(new MessageDragonKeys(dragon.getEntityId(), 2));
    		}
    		if (ModKeys.dragon_strike.isKeyDown()) {
    			IceAndFire.NETWORK_WRAPPER.sendToServer(new MessageDragonKeys(dragon.getEntityId(), 3));
    		}
    		if (ModKeys.dragon_dismount.isKeyDown()) {
    			IceAndFire.NETWORK_WRAPPER.sendToServer(new MessageDragonKeys(dragon.getEntityId(), 4));
    		}
    	}
    }
    
    public boolean checkIfPlayer() {
    	if (Minecraft.getMinecraft().inGameHasFocus && Minecraft.getMinecraft().thePlayer != null) {
    		return Minecraft.getMinecraft().thePlayer.ticksExisted % 2 == 0 && Minecraft.getMinecraft().thePlayer.worldObj.isRemote && Minecraft.getMinecraft().thePlayer.getRidingEntity() != null && Minecraft.getMinecraft().thePlayer.getRidingEntity() instanceof EntityDragonBase;
    	} else {
    		return false;
    	}
    }
    

     

     

     

    The farthest particle that spawns is the CLOUD, meaning that the event is working but the keys are not working.

  3. Hi. I have a leaves block that works perfectly fine except for one issue: When on fast, the leaves render with a white background instead of a black one. An example:

     

    Normal Fancy Render:

     

     

    QD0AMvj.png

     

     

    White Fast Render:

     

     

    OfokHnh.png

     

     

     

    The class file for the leaves block:

     

     

    package com.github.alexthe666.archipelago.block;
    
    import java.util.List;
    
    import net.minecraft.block.BlockLeaves;
    import net.minecraft.block.BlockPlanks;
    import net.minecraft.block.BlockPlanks.EnumType;
    import net.minecraft.block.properties.IProperty;
    import net.minecraft.block.state.BlockStateContainer;
    import net.minecraft.block.state.IBlockState;
    import net.minecraft.init.Blocks;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraft.util.BlockRenderLayer;
    import net.minecraft.util.EnumFacing;
    import net.minecraft.util.math.BlockPos;
    import net.minecraft.world.IBlockAccess;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.relauncher.SideOnly;
    
    import com.github.alexthe666.archipelago.Archipelago;
    import com.github.alexthe666.archipelago.enums.EnumTrees;
    
    public class BlockArchipelagoLeaves extends BlockLeaves {
    
    public BlockArchipelagoLeaves(EnumTrees tree) {
    	super();
    	this.setCreativeTab(Archipelago.tab);
    	this.setUnlocalizedName("archipelago." + tree.name().toLowerCase() + "_leaves");
    	this.setCreativeTab(Archipelago.tab);
    	GameRegistry.registerBlock(this, tree.name().toLowerCase() + "_leaves");
    	Archipelago.PROXY.addItemRender(Item.getItemFromBlock(this), tree.name().toLowerCase() + "_leaves");
    }
    
    @Override
    public EnumType getWoodType(int meta) {
    	return EnumType.OAK;
    }
    
    @Override
    public List<ItemStack> onSheared(ItemStack item, net.minecraft.world.IBlockAccess world, BlockPos pos, int fortune) {
    	return java.util.Arrays.asList(new ItemStack(this));
    }
    
    public IBlockState getStateFromMeta(int meta) {
    	return this.getDefaultState().withProperty(DECAYABLE, Boolean.valueOf((meta & 4) == 0)).withProperty(CHECK_DECAY, Boolean.valueOf((meta &  > 0));
    }
    
    public int getMetaFromState(IBlockState state) {
    	int i = 0;
    	if (!((Boolean) state.getValue(DECAYABLE)).booleanValue()) {
    		i |= 4;
    	}
    
    	if (((Boolean) state.getValue(CHECK_DECAY)).booleanValue()) {
    		i |= 8;
    	}
    
    	return i;
    }
    
    protected BlockStateContainer createBlockState() {
    	return new BlockStateContainer(this, new IProperty[] { DECAYABLE, CHECK_DECAY });
    }
    
    @Override
    public boolean isOpaqueCube(IBlockState state) {
    	return Blocks.LEAVES.isOpaqueCube(state);
    }
    
    @SideOnly(Side.CLIENT)
    @Override
    public boolean shouldSideBeRendered(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing side) {
    	return Blocks.LEAVES.shouldSideBeRendered(state, world, pos, side);
    }
    
    @SideOnly(Side.CLIENT)
    public BlockRenderLayer getBlockLayer() {
    	return Blocks.LEAVES.getBlockLayer();
    }
    
    public boolean isVisuallyOpaque() {
    	return true;
    }
    
    }
    

     

     

     

    It would be greatly appreciated if I could get any help at all on this. Thanks in advance :)

  4. Hi. im just running a few tests, changing the player size from 0.6, 1.8, to 0.5, 0.5. However, pressing F3 + B renders the same-old vanilla bounding box, with the red eyeheight changed to the correct position(good). When the player bumps into a wall or another entity (or anything with an AxisAllianedBB), it changes from:

    width=800 height=449http://i1290.photobucket.com/albums/b533/Alexthe666/2016-06-22_13.46.05_zpspl1f5nz8.png[/img]

     

    to

     

    width=800 height=449http://i1290.photobucket.com/albums/b533/Alexthe666/2016-06-22_13.46.26_zpsdascxhmk.png[/img]

     

    The second image is correct, but it only is correct when collided.

     

    Here is my event(called on both server and client):

    @SubscribeEvent
    public void onEntityUpdate(LivingUpdateEvent event) {
    	float scale = SizeChangeUtils.getScale(event.getEntity());
    	System.out.println(event.getEntity().worldObj.isRemote);
    	try {
    		SizeChangeUtils.setSize(event.getEntity(), 0.5F, 0.5F);
    	} catch (ReflectiveOperationException e) {
    		e.printStackTrace();
    	}
    }
    

     

    And here is the reflection in progress:

    static {
    	for (Method method : Entity.class.getDeclaredMethods()) {
    		for (String name : new String[] { "setSize", "func_177725_a" }) {
    			if (method.getName().equals(name)) {
    				method.setAccessible(true);
    				setSize = method;
    				break;
    			}
    		}
    	}
    }
    
    public static void setSize(Entity entity, float x, float y)
    		throws ReflectiveOperationException {
    	setSize.invoke(entity, x, y);
    	entity.width = x;
    	entity.height = y;
    }
    

     

  5. Hello. I have a simple entity:

    https://github.com/Alex-the-666/Ice_and_Fire/blob/master/src/main/java/com/github/alexthe666/iceandfire/entity/EntityFireDragon.java

    That uses EntityAIWander.

    However, I've found that when the wander tries moving with

             this.entity.getNavigator().tryMoveToXYZ(this.xPosition, this.yPosition, this.zPosition, this.speed); 

    it immediately returns

     this.entity.getNavigator().noPath() 

    .

     

    Here is the entity's superclass if you need to see it:

    https://github.com/Alex-the-666/Ice_and_Fire/blob/master/src/main/java/com/github/alexthe666/iceandfire/entity/EntityDragonBase.java

  6. I recently updated my mod from 1.9 to 1.9.4, all is well except that creating custom armors is very messed up. I registered my armor material like this:

    public static ArmorMaterial silverMetal = EnumHelper.addArmorMaterial("Silver", "iceandfire:armor_silverMetal", 25, new int[] { 2, 7, 6, 2 }, 20, SoundEvents.ITEM_ARMOR_EQUIP_CHAIN);
    

     

    and initialized my item like this:

    	silver_helmet = new ItemSilverArmor(silverMetal, 0, EntityEquipmentSlot.HEAD, "armor_silverMetal_helmet", "iceandfire.silver_helmet");
    

     

     

    However I get a crash.

     

     

    [08:43:17] [Client thread/ERROR] [FML]: Caught exception from iceandfire
    java.lang.ExceptionInInitializerError
    at com.github.alexthe666.iceandfire.IceAndFire.init(IceAndFire.java:76) ~[bin/:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:563) ~[forgeSrc-1.9.4-12.17.0.1917-1.9.4.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:228) ~[forgeSrc-1.9.4-12.17.0.1917-1.9.4.jar:?]
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:206) ~[forgeSrc-1.9.4-12.17.0.1917-1.9.4.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135) [LoadController.class:?]
    at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:765) [Loader.class:?]
    at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:316) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:557) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:384) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: java.lang.RuntimeException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, java.lang.String, int, [i, int, net.minecraft.util.SoundEvent)
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:347) ~[EnumHelper.class:?]
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:217) ~[EnumHelper.class:?]
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:203) ~[EnumHelper.class:?]
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:189) ~[EnumHelper.class:?]
    at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:63) ~[EnumHelper.class:?]
    at com.github.alexthe666.iceandfire.core.ModItems.<clinit>(ModItems.java:72) ~[ModItems.class:?]
    ... 44 more
    Caused by: java.lang.NoSuchMethodException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, java.lang.String, int, [i, int, net.minecraft.util.SoundEvent)
    at java.lang.Class.getConstructor0(Unknown Source) ~[?:1.8.0_91]
    at java.lang.Class.getDeclaredConstructor(Unknown Source) ~[?:1.8.0_91]
    at net.minecraftforge.common.util.EnumHelper.getConstructorAccessor(EnumHelper.java:145) ~[EnumHelper.class:?]
    at net.minecraftforge.common.util.EnumHelper.makeEnum(EnumHelper.java:154) ~[EnumHelper.class:?]
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:337) ~[EnumHelper.class:?]
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:217) ~[EnumHelper.class:?]
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:203) ~[EnumHelper.class:?]
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:189) ~[EnumHelper.class:?]
    at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:63) ~[EnumHelper.class:?]
    at com.github.alexthe666.iceandfire.core.ModItems.<clinit>(ModItems.java:72) ~[ModItems.class:?]
    ... 44 more
    [08:43:17] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: ---- Minecraft Crash Report ----
    // This doesn't make any sense!
    
    Time: 6/13/16 8:43 AM
    Description: There was a severe problem during mod loading that has caused the game to fail
    
    net.minecraftforge.fml.common.LoaderException: java.lang.ExceptionInInitializerError
    at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:179)
    at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:767)
    at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:316)
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:557)
    at net.minecraft.client.Minecraft.run(Minecraft.java:384)
    at net.minecraft.client.main.Main.main(Main.java:118)
    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:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    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.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    at GradleStart.main(GradleStart.java:26)
    Caused by: java.lang.ExceptionInInitializerError
    at com.github.alexthe666.iceandfire.IceAndFire.init(IceAndFire.java:76)
    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.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:563)
    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.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:228)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:206)
    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.EventSubscriber.handleEvent(EventSubscriber.java:74)
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
    at com.google.common.eventbus.EventBus.post(EventBus.java:275)
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:135)
    at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:765)
    ... 16 more
    Caused by: java.lang.RuntimeException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, java.lang.String, int, [i, int, net.minecraft.util.SoundEvent)
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:347)
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:217)
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:203)
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:189)
    at net.minecraftforge.common.util.EnumHelper.addArmorMaterial(EnumHelper.java:63)
    at com.github.alexthe666.iceandfire.core.ModItems.<clinit>(ModItems.java:72)
    ... 44 more
    Caused by: java.lang.NoSuchMethodException: net.minecraft.item.ItemArmor$ArmorMaterial.<init>(java.lang.String, int, java.lang.String, int, [i, int, net.minecraft.util.SoundEvent)
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getDeclaredConstructor(Unknown Source)
    at net.minecraftforge.common.util.EnumHelper.getConstructorAccessor(EnumHelper.java:145)
    at net.minecraftforge.common.util.EnumHelper.makeEnum(EnumHelper.java:154)
    at net.minecraftforge.common.util.EnumHelper.addEnum(EnumHelper.java:337)
    ... 49 more
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    Minecraft Version: 1.9.4
    Operating System: Windows 8.1 (amd64) version 6.3
    Java Version: 1.8.0_91, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 585802192 bytes (558 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.28 Powered by Forge 12.17.0.1917 5 mods loaded, 5 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHI	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    UCHI	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.9.4-12.17.0.1917-1.9.4.jar) 
    UCHI	Forge{12.17.0.1917} [Minecraft Forge] (forgeSrc-1.9.4-12.17.0.1917-1.9.4.jar) 
    UCHE	iceandfire{0.1.4} [ice and Fire] (bin) 
    UCHI	llibrary{1.3.1} [LLibrary] (llibrary-1.3.1-1.9-dev.jar) 
    Loaded coremods (and transformers): 
    GL info: ' Vendor: 'Intel' Version: '4.2.0 - Build 10.18.10.3316' Renderer: 'Intel(R) HD Graphics 4400'
    [08:43:17] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:646]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\alexr_000\Desktop\Mods\Ice_and_Fire\eclipse\.\crash-reports\crash-2016-06-13_08.43.17-client.txt
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    

     

     

     

    Now, if we look at the ArmorMaterial Enum, this is how they are registered:

    LEATHER("leather", 5, new int[]{1, 2, 3, 1}, 15, SoundEvents.ITEM_ARMOR_EQUIP_LEATHER, 0.0F),
            CHAIN("chainmail", 15, new int[]{1, 4, 5, 2}, 12, SoundEvents.ITEM_ARMOR_EQUIP_CHAIN, 0.0F),
            IRON("iron", 15, new int[]{2, 5, 6, 2}, 9, SoundEvents.ITEM_ARMOR_EQUIP_IRON, 0.0F),
            GOLD("gold", 7, new int[]{1, 3, 5, 2}, 25, SoundEvents.ITEM_ARMOR_EQUIP_GOLD, 0.0F),
            DIAMOND("diamond", 33, new int[]{3, 6, 8, 3}, 10, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND, 2.0F);
    

     

    I think this issue is caused by the extra param in the addEnum method, however I want to know about your thoughts.

  7. {
        "pools": [
            {
                "rolls": {
                    "min": 3,
                    "max": 8
                },
                "entries": [
                    {
                        "type": "item",
                        "name": "minecraft:diamond",
                        "functions": [
                            {
                                "function": "set_count",
                                "count": {
                                    "min": 1,
                                    "max": 3
                                }
                            }
                        ],
                        "weight": 3
                    },
                    {
                        "type": "item",
                        "name": "minecraft:iron_ingot",
                        "functions": [
                            {
                                "function": "set_count",
                                "count": {
                                    "min": 1,
                                    "max": 5
                                }
                            }
                        ],
                        "weight": 10
                    },
                    {
                        "type": "item",
                        "name": "minecraft:gold_ingot",
                        "functions": [
                            {
                                "function": "set_count",
                                "count": {
                                    "min": 1,
                                    "max": 3
                                }
                            }
                        ],
                        "weight": 5
                    },
                    {
                        "type": "item",
                        "name": "minecraft:bread",
                        "functions": [
                            {
                                "function": "set_count",
                                "count": {
                                    "min": 1,
                                    "max": 3
                                }
                            }
                        ],
                        "weight": 15
                    },
                    {
                        "type": "item",
                        "name": "minecraft:apple",
                        "functions": [
                            {
                                "function": "set_count",
                                "count": {
                                    "min": 1,
                                    "max": 3
                                }
                            }
                        ],
                        "weight": 15
                    },
                    {
                        "type": "item",
                        "name": "minecraft:iron_pickaxe",
                        "weight": 5
                    },
                    {
                        "type": "item",
                        "name": "minecraft:iron_sword",
                        "weight": 5
                    },
                    {
                        "type": "item",
                        "name": "minecraft:iron_chestplate",
                        "weight": 5
                    },
                    {
                        "type": "item",
                        "name": "minecraft:iron_helmet",
                        "weight": 5
                    },
                    {
                        "type": "item",
                        "name": "minecraft:iron_leggings",
                        "weight": 5
                    },
                    {
                        "type": "item",
                        "name": "minecraft:iron_boots",
                        "weight": 5
                    },
                    {
                        "type": "item",
                        "name": "minecraft:obsidian",
                        "functions": [
                            {
                                "function": "set_count",
                                "count": {
                                    "min": 3,
                                    "max": 7
                                }
                            }
                        ],
                        "weight": 5
                    },
                    {
                        "type": "item",
                        "name": "minecraft:sapling",
                        "functions": [
                            {
                                "function": "set_count",
                                "count": {
                                    "min": 3,
                                    "max": 7
                                }
                            }
                        ],
                        "weight": 5
                    },
                    {
                        "type": "item",
                        "name": "minecraft:saddle",
                        "weight": 3
                    },
                    {
                        "type": "item",
                        "name": "minecraft:iron_horse_armor",
                        "weight": 1
                    },
                    {
                        "type": "item",
                        "name": "minecraft:golden_horse_armor",
                        "weight": 1
                    },
                    {
                        "type": "item",
                        "name": "minecraft:diamond_horse_armor",
                        "weight": 1
                    }
                ]
            }
        ]
    }
    

×
×
  • Create New...

Important Information

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