-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[1.10.2] Multiple Items/Blocks crash launcher
Animefan8888 replied to luckie12's topic in Modder Support
Actually I think it is happening in Items not blocks. -
[1.10.2] Multiple Items/Blocks crash launcher
Animefan8888 replied to luckie12's topic in Modder Support
What he is talking about is the fact that you are calling setRegistryName twice when you only need to call it once. GameRegistry.registerBlock(block.setRegistryName("blockName")); GameRegistry.registerItem(new ItemBlock(block)); -
[1.10.2] Random Texture Forge Blockstate JSON
Animefan8888 replied to LogicTechCorp's topic in Modder Support
It should be able to, but you may want to do it in code, aka when the block is placed set its blockstate randomly. -
Well you did not post any code 9r screen shots of what happened...
-
[1.10.2][UNSOLVED and CLOSED] Forge blockstate varient system
Animefan8888 replied to SHsuperCM's topic in Modder Support
Thanks i new i was missing something, glad it was something as simple as that as i was just stat8ng my hypothesis. -
[1.10.2] [SOLVED] Increase/Decrease walkspeed without FOV change
Animefan8888 replied to Koward's topic in Modder Support
So did you use SharedMonsterAttributes.MAX_SPEED or did you use your modification. -
[1.10.2] [SOLVED] Increase/Decrease walkspeed without FOV change
Animefan8888 replied to Koward's topic in Modder Support
Found this in AbstractClientPlayer You could reverse engineer this and remove the speed modifier in the FOVUpdateEvent. -
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
Line 55 of ModTileEntity? -
[1.10.2] [SOLVED] Increase/Decrease walkspeed without FOV change
Animefan8888 replied to Koward's topic in Modder Support
You could just set it to the players set FOV by using Minecraft.getMinecraft().gameSettings.fovSetting; -
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
Are you getting "burn time initial is existing and set" printed out into your console? -
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
Well I don't know why it was returning null, but lets do some debugging here. Insert a if != null check and if it is print something in to the console. -
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
Can I see your Block code? -
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
I meant what is the functionality. LOL I know the coding design :3 -
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
Technically both as it seems one extends the other. -
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
What is this TileEntity supposed to do in the first place? -
Sorry there, but you are most likely not going to find one. You will probably be better off looking through vanilla code. And of course following a normal entity tutorial for similarities.
-
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
Weird I'm pretty sure that the error is caused by burnTimeRemaining being null when numverOfBurningFuelSlots(); is called -
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
Also why are you doing all that fancy stuff with TOTAL_SLOTS? -
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
What is line 65 of ModTileEntity and line 38 of TileEntityFluxGrinder. -
[1.10.2][UNSOLVED and CLOSED] Forge blockstate varient system
Animefan8888 replied to SHsuperCM's topic in Modder Support
Here let me go into a little bit more of a in depth example once again using the BlockPlanks code, anyone that sees something wrong in this please correct me because I have not messed around with it I am only going on intuition and what I have seen. The Enum in BlockPlanks Just holds all of the data, like the metadata, an unlocalized name, and the Color for the map. Now if I were to guess the JSON would go something like Though I may be wrong I didn't test this as said above. Also the specific property used -
[1.10.2][UNSOLVED and CLOSED] Forge blockstate varient system
Animefan8888 replied to SHsuperCM's topic in Modder Support
Basically you use the new BlockState system // Code from BlockPlanks @SideOnly(Side.CLIENT) // Adds all blockstates to creative tab(s) public void getSubBlocks(Item itemIn, CreativeTabs tab, List<ItemStack> list) { for (BlockPlanks.EnumType blockplanks$enumtype : BlockPlanks.EnumType.values()) { list.add(new ItemStack(itemIn, 1, blockplanks$enumtype.getMetadata())); } } /** * Convert the given metadata into a BlockState for this Block */ public IBlockState getStateFromMeta(int meta) { return this.getDefaultState().withProperty(VARIANT, BlockPlanks.EnumType.byMetadata(meta)); } /** * Get the MapColor for this Block and the given BlockState */ // Just changes the color that will be displayed on minmaps for example public MapColor getMapColor(IBlockState state) { return ((BlockPlanks.EnumType)state.getValue(VARIANT)).getMapColor(); } /** * Convert the BlockState into the correct metadata value */ public int getMetaFromState(IBlockState state) { return ((BlockPlanks.EnumType)state.getValue(VARIANT)).getMetadata(); } // Does exactly what it says protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {VARIANT}); } This allows you to add different models to the base model on different blockstates. I assume, but don't quote me, but you may also be able to change the base model. I(t will also allow you to change the texture(s). And a plus side is you do it in just one file, so you still only need 3 JSONs for one block (Yeah still kinda upset about that...). -
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
That is what caused your error I think. -
[1.10.2] Loading custom gui for custom block
Animefan8888 replied to Messorix's topic in Modder Support
for (int inputSlot = first_input_slot; inputSlot < first_input_slot + inputSlot; inputSlot++) { Just be glad a null pointer exception was caused before a different one was.