Résolu Tuyau qui s'adapte
-
Bonjour a tous ,
Je suis actuellement entrain de crée un mod avec des tuyau , j’ai un petit problème au quel je ne trouve pas la solution.
En gros je veux que mon bloc s’adapte au autre quand il est placé a coter de son “clone”(comme les barriere) sauf que cela va un peu plus loin que les barriere mon bloc doit s’adapter aussi en fonction de en haut et en bas.Voila mon code:
La classe du block :
package fr.ezorix.tuyau.block; import fr.ezorix.tuyau.common.Main; import net.minecraft.block.Block; import net.minecraft.block.BlockDirectional; import net.minecraft.block.BlockFence; import net.minecraft.block.BlockFenceGate; 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.item.ItemLead; import net.minecraft.item.ItemStack; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.util.MathHelper; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class BlockTuyau extends Block { /** Whether this fence connects in the northern direction */ public static final PropertyBool NORTH = PropertyBool.create("north"); /** Whether this fence connects in the eastern direction */ public static final PropertyBool EAST = PropertyBool.create("east"); /** Whether this fence connects in the southern direction */ public static final PropertyBool SOUTH = PropertyBool.create("south"); /** Whether this fence connects in the western direction */ public static final PropertyBool WEST = PropertyBool.create("west"); public static final PropertyBool UP = PropertyBool.create("up"); public static final PropertyBool DOWN = PropertyBool.create("down"); public BlockTuyau(Material materialIn) { super(materialIn); 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)).withProperty(UP, Boolean.valueOf(false)).withProperty(DOWN, Boolean.valueOf(false))); } public boolean isFullCube() { return false; } public boolean isOpaqueCube() { return false; } public boolean canConnectTo(IBlockAccess worldIn, BlockPos pos) { Block block = worldIn.getBlockState(pos).getBlock(); return !(block == Main.Tuyau); } @SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockAccess worldIn, BlockPos pos, EnumFacing side) { return true; } public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ) { return worldIn.isRemote ? true : ItemLead.attachToFence(playerIn, worldIn, pos); } /** * Convert the BlockState into the correct metadata value */ public int getMetaFromState(IBlockState state) { return 0; } /** * Get the actual Block state of this Block at the given position. This applies properties not visible in the * metadata, such as fence connections. */ public IBlockState getActualState(IBlockState state, IBlockAccess worldIn, BlockPos pos) { return state.withProperty(NORTH, Boolean.valueOf(this.canConnectTo(worldIn, pos.north()))).withProperty(EAST, Boolean.valueOf(this.canConnectTo(worldIn, pos.east()))).withProperty(SOUTH, Boolean.valueOf(this.canConnectTo(worldIn, pos.south()))).withProperty(WEST, Boolean.valueOf(this.canConnectTo(worldIn, pos.west()))).withProperty(UP, Boolean.valueOf(this.canConnectTo(worldIn, pos.up()))).withProperty(DOWN, Boolean.valueOf(this.canConnectTo(worldIn, pos.down()))); } protected BlockState createBlockState() { return new BlockState(this, new IProperty[] {NORTH, EAST, WEST, SOUTH , UP , DOWN}); } }
Le blockstate :
{ "variants": { "down=false,east=false,north=false,south=false,up=false,west=false": { "model": "tuyau:tuyau", "x": 0, "y": 0, "uvlock": true }, "down=true,east=false,north=false,south=false,up=false,west=false": { "model": "poweradvantage:copper_pipe_n", "x": 90, "y": 0, "uvlock": true }, "down=false,east=true,north=false,south=false,up=false,west=false": { "model": "poweradvantage:copper_pipe_n", "x": 0, "y": 90, "uvlock": true }, "down=false,east=false,north=true,south=false,up=false,west=false": { "model": "poweradvantage:copper_pipe_n", "x": 0, "y": 0, "uvlock": true }, "down=false,east=false,north=false,south=true,up=false,west=false": { "model": "poweradvantage:copper_pipe_n", "x": 0, "y": 180, "uvlock": true }, "down=false,east=false,north=false,south=false,up=true,west=false": { "model": "poweradvantage:copper_pipe_n", "x": 270, "y": 0, "uvlock": true }, "down=false,east=false,north=false,south=false,up=false,west=true": { "model": "poweradvantage:copper_pipe_n", "x": 0, "y": 270, "uvlock": true }, "down=true,east=true,north=false,south=false,up=false,west=false": { "model": "poweradvantage:copper_pipe_nw", "x": 90, "y": 180, "uvlock": true }, "down=true,east=false,north=true,south=false,up=false,west=false": { "model": "poweradvantage:copper_pipe_nw", "x": 90, "y": 90, "uvlock": true }, "down=true,east=false,north=false,south=true,up=false,west=false": { "model": "poweradvantage:copper_pipe_nw", "x": 90, "y": 270, "uvlock": true }, "down=true,east=false,north=false,south=false,up=true,west=false": { "model": "poweradvantage:copper_pipe_ns", "x": 90, "y": 0, "uvlock": true }, "down=true,east=false,north=false,south=false,up=false,west=true": { "model": "poweradvantage:copper_pipe_nw", "x": 90, "y": 0, "uvlock": true }, "down=false,east=true,north=true,south=false,up=false,west=false": { "model": "poweradvantage:copper_pipe_nw", "x": 0, "y": 90, "uvlock": true }, "down=false,east=true,north=false,south=true,up=false,west=false": { "model": "poweradvantage:copper_pipe_nw", "x": 0, "y": 180, "uvlock": true }, "down=false,east=true,north=false,south=false,up=true,west=false": { "model": "poweradvantage:copper_pipe_nw", "x": 270, "y": 180, "uvlock": true }, "down=false,east=true,north=false,south=false,up=false,west=true": { "model": "poweradvantage:copper_pipe_ns", "x": 0, "y": 90, "uvlock": true }, "down=false,east=false,north=true,south=true,up=false,west=false": { "model": "poweradvantage:copper_pipe_ns", "x": 0, "y": 0, "uvlock": true }, "down=false,east=false,north=true,south=false,up=true,west=false": { "model": "poweradvantage:copper_pipe_nw", "x": 270, "y": 90, "uvlock": true }, "down=false,east=false,north=true,south=false,up=false,west=true": { "model": "poweradvantage:copper_pipe_nw", "x": 0, "y": 0, "uvlock": true }, "down=false,east=false,north=false,south=true,up=true,west=false": { "model": "poweradvantage:copper_pipe_nw", "x": 270, "y": 270, "uvlock": true }, "down=false,east=false,north=false,south=true,up=false,west=true": { "model": "poweradvantage:copper_pipe_nw", "x": 0, "y": 270, "uvlock": true }, "down=false,east=false,north=false,south=false,up=true,west=true": { "model": "poweradvantage:copper_pipe_nw", "x": 270, "y": 0, "uvlock": true }, "down=true,east=true,north=true,south=false,up=false,west=false": { "model": "poweradvantage:copper_pipe_nuw", "x": 90, "y": 90, "uvlock": true }, "down=true,east=true,north=false,south=true,up=false,west=false": { "model": "poweradvantage:copper_pipe_nuw", "x": 90, "y": 180, "uvlock": true }, "down=true,east=true,north=false,south=false,up=true,west=false": { "model": "poweradvantage:copper_pipe_dnu", "x": 0, "y": 90, "uvlock": true }, "down=true,east=true,north=false,south=false,up=false,west=true": { "model": "poweradvantage:copper_pipe_dnu", "x": 90, "y": 90, "uvlock": true }, "down=true,east=false,north=true,south=true,up=false,west=false": { "model": "poweradvantage:copper_pipe_dnu", "x": 90, "y": 0, "uvlock": true }, "down=true,east=false,north=true,south=false,up=true,west=false": { "model": "poweradvantage:copper_pipe_dnu", "x": 0, "y": 0, "uvlock": true }, "down=true,east=false,north=true,south=false,up=false,west=true": { "model": "poweradvantage:copper_pipe_nuw", "x": 90, "y": 0, "uvlock": true }, "down=true,east=false,north=false,south=true,up=true,west=false": { "model": "poweradvantage:copper_pipe_dnu", "x": 0, "y": 180, "uvlock": true }, "down=true,east=false,north=false,south=true,up=false,west=true": { "model": "poweradvantage:copper_pipe_nuw", "x": 90, "y": 270, "uvlock": true }, "down=true,east=false,north=false,south=false,up=true,west=true": { "model": "poweradvantage:copper_pipe_dnu", "x": 0, "y": 270, "uvlock": true }, "down=false,east=true,north=true,south=true,up=false,west=false": { "model": "poweradvantage:copper_pipe_nsw", "x": 0, "y": 180, "uvlock": true }, "down=false,east=true,north=true,south=false,up=true,west=false": { "model": "poweradvantage:copper_pipe_nuw", "x": 0, "y": 90, "uvlock": true }, "down=false,east=true,north=true,south=false,up=false,west=true": { "model": "poweradvantage:copper_pipe_nsw", "x": 0, "y": 90, "uvlock": true }, "down=false,east=true,north=false,south=true,up=true,west=false": { "model": "poweradvantage:copper_pipe_nuw", "x": 0, "y": 180, "uvlock": true }, "down=false,east=true,north=false,south=true,up=false,west=true": { "model": "poweradvantage:copper_pipe_nsw", "x": 0, "y": 270, "uvlock": true }, "down=false,east=true,north=false,south=false,up=true,west=true": { "model": "poweradvantage:copper_pipe_dnu", "x": 270, "y": 90, "uvlock": true }, "down=false,east=false,north=true,south=true,up=true,west=false": { "model": "poweradvantage:copper_pipe_dnu", "x": 270, "y": 0, "uvlock": true }, "down=false,east=false,north=true,south=true,up=false,west=true": { "model": "poweradvantage:copper_pipe_nsw", "x": 0, "y": 0, "uvlock": true }, "down=false,east=false,north=true,south=false,up=true,west=true": { "model": "poweradvantage:copper_pipe_nuw", "x": 0, "y": 0, "uvlock": true }, "down=false,east=false,north=false,south=true,up=true,west=true": { "model": "poweradvantage:copper_pipe_nuw", "x": 0, "y": 270, "uvlock": true }, "down=true,east=true,north=true,south=true,up=false,west=false": { "model": "poweradvantage:copper_pipe_nsuw", "x": 180, "y": 180, "uvlock": true }, "down=true,east=true,north=true,south=false,up=true,west=false": { "model": "poweradvantage:copper_pipe_nsuw", "x": 90, "y": 90, "uvlock": true }, "down=true,east=true,north=true,south=false,up=false,west=true": { "model": "poweradvantage:copper_pipe_nsuw", "x": 180, "y": 90, "uvlock": true }, "down=true,east=true,north=false,south=true,up=true,west=false": { "model": "poweradvantage:copper_pipe_nsuw", "x": 90, "y": 180, "uvlock": true }, "down=true,east=true,north=false,south=true,up=false,west=true": { "model": "poweradvantage:copper_pipe_nsuw", "x": 180, "y": 270, "uvlock": true }, "down=true,east=true,north=false,south=false,up=true,west=true": { "model": "poweradvantage:copper_pipe_ensw", "x": 90, "y": 0, "uvlock": true }, "down=true,east=false,north=true,south=true,up=true,west=false": { "model": "poweradvantage:copper_pipe_ensw", "x": 90, "y": 90, "uvlock": true }, "down=true,east=false,north=true,south=true,up=false,west=true": { "model": "poweradvantage:copper_pipe_nsuw", "x": 180, "y": 0, "uvlock": true }, "down=true,east=false,north=true,south=false,up=true,west=true": { "model": "poweradvantage:copper_pipe_nsuw", "x": 90, "y": 0, "uvlock": true }, "down=true,east=false,north=false,south=true,up=true,west=true": { "model": "poweradvantage:copper_pipe_nsuw", "x": 90, "y": 270, "uvlock": true }, "down=false,east=true,north=true,south=true,up=true,west=false": { "model": "poweradvantage:copper_pipe_nsuw", "x": 0, "y": 180, "uvlock": true }, "down=false,east=true,north=true,south=true,up=false,west=true": { "model": "poweradvantage:copper_pipe_ensw", "x": 0, "y": 0, "uvlock": true }, "down=false,east=true,north=true,south=false,up=true,west=true": { "model": "poweradvantage:copper_pipe_nsuw", "x": 0, "y": 90, "uvlock": true }, "down=false,east=true,north=false,south=true,up=true,west=true": { "model": "poweradvantage:copper_pipe_nsuw", "x": 0, "y": 270, "uvlock": true }, "down=false,east=false,north=true,south=true,up=true,west=true": { "model": "poweradvantage:copper_pipe_nsuw", "x": 0, "y": 0, "uvlock": true }, "down=true,east=true,north=true,south=true,up=true,west=false": { "model": "poweradvantage:copper_pipe_desuw", "x": 0, "y": 270, "uvlock": true }, "down=true,east=true,north=true,south=true,up=false,west=true": { "model": "poweradvantage:copper_pipe_desuw", "x": 270, "y": 0, "uvlock": true }, "down=true,east=true,north=true,south=false,up=true,west=true": { "model": "poweradvantage:copper_pipe_desuw", "x": 0, "y": 180, "uvlock": true }, "down=true,east=true,north=false,south=true,up=true,west=true": { "model": "poweradvantage:copper_pipe_desuw", "x": 0, "y": 0, "uvlock": true }, "down=true,east=false,north=true,south=true,up=true,west=true": { "model": "poweradvantage:copper_pipe_desuw", "x": 0, "y": 90, "uvlock": true }, "down=false,east=true,north=true,south=true,up=true,west=true": { "model": "poweradvantage:copper_pipe_desuw", "x": 90, "y": 0, "uvlock": true }, "down=true,east=true,north=true,south=true,up=true,west=true": { "model": "poweradvantage:copper_pipe_densuw", "x": 0, "y": 0, "uvlock": true } } }
PS: J’ai tire le code du blockstate sur internet comme vous pouver le voir il y a seuleument le cas ou il n’y a aucunne adaptation a faire mais j’ai tout de meme un bloc noir et violet quand ces conditions son remplie .
Le code du model
{ "__comment":"3D Mesh designed with BDcraft Cubik LITE 0.93 Beta - http://bdcraft.net", "textures":{ "particle":"tuyau:blocks/tuyau", "texture":"tuyau:blocks/tuyau" }, "elements":[{"from":[5.5,0,5.5],"to":[10.5,16,10.5],"faces":{"down":{"uv":[10.5,10.5,5.5,5.5],"texture":"#texture","cullface":"down"},"up":{"uv":[2,5.5,7,10.5],"texture":"#texture","cullface":"up"},"north":{"uv":[2,0,7,16],"texture":"#texture","cullface":"north"},"south":{"uv":[2,0,7,16],"texture":"#texture","cullface":"south"},"west":{"uv":[2,0,7,16],"texture":"#texture","cullface":"west"},"east":{"uv":[2,0,7,16],"texture":"#texture","cullface":"east"}}},{"from":[4.5,0,6.5],"to":[11.5,16,9.5],"faces":{"down":{"uv":[8,9.5,1,6.5],"texture":"#texture","cullface":"down"},"up":{"uv":[1,6.5,8,9.5],"texture":"#texture","cullface":"up"},"north":{"uv":[1,0,8,16],"texture":"#texture","cullface":"north"},"south":{"uv":[1,0,8,16],"texture":"#texture","cullface":"south"},"west":{"uv":[3,0,6,16],"texture":"#texture","cullface":"west"},"east":{"uv":[3,0,6,16],"texture":"#texture","cullface":"east"}}},{"from":[6.5,0,4.5],"to":[9.5,16,11.5],"faces":{"down":{"uv":[3,12,0,5],"texture":"#texture","cullface":"down"},"up":{"uv":[0,5,3,12],"texture":"#texture","cullface":"up"},"north":{"uv":[3,0,6,16],"texture":"#texture","cullface":"north"},"south":{"uv":[3,0,6,16],"texture":"#texture","cullface":"south"},"west":{"uv":[1,0,8,16],"texture":"#texture","cullface":"west"},"east":{"uv":[1,0,8,16],"texture":"#texture","cullface":"east"}}}]}
Ps: La derniere ligne et mal faite car je l’ai faite avec la version demo du logiciel BDCraftCUbik donc il code tout sur une ligne.
Voila merci d’avance
EzorixEDIT: Je rajoute la précision qu’il n’y avait pas d’erreur dans les log
-
Salut,
Quel est le problème concrètement ? -
Mon bloc ne s’affiche pas j’ai un bloc violet et bleu alors que le model pour le tuyau de base sans rien a coter et fait , j’ai vérifié les “lien” vers les fichier
-
Il y a forcement quelque chose dans la console alors.
-
Non aucune erreur
-
Je suis programmeur pas magicien
Envoies moi un zip ou un 7z de ton dossier src je vais voir ce que je peux faire de mon côté.
Je pense qu’on utilise pas la même version de Forge :
[19:04:43] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_densuw' for variant: 'tuyau:tuyau#down=true,east=true,north=true,south=true,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_densuw.json [19:04:43] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=true,east=true,north=false,south=true,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:43] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_dnu' for variant: 'tuyau:tuyau#down=true,east=true,north=false,south=false,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_dnu.json [19:04:44] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=true,east=false,north=true,south=true,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:44] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_desuw' for variant: 'tuyau:tuyau#down=false,east=true,north=true,south=true,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_desuw.json [19:04:47] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=false,east=false,north=true,south=false,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:47] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_ensw' for variant: 'tuyau:tuyau#down=true,east=true,north=false,south=false,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_ensw.json [19:04:47] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_dnu' for variant: 'tuyau:tuyau#down=true,east=false,north=true,south=false,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_dnu.json [19:04:48] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=false,east=false,north=false,south=false,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:49] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nuw' for variant: 'tuyau:tuyau#down=false,east=true,north=true,south=false,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nuw.json [19:04:49] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsw' for variant: 'tuyau:tuyau#down=false,east=true,north=true,south=false,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsw.json [19:04:50] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=false,east=true,north=true,south=false,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:50] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_ensw' for variant: 'tuyau:tuyau#down=true,east=false,north=true,south=true,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_ensw.json [19:04:50] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=false,east=true,north=true,south=true,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:51] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=true,east=false,north=false,south=true,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:51] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=false,east=false,north=false,south=true,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:51] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=true,east=true,north=false,south=false,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:51] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nuw' for variant: 'tuyau:tuyau#down=false,east=true,north=false,south=true,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nuw.json [19:04:51] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=true,east=false,north=true,south=false,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:51] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_n' for variant: 'tuyau:tuyau#down=true,east=false,north=false,south=false,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_n.json [19:04:52] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_n' for variant: 'tuyau:tuyau#down=false,east=false,north=false,south=false,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_n.json [19:04:52] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nuw' for variant: 'tuyau:tuyau#down=true,east=true,north=true,south=false,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nuw.json [19:04:52] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_n' for variant: 'tuyau:tuyau#down=false,east=false,north=true,south=false,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_n.json [19:04:52] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_n' for variant: 'tuyau:tuyau#down=false,east=false,north=false,south=false,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_n.json [19:04:52] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=false,east=true,north=false,south=true,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:52] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsw' for variant: 'tuyau:tuyau#down=false,east=false,north=true,south=true,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsw.json [19:04:52] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=false,east=false,north=false,south=true,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:52] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_dnu' for variant: 'tuyau:tuyau#down=false,east=false,north=true,south=true,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_dnu.json [19:04:52] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=false,east=true,north=false,south=true,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:52] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=true,east=false,north=false,south=false,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:52] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_n' for variant: 'tuyau:tuyau#down=false,east=false,north=false,south=true,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_n.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_desuw' for variant: 'tuyau:tuyau#down=true,east=true,north=true,south=true,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_desuw.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_desuw' for variant: 'tuyau:tuyau#down=true,east=false,north=true,south=true,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_desuw.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_ns' for variant: 'tuyau:tuyau#down=false,east=true,north=false,south=false,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_ns.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_dnu' for variant: 'tuyau:tuyau#down=true,east=false,north=true,south=true,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_dnu.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=true,east=true,north=true,south=false,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_dnu' for variant: 'tuyau:tuyau#down=false,east=true,north=false,south=false,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_dnu.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nuw' for variant: 'tuyau:tuyau#down=true,east=false,north=false,south=true,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nuw.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_dnu' for variant: 'tuyau:tuyau#down=true,east=false,north=false,south=false,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_dnu.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=false,east=false,north=true,south=true,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=true,east=true,north=false,south=true,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nuw' for variant: 'tuyau:tuyau#down=true,east=false,north=true,south=false,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nuw.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsw' for variant: 'tuyau:tuyau#down=false,east=true,north=false,south=true,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsw.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_dnu' for variant: 'tuyau:tuyau#down=true,east=true,north=false,south=false,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_dnu.json [19:04:53] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=true,east=true,north=true,south=true,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:54] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nuw' for variant: 'tuyau:tuyau#down=false,east=false,north=true,south=false,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nuw.json [19:04:54] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_ns' for variant: 'tuyau:tuyau#down=true,east=false,north=false,south=false,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_ns.json [19:04:54] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_ensw' for variant: 'tuyau:tuyau#down=false,east=true,north=true,south=true,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_ensw.json [19:04:54] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=true,east=true,north=true,south=false,up=false,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsw' for variant: 'tuyau:tuyau#down=false,east=true,north=true,south=true,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsw.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_dnu' for variant: 'tuyau:tuyau#down=true,east=false,north=false,south=true,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_dnu.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=false,east=true,north=true,south=false,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=false,east=false,north=true,south=false,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_desuw' for variant: 'tuyau:tuyau#down=true,east=true,north=false,south=true,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_desuw.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_desuw' for variant: 'tuyau:tuyau#down=true,east=true,north=true,south=false,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_desuw.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_ns' for variant: 'tuyau:tuyau#down=false,east=false,north=true,south=true,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_ns.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_n' for variant: 'tuyau:tuyau#down=false,east=true,north=false,south=false,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_n.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_desuw' for variant: 'tuyau:tuyau#down=true,east=true,north=true,south=true,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_desuw.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=true,east=false,north=false,south=true,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nw' for variant: 'tuyau:tuyau#down=false,east=true,north=false,south=false,up=true,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nw.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nuw' for variant: 'tuyau:tuyau#down=false,east=false,north=false,south=true,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nuw.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nsuw' for variant: 'tuyau:tuyau#down=true,east=false,north=true,south=false,up=true,west=true': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nsuw.json [19:04:55] [Client thread/WARN] [FML]: Unable to load block model: 'poweradvantage:block/copper_pipe_nuw' for variant: 'tuyau:tuyau#down=true,east=true,north=false,south=true,up=false,west=false': java.io.FileNotFoundException: poweradvantage:models/block/copper_pipe_nuw.json
Ou alors ce que tu m’as envoyé est incomplet car en effet tous ces jsons n’existe pas.
-
Oui c’est normal qu’il n’y ai pas tous je n’ai pas encore tous fait mais normalement il y a le model de base (down=false,east=false,north=false,south=false,up=false,west=false) qui est fait mais ne fonctionne pas lorsque je pose le bloc tous seul il ne s’affiche pas
-
Si je modifies ta classe et les json en virant tous les states de bloc le modèle fonctionne.
Et je ne vois pas d’erreur dans le json complet avec les states de bloc.
Donc à mon avis il faut que le json soit 100 % complet (et sans erreur avec les modèles) pour que cela fonctionne. -
Ok , merci je vous tien au courant
-
Effectivement tu avait bien raison merci beaucoup je change la balise