Skip to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. You could just set it to the players set FOV by using Minecraft.getMinecraft().gameSettings.fovSetting;
  2. Are you getting "burn time initial is existing and set" printed out into your console?
  3. 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.
  4. Can I see your Block code?
  5. I meant what is the functionality. LOL I know the coding design :3
  6. Technically both as it seems one extends the other.
  7. It seems you can't get the SimpleNetworkWrapper, but you can get the FMLEmbeddedChannel which might be able to do what you want. If not you may need to resort to using Reflection or an AccessTransformer.
  8. What is this TileEntity supposed to do in the first place?
  9. 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.
  10. Weird I'm pretty sure that the error is caused by burnTimeRemaining being null when numverOfBurningFuelSlots(); is called
  11. Also why are you doing all that fancy stuff with TOTAL_SLOTS?
  12. What is line 65 of ModTileEntity and line 38 of TileEntityFluxGrinder.
  13. 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
  14. 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...).
  15. That is what caused your error I think.
  16. 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.
  17. Did you ever set your burnTimeRemaining? Server Side only
  18. Alright can I see the Container.
  19. You never actually change how many slots you have public static final int fuel_slots = 0; public static final int input_slots = 0; public static final int output_slots = 0; public static final int total_slots = fuel_slots + input_slots + output_slots;
  20. // Variant code from BlockPlanks public static final PropertyEnum<BlockPlanks.EnumType> VARIANT = PropertyEnum.<BlockPlanks.EnumType>create("variant", BlockPlanks.EnumType.class); JSON example from documentation please read the comments. { "forge_marker": 1, "defaults": { "textures": { "texture": "blocks/planks_oak", "wall": "blocks/planks_oak" }, "model": "pressure_plate_up", "uvlock": true }, "variants": { // mossy is a boolean property. "mossy": { "true": { // if true it changes the pressure plate from oak planks to mossy cobble "textures": { "texture": "blocks/cobblestone_mossy" } }, "false": { // change nothing. The entry has to be here to be generated for internal usage by minecraft } }, // pillarcount is a property that determines how many pillar submodels we have. Ranges from 0 to 2 "pillarcount": { 0: { // no pillar. Remember, has to be there. }, 1: { // if it is true, it will add the wall model and combine it with the pressure plate "submodel": "wall_n" }, 2: { "textures": { "wall": "blocks/cobblestone" }, "submodel": { "pillar1": { "model": "wall_n" }, "pillar2": { "model": "wall_n", "y": 90 } } } } } }
  21. Post your TileEntity Code.
  22. [s]Why not try[/s] [code state.getValue(player).intValue(); Why are you casting to Integer and not int.

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.