Cable ( Redstone/TripWire ) explosif
-
Ah c’est la position de l’explosion ?
Oops, je croyais que c’était la force par rapport a X, Y et Z :S
Dès que je rallume mon Eclipse, je vais test
Euuuh, Ecplipse veut des paramètres Double, or BlockPos n’est pas un Double
-
pos.getX(), pos.getY(), pos.getZ()… au cas ou tu cast double
-
Sa fonctionne merci

Mais j’ai des problèmes de textures
Blockstates
:::{ "variants": { "east=none,north=none,south=none,west=none": { "model": "rafined_gunpowder_wire_none" }, "east=none,north=side,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_n" }, "east=none,north=none,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_n" }, "east=side,north=none,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_n", "y": 90 }, "east=none,north=none,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_n", "y": 90 }, "east=none,north=up,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_uns" }, "east=none,north=none,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_uns", "y": 180, "uvlock": true }, "east=up,north=none,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_uew" }, "east=none,north=none,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_uew", "y": 180, "uvlock": true }, "east=side,north=side,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_ne", "uvlock": true }, "east=side,north=up,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_une", "uvlock": true }, "east=up,north=side,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_nue", "uvlock": true }, "east=up,north=up,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_unue", "uvlock": true }, "east=side,north=none,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_ne", "y": 90, "uvlock": true }, "east=up,north=none,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_une", "y": 90, "uvlock": true }, "east=side,north=none,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_nue", "y": 90, "uvlock": true }, "east=up,north=none,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_unue", "y": 90, "uvlock": true }, "east=none,north=none,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_ne", "y": 180, "uvlock": true }, "east=none,north=none,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_une", "y": 180, "uvlock": true }, "east=none,north=none,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_nue", "y": 180, "uvlock": true }, "east=none,north=none,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unue", "y": 180, "uvlock": true }, "east=none,north=side,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_ne", "y": 270, "uvlock": true }, "east=none,north=side,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_une", "y": 270, "uvlock": true }, "east=none,north=up,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_nue", "y": 270, "uvlock": true }, "east=none,north=up,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_unue", "y": 270, "uvlock": true }, "east=none,north=side,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_n" }, "east=none,north=up,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_uns" }, "east=none,north=side,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_uns", "y": 180 }, "east=none,north=up,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_unus" }, "east=side,north=none,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_n", "y": 90 }, "east=up,north=none,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_uns", "y": 90 }, "east=side,north=none,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_uns", "y": 270 }, "east=up,north=none,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_ueuw" }, "east=side,north=side,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_nse", "uvlock": true }, "east=side,north=up,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_unse", "uvlock": true }, "east=side,north=side,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_nuse", "uvlock": true }, "east=up,north=side,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_nsue", "uvlock": true }, "east=up,north=side,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_nusue", "uvlock": true }, "east=side,north=up,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_unuse", "uvlock": true }, "east=up,north=up,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_unsue", "uvlock": true }, "east=up,north=up,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_unusue", "uvlock": true }, "east=side,north=none,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_nse", "y": 90, "uvlock": true }, "east=up,north=none,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_unse", "y": 90, "uvlock": true }, "east=side,north=none,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_nuse", "y": 90, "uvlock": true }, "east=side,north=none,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_nsue", "y": 90, "uvlock": true }, "east=side,north=none,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_nusue", "y": 90, "uvlock": true }, "east=up,north=none,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_unuse", "y": 90, "uvlock": true }, "east=up,north=none,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unsue", "y": 90, "uvlock": true }, "east=up,north=none,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unusue", "y": 90, "uvlock": true }, "east=none,north=side,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_nse", "y": 180, "uvlock": true }, "east=none,north=side,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unse", "y": 180, "uvlock": true }, "east=none,north=up,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_nuse", "y": 180, "uvlock": true }, "east=none,north=side,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_nsue", "y": 180, "uvlock": true }, "east=none,north=up,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_nusue", "y": 180, "uvlock": true }, "east=none,north=up,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unuse", "y": 180, "uvlock": true }, "east=none,north=side,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unsue", "y": 180, "uvlock": true }, "east=none,north=up,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unusue", "y": 180, "uvlock": true }, "east=side,north=side,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_nse", "y": 270, "uvlock": true }, "east=side,north=side,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_unse", "y": 270, "uvlock": true }, "east=up,north=side,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_nuse", "y": 270, "uvlock": true }, "east=side,north=up,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_nsue", "y": 270, "uvlock": true }, "east=up,north=up,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_nusue", "y": 270, "uvlock": true }, "east=up,north=side,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_unuse", "y": 270, "uvlock": true }, "east=side,north=up,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_unsue", "y": 270, "uvlock": true }, "east=up,north=up,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_unusue", "y": 270, "uvlock": true }, "east=side,north=side,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_nsew", "uvlock": true }, "east=side,north=up,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_unsew", "uvlock": true }, "east=side,north=side,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unsew", "y": 180, "uvlock": true }, "east=up,north=side,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_unsew", "y": 90, "uvlock": true }, "east=side,north=side,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_unsew", "y": 270, "uvlock": true }, "east=side,north=up,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unusew", "uvlock": true }, "east=up,north=side,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_unusew", "y": 90, "uvlock": true }, "east=up,north=up,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_unsuew", "uvlock": true }, "east=up,north=side,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unsuew", "y": 90, "uvlock": true }, "east=side,north=side,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unsuew", "y": 180, "uvlock": true }, "east=side,north=up,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_unsuew", "y": 270, "uvlock": true }, "east=up,north=up,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unusuew", "uvlock": true }, "east=up,north=side,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unusuew", "y": 90, "uvlock": true }, "east=side,north=up,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unusuew", "y": 180, "uvlock": true }, "east=up,north=up,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_unusuew", "y": 270, "uvlock": true }, "east=up,north=up,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unusueuw", "uvlock": true } } }:::
Je vous épargne 24 des 25 models ( Au pif le nombre hein ) Ici, North
{ "ambientocclusion": false, "textures": { "cross": "ut:blocks/gunpowder_cross", "line": "ut:blocks/gunpowder_line", }, "elements": [ { "from": [ 0, 0.25, 0 ], "to": [ 16, 0.25, 16 ], "shade": false, "faces": { "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#line", "rotation": 90, "tintindex": 0 } } }, { "from": [ 0, 0.25, 0 ], "to": [ 16, 0.25, 16 ], "shade": false, "faces": { "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#lineoverlay", "rotation": 90 } } } ] }BRafinedGunpowder.class
package eryah.usefulthings.blocks; import java.util.ArrayList; import java.util.EnumSet; import java.util.Iterator; import java.util.Random; import java.util.Set; import com.google.common.collect.Lists; import com.google.common.collect.Sets; import net.minecraft.block.Block; import net.minecraft.block.BlockRedstoneDiode; import net.minecraft.block.BlockRedstoneRepeater; import net.minecraft.block.BlockRedstoneWire; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyBool; import net.minecraft.block.properties.PropertyEnum; import net.minecraft.block.properties.PropertyInteger; import net.minecraft.block.state.BlockState; import net.minecraft.block.state.IBlockState; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.entity.Entity; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumParticleTypes; import net.minecraft.util.EnumWorldBlockLayer; import net.minecraft.util.IStringSerializable; import net.minecraft.util.MathHelper; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import eryah.usefulthings.Reference; import eryah.usefulthings.UsefulthingsMod; import eryah.usefulthings.init.RafinedGunpowder; public class BRefinedGunpowder extends Block { 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 static Block rafined_gunpowder_wire; public BRefinedGunpowder(Material material) { super(Material.circuits); 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.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.15625F, 1.0F); this.setTickRandomly(true); } public static void init() { rafined_gunpowder_wire = new BRefinedGunpowder(Material.circuits).setUnlocalizedName("rafined_gunpowder_wire").setCreativeTab(UsefulthingsMod.UTTab); } public static void register() { GameRegistry.registerBlock(rafined_gunpowder_wire, rafined_gunpowder_wire.getUnlocalizedName().substring(5)); } public static void registerRenders() { registerRender(rafined_gunpowder_wire); } public static void registerRender(Block block) { Item item = Item.getItemFromBlock(block); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory")); } public AxisAlignedBB getCollisionBoundingBox(World worldIn, BlockPos pos, IBlockState state) { return null; } public boolean isOpaqueCube() { return false; } public boolean isFullCube() { return false; } @SideOnly(Side.CLIENT) public EnumWorldBlockLayer getBlockLayer() { return EnumWorldBlockLayer.TRANSLUCENT; } public Item getItemDropped(IBlockState state, Random rand, int fortune) { return Items.string; } @SideOnly(Side.CLIENT) public Item getItem(World worldIn, BlockPos pos) { return Items.string; } protected BlockState createBlockState() { return new BlockState(this, new IProperty[] {NORTH, EAST, WEST, SOUTH}); } @Override public void onNeighborBlockChange(World world, BlockPos pos, IBlockState state, Block neighborBlock) { if(world.getBlockState(pos.east()).getBlock() == Blocks.fire || world.getBlockState(pos.west()).getBlock() == Blocks.fire ||world.getBlockState(pos.north()).getBlock() == Blocks.fire ||world.getBlockState(pos.south()).getBlock() == Blocks.fire) { world.createExplosion(null, pos.getX(), pos.getY(), pos.getZ(), 0.5F, true); } } public int getMetaFromState(IBlockState state) { int i = 0; if (((Boolean)state.getValue(EAST)).booleanValue()) { i |= 1; } if (((Boolean)state.getValue(NORTH)).booleanValue()) { i |= 2; } if (((Boolean)state.getValue(SOUTH)).booleanValue()) { i |= 4; } if (((Boolean)state.getValue(WEST)).booleanValue()) { i |= 8; } return i; } public void onBlockDestroyedByExplosion(World worldIn, BlockPos pos, Explosion explosionIn) { worldIn.createExplosion(null, pos.getX(), pos.getY(), pos.getZ(), 0.5F, true); } }Vu la quantité de modification a faire, j’a fait un find&replace
-
“Des problèmes de texture” : faudrait être plus précis, lesquels ?
-
bah sa s’affiche pas , pour moi c’est ça, ya le bloc inconnu, le violet.noir
-
Si la texture est violette et noire, ça veut dire que ta texture est pas reconnue, regarde tes logs pour voir si c’est marqué dedans. Sinon vérifie chaque chemin aux textures.
-
Il ya marqué plusieurs [21:36:28] [Client thread/ERROR] [FML]: Model definition for location ut:rafined_gunpowder_wire#east=true,north=true,south=true,west=true not found
Pourtant les modls sont là
-
çà veut dire qu’il y est pas, donc soit tu rajoutes chaque model, soit tu as fait une faute de frappe dans tes models.
-
Possible, mais je pense que le problème viens plus du blockstates, que jai fait en random :S
-
Si tu envoies pas les fichiers, je peux pas t’aider.
-
Le blockstates et le model ( 1 sur ~25 mais se sont le smêmes ) sont sur la 1ere page
-
y’a aucun block state, renvoi tous les fichiers, ce sera plus simple.
-
OMG tu as vraiment garder 4 property bool !!! Tu doit donc avoir 16 lignes dans ton json juste pour les models… Tu peux nous envoyer le .json en ENTIER ?
-
J’ai agrdé la méthode getMetaFromState du tripwire de base, que j’ai modifié, je ne sais pas faire autrement, c’est comme ça que sont fait la plupart des items/blocks de mon mod, le code de base modifié
Blockstate - rafined_gunpowder_wire.jso
{ "variants": { "east=none,north=none,south=none,west=none": { "model": "rafined_gunpowder_wire_none" }, "east=none,north=side,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_n" }, "east=none,north=none,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_n" }, "east=side,north=none,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_n", "y": 90 }, "east=none,north=none,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_n", "y": 90 }, "east=none,north=up,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_uns" }, "east=none,north=none,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_uns", "y": 180, "uvlock": true }, "east=up,north=none,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_uew" }, "east=none,north=none,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_uew", "y": 180, "uvlock": true }, "east=side,north=side,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_ne", "uvlock": true }, "east=side,north=up,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_une", "uvlock": true }, "east=up,north=side,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_nue", "uvlock": true }, "east=up,north=up,south=none,west=none": { "model": "ut:rafined_gunpowder_wire_unue", "uvlock": true }, "east=side,north=none,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_ne", "y": 90, "uvlock": true }, "east=up,north=none,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_une", "y": 90, "uvlock": true }, "east=side,north=none,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_nue", "y": 90, "uvlock": true }, "east=up,north=none,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_unue", "y": 90, "uvlock": true }, "east=none,north=none,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_ne", "y": 180, "uvlock": true }, "east=none,north=none,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_une", "y": 180, "uvlock": true }, "east=none,north=none,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_nue", "y": 180, "uvlock": true }, "east=none,north=none,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unue", "y": 180, "uvlock": true }, "east=none,north=side,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_ne", "y": 270, "uvlock": true }, "east=none,north=side,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_une", "y": 270, "uvlock": true }, "east=none,north=up,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_nue", "y": 270, "uvlock": true }, "east=none,north=up,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_unue", "y": 270, "uvlock": true }, "east=none,north=side,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_n" }, "east=none,north=up,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_uns" }, "east=none,north=side,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_uns", "y": 180 }, "east=none,north=up,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_unus" }, "east=side,north=none,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_n", "y": 90 }, "east=up,north=none,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_uns", "y": 90 }, "east=side,north=none,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_uns", "y": 270 }, "east=up,north=none,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_ueuw" }, "east=side,north=side,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_nse", "uvlock": true }, "east=side,north=up,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_unse", "uvlock": true }, "east=side,north=side,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_nuse", "uvlock": true }, "east=up,north=side,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_nsue", "uvlock": true }, "east=up,north=side,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_nusue", "uvlock": true }, "east=side,north=up,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_unuse", "uvlock": true }, "east=up,north=up,south=side,west=none": { "model": "ut:rafined_gunpowder_wire_unsue", "uvlock": true }, "east=up,north=up,south=up,west=none": { "model": "ut:rafined_gunpowder_wire_unusue", "uvlock": true }, "east=side,north=none,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_nse", "y": 90, "uvlock": true }, "east=up,north=none,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_unse", "y": 90, "uvlock": true }, "east=side,north=none,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_nuse", "y": 90, "uvlock": true }, "east=side,north=none,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_nsue", "y": 90, "uvlock": true }, "east=side,north=none,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_nusue", "y": 90, "uvlock": true }, "east=up,north=none,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_unuse", "y": 90, "uvlock": true }, "east=up,north=none,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unsue", "y": 90, "uvlock": true }, "east=up,north=none,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unusue", "y": 90, "uvlock": true }, "east=none,north=side,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_nse", "y": 180, "uvlock": true }, "east=none,north=side,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unse", "y": 180, "uvlock": true }, "east=none,north=up,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_nuse", "y": 180, "uvlock": true }, "east=none,north=side,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_nsue", "y": 180, "uvlock": true }, "east=none,north=up,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_nusue", "y": 180, "uvlock": true }, "east=none,north=up,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unuse", "y": 180, "uvlock": true }, "east=none,north=side,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unsue", "y": 180, "uvlock": true }, "east=none,north=up,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unusue", "y": 180, "uvlock": true }, "east=side,north=side,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_nse", "y": 270, "uvlock": true }, "east=side,north=side,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_unse", "y": 270, "uvlock": true }, "east=up,north=side,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_nuse", "y": 270, "uvlock": true }, "east=side,north=up,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_nsue", "y": 270, "uvlock": true }, "east=up,north=up,south=none,west=side": { "model": "ut:rafined_gunpowder_wire_nusue", "y": 270, "uvlock": true }, "east=up,north=side,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_unuse", "y": 270, "uvlock": true }, "east=side,north=up,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_unsue", "y": 270, "uvlock": true }, "east=up,north=up,south=none,west=up": { "model": "ut:rafined_gunpowder_wire_unusue", "y": 270, "uvlock": true }, "east=side,north=side,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_nsew", "uvlock": true }, "east=side,north=up,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_unsew", "uvlock": true }, "east=side,north=side,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unsew", "y": 180, "uvlock": true }, "east=up,north=side,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_unsew", "y": 90, "uvlock": true }, "east=side,north=side,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_unsew", "y": 270, "uvlock": true }, "east=side,north=up,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unusew", "uvlock": true }, "east=up,north=side,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_unusew", "y": 90, "uvlock": true }, "east=up,north=up,south=side,west=side": { "model": "ut:rafined_gunpowder_wire_unsuew", "uvlock": true }, "east=up,north=side,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unsuew", "y": 90, "uvlock": true }, "east=side,north=side,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unsuew", "y": 180, "uvlock": true }, "east=side,north=up,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_unsuew", "y": 270, "uvlock": true }, "east=up,north=up,south=up,west=side": { "model": "ut:rafined_gunpowder_wire_unusuew", "uvlock": true }, "east=up,north=side,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unusuew", "y": 90, "uvlock": true }, "east=side,north=up,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unusuew", "y": 180, "uvlock": true }, "east=up,north=up,south=side,west=up": { "model": "ut:rafined_gunpowder_wire_unusuew", "y": 270, "uvlock": true }, "east=up,north=up,south=up,west=up": { "model": "ut:rafined_gunpowder_wire_unusueuw", "uvlock": true } } }Plusieurs Models
North - rafined_gunpowder_wire_n
:::{ "ambientocclusion": false, "textures": { "cross": "ut:blocks/gunpowder_cross", "line": "ut:blocks/gunpowder_line", }, "elements": [ { "from": [ 0, 0.25, 0 ], "to": [ 16, 0.25, 16 ], "shade": false, "faces": { "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#line", "rotation": 90, "tintindex": 0 } } }, { "from": [ 0, 0.25, 0 ], "to": [ 16, 0.25, 16 ], "shade": false, "faces": { "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#lineoverlay", "rotation": 90 } } } ] }:::
North & East - rafined_gunpowder_wire_ne
:::{ "ambientocclusion": false, "textures": { "cross": "ut:blocks/gunpowder_cross", "line": "ut:blocks/gunpowder_line", }, "elements": [ { "from": [ 5, 0.25, 0 ], "to": [ 16, 0.25, 11 ], "shade": false, "faces": { "up": { "uv": [ 5, 0, 16, 11 ], "texture": "#cross", "tintindex": 0 } } }, { "from": [ 5, 0.25, 0 ], "to": [ 16, 0.25, 11 ], "shade": false, "faces": { "up": { "uv": [ 5, 0, 16, 11 ], "texture": "#crossoverlay" } } } ] }:::
NONE - Cable seul - - rafined_gunpowder_wire_none
:::{ "ambientocclusion": false, "textures": { "cross": "ut:blocks/gunpowder_cross", "line": "ut:blocks/gunpowder_line", }, "elements": [ { "from": [ 5, 0.25, 5 ], "to": [ 11, 0.25, 11 ], "shade": false, "faces": { "up": { "uv": [ 5, 5, 11, 11 ], "texture": "#cross", "tintindex": 0 } } }, { "from": [ 5, 0.25, 5 ], "to": [ 11, 0.25, 11 ], "shade": false, "faces": { "up": { "uv": [ 5, 5, 11, 11 ], "texture": "#crossoverlay" } } } ] }:::
North, East & South - - rafined_gunpowder_wire_nes (NES owii )
:::{ "ambientocclusion": false, "textures": { "cross": "ut:blocks/gunpowder_cross", "line": "ut:blocks/gunpowder_line", }, "elements": [ { "from": [ 5, 0.25, 0 ], "to": [ 16, 0.25, 16 ], "shade": false, "faces": { "up": { "uv": [ 5, 0, 16, 16 ], "texture": "#cross", "tintindex": 0 } } }, { "from": [ 5, 0.25, 0 ], "to": [ 16, 0.25, 16 ], "shade": false, "faces": { "up": { "uv": [ 5, 0, 16, 16 ], "texture": "#crossoverlay" } } } ] }:::
-
C’est mieux avec le nom des fichiers
-
Edité c’est bon
-
Blockstate - rafined_gunpowder_wire.jso il manque un “n”, non ?
“east=up,north=up,south=up,west=up” ici je vois up et side, alors que ce sont des booléens normalement.
-
Je suis très très nul en models et tout, c’est la première fois que je fais des directions etc :S
-
J’ai légèrement modfié le blockstates, j’ai pris celui du tripwire, au lieu de la redstone
{ "variants": { "east=false,north=false,south=false,west=false": { "model": "rafined_gunpowder_wire_ns" }, "east=false,north=true,south=false,west=false": { "model": "rafined_gunpowder_wire_n" }, "east=false,north=false,south=true,west=false": { "model": "rafined_gunpowder_wire_n", "y": 180 }, "east=true,north=false,south=false,west=false": { "model": "rafined_gunpowder_wire_n", "y": 90 }, "east=false,north=false,south=false,west=true": { "model": "rafined_gunpowder_wire_n", "y": 270 }, "east=true,north=true,south=false,west=false": { "model": "rafined_gunpowder_wire_ne" }, "east=true,north=false,south=true,west=false": { "model": "rafined_gunpowder_wire_ne", "y": 90 }, "east=false,north=false,south=true,west=true": { "model": "rafined_gunpowder_wire_ne", "y": 180 }, "east=false,north=true,south=false,west=true": { "model": "rafined_gunpowder_wire_ne", "y": 270 }, "east=false,north=true,south=true,west=false": { "model": "rafined_gunpowder_wire_ns" }, "east=true,north=false,south=false,west=true": { "model": "rafined_gunpowder_wire_ns", "y": 90 }, "east=true,north=true,south=true,west=false": { "model": "rafined_gunpowder_wire_nse" }, "east=true,north=false,south=true,west=true": { "model": "rafined_gunpowder_wire_nse", "y": 90 }, "east=false,north=true,south=true,west=true": { "model": "rafined_gunpowder_wire_nse", "y": 180 }, "east=true,north=true,south=false,west=true": { "model": "rafined_gunpowder_wire_nse", "y": 270 }, "east=true,north=true,south=true,west=true": { "model": "rafined_gunpowder_wire_nsew" } } }Après, je pense que c’etait une mauvaise idée ce bloc. Je l’ai commencer en ‘attentente’ ( N’allez pas pensez que je pense que sa va se résoudre tout seul hein, je bossat un peut dessus aussi ) de la correction de mes bugs.
Je pense que je vais le supprimer, et puis je le reprendrais dans un patch de mon mod -
Officiel, ce topic est clos, j’abbandone le projet.
Je le reprendrais une fois avec plus d’expérience
Je garde les classes, je ne les enrengistres juste pas dans le jeu