Everything posted by Draco18s
-
[Solved][1.10.2] Can't get blockstates file to work
That depends, what does the console say when you start the game?
-
[Solved][1.10.2] Blockstates crashing
There's also no reason not to use .getDefaultState() in the onBlockPlaced method: the itemblock shouldn't ever have metadata associated with it. Also, you allow any facing when the block is placed, and even save that value into metadata. But when reloading the world you enforce the facing to be either UP or DOWN (any other direction gets set to DOWN).
-
[Solved][1.10.2] TextureAtlasSprite for custom particle coming back null
The ResourceLocation class adds the /texture and .png for you.
-
[Solved][1.10.2] Blockstates crashing
You didn't declare your block state properties. @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {FACING}); }
-
Creating an item with eclipse: Not working
Well.... You're not calling registerRenders from anywhere You shouldn't be using the ModelMesher for rendering anyway (use ModelLoader.setCustomModelResourceLocation) Your rendering code shouldn't be in common code, it should be in your client proxy You have several spots where you're using the wrong character (you appear to be using something from UTF-8 not ASCII when ASCII is required). Namely in your @Mod annotation and here: ModHD1Items(String unlocalizedName, String registryName){ //why aren't these two lines ended with ; ? this.unlocalizedname=unlocalizedName%3B this.registryname=registryName%3B } Why are you using item.getUnlocalizedName().substring(5) ? Use getRegistryName like you're supposed to
-
[1.10.2] EntityItem vanishes after spawning
You need to clone the item stack before dropping it into the world.
-
MC 1.10+ Glass slabs and silk touch [SOLVED]
@Override public boolean isOpaqueCube(IBlockState state) { return false; } @Override public boolean isFullCube(IBlockState state) { return false; } @Override @SideOnly(Side.CLIENT) public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.CUTOUT; }
-
[MC 1.10.2] Extended TNT block does not blow up when fire destroys it.
IBlockAccess is implemented by World.
-
[MC 1.10.2] Extended TNT block does not blow up when fire destroys it.
All three of the methods I mentioned pass a World and BlockPos arguments.
-
[MC 1.10.2] World Generator is not doing any despite being called
By the way, why are you using "chunkx*16" in one place, but "cx" in the others?
-
[MC 1.10.2] World Generator is not doing any despite being called
x >> 4 is division. x << 4 is multiplication.
-
[MC 1.10.2] Extended TNT block does not blow up when fire destroys it.
No. You override those methods on your TNT block so that when one of them is called you make it explode.
-
MC 1.10+ Glass slabs and silk touch [SOLVED]
@Override @SideOnly(Side.CLIENT) public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.CUTOUT; } Use CUTOUT or TRANSLUCENT as appropriate.
-
[1.10.2] Item model - rotate element on x and z axis
Actually, I think it only supports X and Y, no Z no matter what you tell it. Minecraft assumes that rotations on Z are actually rotations on X, plus a 90 degree rotation on Y, and thus ignores it in the json file, as "you really should just simplify that."
-
[1.10.2] Items with metadata dont have textures
This will let you understand the broad strokes, but honestly little about making it work: http://mcforge.readthedocs.io/en/latest/blockstates/forgeBlockstates/ This is very nuts and bolts, but won't explain the broad strokes as to why it's doing what it's doing: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java (super methods there call the setRegistryName and GameRegistry.register methods) My code there was put together very much with the help of Choonster, so help yourself. I've been adding to it as I find something new that I want to do that isn't supported by the class yet (e.g. I it won't currently support a block, with variants, and a custom item that only needs to be one variant--say, a bed--as I haven't encountered the need yet).
-
MC 1.10+ Glass slabs and silk touch [SOLVED]
Override protected ItemStack createStackedBlock(IBlockState state)
-
[1.10.2] Changing Item compound tag removes damage?
"Damage not being saved" and "stays 0 on the server" means you're only damaging the item on the client side.
-
[1.10.2] EntityThrowable not causing damage to hit entity
Wrong. http://stackoverflow.com/questions/9748160/why-f-is-placed-after-float-values
-
[1.10.2] Items with metadata dont have textures
I believe so, yes. You can also use Blockstate variants if you want to, rather than multiple separate json files.
-
[MC 1.10.2] Extended TNT block does not blow up when fire destroys it.
You could also override getFlammability, isFlammable, or getFireSpreadSpeed (each called when the fire attempts to spread to that block, at some point) and spawn your lit entity or explosion.
-
[1.10.2] Code Optimization
Uhmm, wrong thread? Don't you mean this one: http://www.minecraftforge.net/forum/index.php?topic=42618.0? ...how'd I manage that? >.<
-
[1.10.2] Code Optimization
[wrong thread] 9.9
-
[MC 1.10.2] World Generator is not doing any despite being called
Posting the crash helps.
-
Pistol Reload Fail
Update to 1.10.2, 1.7 is no longer supported here.
-
[1.8.9] Throwable Item dont work :/
That's because setBlock(x, y, z, block) is now setBlockState(BlockPos, IBlockState)
IPS spam blocked by CleanTalk.