Résolu Problème json fence gate
-
Bonjour tout le monde aujourd’hui un probléme de json…
Je suis actuellement en train de recréer tous les blocs de bases craftable avec du bois, barrière, demie-dalle, portillon, porte etc… Quand je me suis heurté à un probléme récurrent, les jsons. Mais c’est vraiment quelque chose de particulié étant donné que pour mes barrières j’ai aucun souci et pourtant les “blocs” sont quasi identiques niveau code
La classe reprise de celle de base (rien de très compliqué en soit) :
- BaseFenceGate -
package mods.emotion.blocks.base; import mods.emotion.creativeTabs.EmotionTab; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyBool; import net.minecraft.block.state.BlockState; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class BaseFenceGate extends BaseDirectional { public static final PropertyBool OPEN = PropertyBool.create("open"); public static final PropertyBool POWERED = PropertyBool.create("powered"); public static final PropertyBool IN_WALL = PropertyBool.create("in_wall"); public BaseFenceGate() { super(Material.wood); this.setDefaultState(this.blockState.getBaseState().withProperty(OPEN, Boolean.valueOf(false)).withProperty(POWERED, Boolean.valueOf(false)).withProperty(IN_WALL, Boolean.valueOf(false))); this.setCreativeTab(EmotionTab.EmotionCreativeTab5); } @Override public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos) { EnumFacing.Axis axis = ((EnumFacing)state.getValue(FACING)).getAxis(); if(axis == EnumFacing.Axis.Z && (worldIn.getBlockState(pos.west()).getBlock() == Blocks.cobblestone_wall || worldIn.getBlockState(pos.east()).getBlock() == Blocks.cobblestone_wall) || axis == EnumFacing.Axis.X && (worldIn.getBlockState(pos.north()).getBlock() == Blocks.cobblestone_wall || worldIn.getBlockState(pos.south()).getBlock() == Blocks.cobblestone_wall)) { state = state.withProperty(IN_WALL, Boolean.valueOf(true)); } return state; } @Override public boolean canPlaceBlockAt(World worldIn, BlockPos pos) { return worldIn.getBlockState(pos.down()).getBlock().getMaterial().isSolid() ? super.canPlaceBlockAt(worldIn, pos) : false; } @Override public AxisAlignedBB getCollisionBoundingBox(World worldIn, BlockPos pos, IBlockState state) { if(((Boolean)state.getValue(OPEN)).booleanValue()) { return null; } else { EnumFacing.Axis axis = ((EnumFacing)state.getValue(FACING)).getAxis(); return axis == EnumFacing.Axis.Z ? new AxisAlignedBB((double)pos.getX(), (double)pos.getY(), (double)((float)pos.getZ() + 0.375F), (double)(pos.getX() + 1), (double)((float)pos.getY() + 1.5F), (double)((float)pos.getZ() + 0.625F)) : new AxisAlignedBB((double)((float)pos.getX() + 0.375F), (double)pos.getY(), (double)pos.getZ(), (double)((float)pos.getX() + 0.625F), (double)((float)pos.getY() + 1.5F), (double)(pos.getZ() + 1)); } } @Override public void setBlockBoundsBasedOnState(IBlockAccess worldIn, BlockPos pos) { EnumFacing.Axis axis = ((EnumFacing)worldIn.getBlockState(pos).getValue(FACING)).getAxis(); if(axis == EnumFacing.Axis.Z) { this.setBlockBounds(0.0F, 0.0F, 0.375F, 1.0F, 1.0F, 0.625F); } else { this.setBlockBounds(0.375F, 0.0F, 0.0F, 0.625F, 1.0F, 1.0F); } } @Override public boolean isOpaqueCube() { return false; } @Override public boolean isFullCube() { return false; } @Override public boolean isPassable(IBlockAccess world, BlockPos pos) { return ((Boolean)world.getBlockState(pos).getValue(OPEN)).booleanValue(); } @Override public IBlockState onBlockPlaced(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing()).withProperty(OPEN, Boolean.valueOf(false)).withProperty(POWERED, Boolean.valueOf(false)).withProperty(IN_WALL, Boolean.valueOf(false)); } @Override public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumFacing side, float hitX, float hitY, float hitZ) { if(((Boolean)state.getValue(OPEN)).booleanValue()) { state = state.withProperty(OPEN, Boolean.valueOf(false)); world.setBlockState(pos, state, 2); } else { EnumFacing enumfacing1 = EnumFacing.fromAngle((double)player.rotationYaw); if(state.getValue(FACING) == enumfacing1.getOpposite()) { state = state.withProperty(FACING, enumfacing1); } state = state.withProperty(OPEN, Boolean.valueOf(true)); world.setBlockState(pos, state, 2); } world.playAuxSFXAtEntity(player, ((Boolean)state.getValue(OPEN)).booleanValue() ? 1003 : 1006, pos, 0); return true; } @Override public void onNeighborBlockChange(World world, BlockPos pos, IBlockState state, Block neighborBlock) { if(!world.isRemote) { boolean flag = world.isBlockPowered(pos); if(flag || neighborBlock.canProvidePower()) { if(flag && !((Boolean)state.getValue(OPEN)).booleanValue() && !((Boolean)state.getValue(POWERED)).booleanValue()) { world.setBlockState(pos, state.withProperty(OPEN, Boolean.valueOf(true)).withProperty(POWERED, Boolean.valueOf(true)), 2); world.playAuxSFXAtEntity((EntityPlayer)null, 1003, pos, 0); } else if(!flag && ((Boolean)state.getValue(OPEN)).booleanValue() && ((Boolean)state.getValue(POWERED)).booleanValue()) { world.setBlockState(pos, state.withProperty(OPEN, Boolean.valueOf(false)).withProperty(POWERED, Boolean.valueOf(false)), 2); world.playAuxSFXAtEntity((EntityPlayer)null, 1006, pos, 0); } else if(flag != ((Boolean)state.getValue(POWERED)).booleanValue()) { world.setBlockState(pos, state.withProperty(POWERED, Boolean.valueOf(flag)), 2); } } } } @SideOnly(Side.CLIENT) @Override public boolean shouldSideBeRendered(IBlockAccess world, BlockPos pos, EnumFacing side) { return true; } @Override public IBlockState getStateFromMeta(int meta) { return this.getDefaultState().withProperty(FACING, EnumFacing.getHorizontal(meta)).withProperty(OPEN, Boolean.valueOf((meta & 4) != 0)).withProperty(POWERED, Boolean.valueOf((meta & 8) != 0)); } @Override public int getMetaFromState(IBlockState state) { byte b0 = 0; int i = b0 | ((EnumFacing)state.getValue(FACING)).getHorizontalIndex(); if(((Boolean)state.getValue(POWERED)).booleanValue()) { i |= 8; } if(((Boolean)state.getValue(OPEN)).booleanValue()) { i |= 4; } return i; } @Override protected BlockState createBlockState() { return new BlockState(this, new IProperty[] {FACING, OPEN, POWERED, IN_WALL}); } }
- BaseDirectional -
package mods.emotion.blocks.base; import net.minecraft.block.material.Material; import net.minecraft.block.properties.PropertyDirection; import net.minecraft.util.EnumFacing; public abstract class BaseDirectional extends BaseBlock { public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL); protected BaseDirectional(Material materialIn) { super(materialIn); } }
Les logs de la console :
- Logs -
[15:33:03] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/coco_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/coco_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:33:03] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/orange_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/orange_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:33:04] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/atlas_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/atlas_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:33:04] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/pine_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/pine_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:33:04] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/cherry_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/cherry_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:33:04] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/pear_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/pear_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:33:06] [Client thread/INFO]: Created: 512x512 textures-atlas [15:33:07] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [15:33:07] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Emotion's Mod [15:33:07] [Client thread/INFO]: SoundSystem shutting down… [15:33:07] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [15:33:07] [Sound Library Loader/INFO]: Starting up SoundSystem… [15:33:07] [Thread-9/INFO]: Initializing LWJGL OpenAL [15:33:07] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [15:33:07] [Thread-9/INFO]: OpenAL initialized. [15:33:08] [Sound Library Loader/INFO]: Sound engine started [15:33:08] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/coco_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/coco_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:33:08] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/orange_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/orange_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:33:08] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/atlas_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/atlas_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:33:08] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/pine_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/pine_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:33:08] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/cherry_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/cherry_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?] [15:33:08] [Client thread/ERROR] [FML]: Exception loading model emomod:models/block/pear_fence_gate with vanilla loader, skipping java.io.FileNotFoundException: emomod:models/block/pear_fence_gate.json at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:70) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:260) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.access$1200(ModelLoader.java:51) ~[ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:417) [ModelLoader$VanillaLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:92) [ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadAnyModel(ModelLoader.java:165) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.getModel(ModelLoader.java:148) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader$WeightedRandomModel.<init>(ModelLoader.java:320) [ModelLoader$WeightedRandomModel.class:?] at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:120) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(ModelBakery.java:122) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:98) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:68) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [SimpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:727) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:484) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:325) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_75] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_75] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_75] at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_75] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?] at GradleStart.main(GradleStart.java:45) [start/:?]
Les jsons de ce fameux portillion de malheur :
- blockstates/atlas_fence_gate.json -
{ "variants": { "facing=south,in_wall=false,open=false": { "model": "emomod:atlas_fence_gate_closed" }, "facing=west,in_wall=false,open=false": { "model": "emomod:atlas_fence_gate_closed", "y": 90, "uvlock": true }, "facing=north,in_wall=false,open=false": { "model": "emomod:atlas_fence_gate_closed", "y": 180, "uvlock": true }, "facing=east,in_wall=false,open=false": { "model": "emomod:atlas_fence_gate_closed", "y": 270, "uvlock": true }, "facing=south,in_wall=false,open=true": { "model": "emomod:atlas_fence_gate_open" }, "facing=west,in_wall=false,open=true": { "model": "emomod:atlas_fence_gate_open", "y": 90, "uvlock": true }, "facing=north,in_wall=false,open=true": { "model": "emomod:atlas_fence_gate_open", "y": 180, "uvlock": true }, "facing=east,in_wall=false,open=true": { "model": "emomod:atlas_fence_gate_open", "y": 270, "uvlock": true }, "facing=south,in_wall=true,open=false": { "model": "emomod:atlas_wall_gate_closed" }, "facing=west,in_wall=true,open=false": { "model": "emomod:atlas_wall_gate_closed", "y": 90, "uvlock": true }, "facing=north,in_wall=true,open=false": { "model": "emomod:atlas_wall_gate_closed", "y": 180, "uvlock": true }, "facing=east,in_wall=true,open=false": { "model": "emomod:atlas_wall_gate_closed", "y": 270, "uvlock": true }, "facing=south,in_wall=true,open=true": { "model": "emomod:atlas_wall_gate_open" }, "facing=west,in_wall=true,open=true": { "model": "emomod:atlas_wall_gate_open", "y": 90, "uvlock": true }, "facing=north,in_wall=true,open=true": { "model": "emomod:atlas_wall_gate_open", "y": 180, "uvlock": true }, "facing=east,in_wall=true,open=true": { "model": "emomod:atlas_wall_gate_open", "y": 270, "uvlock": true } } }
- models/block/atlas_fence_gate_closed.json -
{ "parent": "block/fence_gate_closed", "textures": { "texture": "emomod:blocks/planks_atlas" } }
- models/block/atlas_fence_gate_open.json -
{ "parent": "block/fence_gate_open", "textures": { "texture": "emomod:blocks/planks_atlas" } }
- models/block/atlas_wall_gate_closed.json -
{ "parent": "block/wall_gate_closed", "textures": { "texture": "emomod:blocks/planks_atlas" } }
- models/block/atlas_wall_gate_open.json -
{ "parent": "block/wall_gate_open", "textures": { "texture": "emomod:blocks/planks_atlas" } }
Et finalement la peut-être source du probléme (ça ce passe au niveau de l’enregistrement de mes blocs) :
public static Block registerBlock(BaseBlock block, Class itemclass, String name, Object… itemCtorArgs) { if(block.istates == null) { block.istates = BlockStateUtil.getValidStatesForProperties(block.getDefaultState(), block.getProperties()); } name.replace(" ", "_"); block.setUnlocalizedName(name); if(block.hasProperties()) { itemclass = EmotionItemBlock.class; GameRegistry.registerBlock(block, itemclass, name, itemCtorArgs); for(IBlockState state : block.istates) { if(FMLCommonHandler.instance().getSide().isClient()) { String stateName = block.getNameState(state); System.out.println("name is : " + name + ", state name is : " + stateName); ModelBakery.addVariantName(Item.getItemFromBlock(block), new String[] {"emomod:" + name + "_" + stateName}); MainRegistry.proxy.registerBlockTexture(block, block.getMetaFromState(state), name + "_" + stateName); } } } else { GameRegistry.registerBlock(block, itemclass, name, itemCtorArgs); MainRegistry.proxy.registerBlockTexture(block, name); } return block; } public static Block registerBlock(BaseBlock block, Class itemclass, String name) { return registerBlock(block, itemclass, name, new Object[] {}); } public static Block registerBlock(BaseBlock block, String name) { return registerBlock(block, ItemBlock.class, name); }
Je tiens à signaler quand même que le rendue dans l’inventaire ce fait correctement et que ça viens juste du modèle (même si il agis comme un portillon, s’ouvre puis ce ferme il reste carré et sans texture(noir et violet)), merci d’avance à toutes les personnes qui pourrais peut-être m’éclairer.
</init></init></init></init></init></init></init></init></init></init></init></init>
-
Mauvais noms de json, regarde les logs : java.io.fileNotFoundException
-
Justement ce modèle n’est pas sensé être appelé étant donné que le fichier json dans blockstates ne les appelles pas.
-
Justement ce modèle n’est pas sensé être appelé étant donné que le fichier json dans blockstates ne les appelles pas. Exemple pour la barrière quasi identique qui elle fonctionne très bien :
- La classe -
package mods.emotion.blocks.base; import java.util.List; import mods.emotion.creativeTabs.EmotionTab; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyBool; import net.minecraft.block.state.BlockState; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.ItemLead; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class BaseFence extends BaseBlock { public static final PropertyBool NORTH = PropertyBool.create("north"); public static final PropertyBool EAST = PropertyBool.create("east"); public static final PropertyBool SOUTH = PropertyBool.create("south"); public static final PropertyBool WEST = PropertyBool.create("west"); public BaseFence() { super(Material.wood); this.setDefaultState(this.blockState.getBaseState().withProperty(NORTH, Boolean.valueOf(false)).withProperty(EAST, Boolean.valueOf(false)).withProperty(SOUTH, Boolean.valueOf(false)).withProperty(WEST, Boolean.valueOf(false))); this.setHardness(2.0F); this.setResistance(5.0F); this.setStepSound(soundTypeWood); this.setCreativeTab(EmotionTab.EmotionCreativeTab5); } @Override public void addCollisionBoxesToList(World world, BlockPos pos, IBlockState state, AxisAlignedBB mask, List list, Entity collidingEntity) { boolean flag = this.canConnectTo(world, pos.north()); boolean flag1 = this.canConnectTo(world, pos.south()); boolean flag2 = this.canConnectTo(world, pos.west()); boolean flag3 = this.canConnectTo(world, pos.east()); float f = 0.375F; float f1 = 0.625F; float f2 = 0.375F; float f3 = 0.625F; if(flag) { f2 = 0.0F; } if(flag1) { f3 = 1.0F; } if(flag || flag1) { this.setBlockBounds(f, 0.0F, f2, f1, 1.5F, f3); super.addCollisionBoxesToList(world, pos, state, mask, list, collidingEntity); } f2 = 0.375F; f3 = 0.625F; if(flag2) { f = 0.0F; } if(flag3) { f1 = 1.0F; } if(flag2 || flag3 || !flag && !flag1) { this.setBlockBounds(f, 0.0F, f2, f1, 1.5F, f3); super.addCollisionBoxesToList(world, pos, state, mask, list, collidingEntity); } if(flag) { f2 = 0.0F; } if(flag1) { f3 = 1.0F; } this.setBlockBounds(f, 0.0F, f2, f1, 1.0F, f3); } @Override public void setBlockBoundsBasedOnState(IBlockAccess world, BlockPos pos) { boolean flag = this.canConnectTo(world, pos.north()); boolean flag1 = this.canConnectTo(world, pos.south()); boolean flag2 = this.canConnectTo(world, pos.west()); boolean flag3 = this.canConnectTo(world, pos.east()); float f = 0.375F; float f1 = 0.625F; float f2 = 0.375F; float f3 = 0.625F; if(flag) { f2 = 0.0F; } if(flag1) { f3 = 1.0F; } if(flag2) { f = 0.0F; } if(flag3) { f1 = 1.0F; } this.setBlockBounds(f, 0.0F, f2, f1, 1.0F, f3); } @Override public boolean isOpaqueCube() { return false; } @Override public boolean isFullCube() { return false; } @Override public boolean isPassable(IBlockAccess world, BlockPos pos) { return false; } public boolean canConnectTo(IBlockAccess world, BlockPos pos) { Block block = world.getBlockState(pos).getBlock(); return block == Blocks.barrier ? false : ((!(block instanceof BaseFence) || block.getMaterial() != this.blockMaterial) && !(block instanceof BaseFenceGate) ? (block.getMaterial().isOpaque() && block.isFullCube() ? block.getMaterial() != Material.gourd : false) : true); } @SideOnly(Side.CLIENT) @Override public boolean shouldSideBeRendered(IBlockAccess world, BlockPos pos, EnumFacing side) { return true; } @Override public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumFacing side, float hitX, float hitY, float hitZ) { return world.isRemote ? true : ItemLead.attachToFence(player, world, pos); } @Override public int getMetaFromState(IBlockState state) { return 0; } @Override public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) { return state.withProperty(NORTH, Boolean.valueOf(this.canConnectTo(world, pos.north()))).withProperty(EAST, Boolean.valueOf(this.canConnectTo(world, pos.east()))).withProperty(SOUTH, Boolean.valueOf(this.canConnectTo(world, pos.south()))).withProperty(WEST, Boolean.valueOf(this.canConnectTo(world, pos.west()))); } @Override protected BlockState createBlockState() { return new BlockState(this, new IProperty[] {NORTH, EAST, WEST, SOUTH}); } }
- blockstates\atlas_fence.json -
{ "variants": { "east=false,north=false,south=false,west=false": { "model": "emomod:atlas_fence_post" }, "east=false,north=true,south=false,west=false": { "model": "emomod:atlas_fence_n", "uvlock": true }, "east=true,north=false,south=false,west=false": { "model": "emomod:atlas_fence_n", "y": 90, "uvlock": true }, "east=false,north=false,south=true,west=false": { "model": "emomod:atlas_fence_n", "y": 180, "uvlock": true }, "east=false,north=false,south=false,west=true": { "model": "emomod:atlas_fence_n", "y": 270, "uvlock": true }, "east=true,north=true,south=false,west=false": { "model": "emomod:atlas_fence_ne", "uvlock": true }, "east=true,north=false,south=true,west=false": { "model": "emomod:atlas_fence_ne", "y": 90, "uvlock": true }, "east=false,north=false,south=true,west=true": { "model": "emomod:atlas_fence_ne", "y": 180, "uvlock": true }, "east=false,north=true,south=false,west=true": { "model": "emomod:atlas_fence_ne", "y": 270, "uvlock": true }, "east=false,north=true,south=true,west=false": { "model": "emomod:atlas_fence_ns", "uvlock": true }, "east=true,north=false,south=false,west=true": { "model": "emomod:atlas_fence_ns", "y": 90, "uvlock": true }, "east=true,north=true,south=true,west=false": { "model": "emomod:atlas_fence_nse", "uvlock": true }, "east=true,north=false,south=true,west=true": { "model": "emomod:atlas_fence_nse", "y": 90, "uvlock": true }, "east=false,north=true,south=true,west=true": { "model": "emomod:atlas_fence_nse", "y": 180, "uvlock": true }, "east=true,north=true,south=false,west=true": { "model": "emomod:atlas_fence_nse", "y": 270, "uvlock": true }, "east=true,north=true,south=true,west=true": { "model": "emomod:atlas_fence_nsew", "uvlock": true } } }
- models\block\atlas_fence_n.json -
{ "parent": "block/fence_n", "textures": { "texture": "emomod:blocks/planks_atlas" } }
- models\block\atlas_fence_ne.json -
{ "parent": "block/fence_ne", "textures": { "texture": "emomod:blocks/planks_atlas" } }
- models\block\atlas_fence_ns.json -
{ "parent": "block/fence_ns", "textures": { "texture": "emomod:blocks/planks_atlas" } }
- models\block\atlas_fence_nse.json -
{ "parent": "block/fence_nse", "textures": { "texture": "emomod:blocks/planks_atlas" } }
- models\block\atlas_fence_nsew.json -
{ "parent": "block/fence_nsew", "textures": { "texture": "emomod:blocks/planks_atlas" } }
- models\block\atlas_fence_post.json -
{ "parent": "block/fence_post", "textures": { "texture": "emomod:blocks/planks_atlas" } }
- models\item\atlas_fence.json -
{ "parent": "emomod:block/atlas_fence_inventory", "display": { "thirdperson": { "rotation": [ 0, 0, 180 ], "translation": [ 0, 1.5, -2.75 ], "scale": [ 0.375, 0.375, 0.375 ] }, "gui": { "rotation": [ 0, 90, 0 ] } } }
-
Il cherche le fichier emomod:models/block/coco_fence_gate.json
mais il ne le trouve pas.
Vérifies qu’il existe bien, car dans ce que tu as donné il n’est pas présent. -
Justement c’est ça le probléme, tout comme la barrière, le portillon à lui aussi des states qui ont chacun un modèle (Exemple : modèle au nord, modèle au sud etc…). Normalement c’est le but du fichier json à l’intérieur du dossier blockstates de donner le chemin des modèles mais dans le cas du portillon il ne le fait pas et le jeu me demande donc un modèle “normal” avec comme nom celui du json de blockstates.
-
Ton bloc s’appelle comment ? (ce que tu as mit dans GameRegistry.registerBlock)
-
Le bloc ce nome “atlas_fence_gate” comme le fichier json qui ce trouve dans blockstates, le probléme c’est que si je crée un fichier json “atlas_fence_gate” dans les modèles mon bloc auras toujours celui-ci peut-importe ces states (c’est pour ça que normalement il y a pas ce probléme).
C’est assez difficile à expliquer mais en gros tous mes autres blocs avec des states non pas besoin d’un modèle du même nom étant donné qu’ils ont tous plusieurs modèles (à voir la barrière), sauf que celui-là apparemment me demande un modèle fixe et je pense sérieusement que c’est un probléme au niveau de l’enregistrement des blocs mais j’ai aucune idée pour fixer ce truc…
Ps: Regardez pour la barrière, elle ne demande en aucun cas un fichier json “atlas_fence” vue qu’il n’existe pas et que j’ai aucune erreur.
-
-* Up *-
Apparemment j’ai tester sans ma méthode pour enregistrer les blocs et l’erreur survient quand même, je sais vraiment pas quoi faire…
Surtout que le probléme est présent aussi pour la porte et demie-dalle. -
Sinon envoies-moi un zip / 7z de ton dossier src, je vais faire des tests de mon côté car là je ne vois pas d’où le problème vient.
-
J’ai trouvé le problème.
Dans ton fichier tu as :
“facing=south,in_wall=false,open=false”: { “model”: “emomod:atlas_fence_gate_closed” },
Or il cherche :
[11:18:28] [Client thread/ERROR] [FML]: Model definition for location emomod:atlas_fence_gate#facing=south,in_wall=true,open=true,powered=true not foundAvec powered en plus.
Dans la classe net.minecraft.client.renderer.BlockModelShapes il y a ça :
this.registerBlockWithStateMapper(Blocks.oak_fence_gate, (new StateMap.Builder()).addPropertiesToIgnore(new IProperty[] {BlockFenceGate.POWERED}).build());
Donc voila pourquoi dans le json de Minecraft il n’y a pas ce powered.
Donc soit tu adapte les lignes pour mettre power=true et power=false en plus à chaque fois (donc le fichier sera deux fois plus long)
Soit faut trouver une méthode pour ignorer cette propriété.Édit : trouvé ! Forge ajoute ce qu’il faut :
ModelLoader.setCustomStateMapper(EmotionBlocks.atlasFenceGate, (new StateMap.Builder()).addPropertiesToIgnore(new IProperty[] {BaseFenceGate.POWERED}).build());
Par contre, j’ai essayé de le mettre dans ta méthode registerRenderThings de ton client proxy au début et ça n’a pas fonctionné. Donc j’ai supposé que c’était dû au fait que la méthode ModelLoader.onRegisterAllBlocks était appelé avant l’event FMLInitializationEvent et c’est le cas, il faut donc mettre cette méthode dans la fonction preInit, puis ça fonctionne. (J’ai fait comme ça : @Mod.EventHandler public void preInit(FMLPreInitializationEvent event) { // Load All Other Class By Type EmotionTab.mainRegistry(); EmotionBlocks.mainRegistry(); EmotionItems.mainRegistry(); EmotionWorld.mainRegistry(); EmotionEntity.mainRegistry(); EmotionAchievement.mainRegistry(); EnchantManager.mainRegistry(); CraftingManager.mainRegistry(); BiomeRegistry.mainRegistry(); if(event.getSide().isClient()) { ModelLoader.setCustomStateMapper(EmotionBlocks.atlasFenceGate, (new StateMap.Builder()).addPropertiesToIgnore(new IProperty[] {BaseFenceGate.POWERED}).build()); } }
Mais tu peux aussi faire un méthode dans ton proxy nommé preInitRender et mettre cette fonction dedans puis appeler proxy.preInitRender(); dans la fonction preInit de ta classe principale.
Par contre attention à ce que les blocs soient initialisés avant de faire cette fonction, sinon EmotionBlocks.atlasFenceGate va être null et donc ça ne va pas fonctionner.Je sens que ces vacance je vais devoir faire un tutoriel complet sur les états de blocs et les rendus avec les jsons car il y en a des choses à dire …
-
Alors déjà merci énormément, ça à due être un gros travaille de recherche cependant pour les imports c’est bien :
import net.minecraftforge.client.model.ModelLoader;
Si oui il me dit :
The method setCustomStateMapper(Block, StateMap) is undefined for the type ModelLoader
Une solution ?
Ps: Je suppose que ça va être la même méthode pour porte et demie-dalle, si oui comment à tu sue que c’était ça le problème ?
-
Oula, si cette méthode n’existe pas c’est que tu utilises une très veille version de Forge : https://github.com/MinecraftForge/MinecraftForge/commit/b8add23d9bc1c225ca0e25a3e3419e6ed89b1879
cette méthode a été ajouté le 4 février. Faut mettre à jour de temps en temps ! -
Alors oui parlons en x) Non j’ai jamais mis à jour depuis le début, j’avais aucun idée qu’il fallait le faire. Je suppose que ça :
http://www.minecraftforgefrance.fr/showthread.php?tid=777
Va mettre utile, merci encore et j’imagine que ça fonctionne alors je passe le sujet en résolue.
-
Tu as juste à modifier la version de Forge dans le build.gradle et refaire un setup.