Jump 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.

Belpois

Members
  • Joined

  • Last visited

Everything posted by Belpois

  1. Your welcome, Is that a technie model or you wrote the vertices yourself?
  2. Seems like the slot at that position is null, your trying to access it when it's null, When this is called if (slots[i].stackSize <= 0) { slots[i] = null; } next time round it will be null and .stackSize will not be available because slots at position 'i' will be null. You have to initialize it before accessing .stackSize
  3. But the way he is describing the problem (Climbing on ladders, swimming etc) enabling flight would Solve-Hack the issue.
  4. You could have an item that triggers a block to create a signal, like the RedPower remote control thingy... Create the item and the block, link the item to the block and activate it.
  5. You can maybe apply the invisible potion on the player
  6. Love that idea! Thanks. These where my maddening thoughts on how to go about it: Put panels on the block, wallpaper kind of thing... Custom rendering, would have been a nightmare Allow player to only use a custom block, good idea but not very fun Awesome!
  7. Not at all. As i've said: new items, new blocks, few recipes added . Very strange then
  8. You could look for the items the player is wearing and set them to invisible too
  9. What is your goal? Right click with item > changes the texture on any or some vanilla block. Was going to go for panels at first to avoid messing the vanilla renderer...
  10. Well it can be fixed, the problem is that the beam is being rendered before the glowstone edged cube is rendered, if you see the chest and terrain are rendered perfectly. You have to somehow draw them in the order of how they are displayed. Block first, beam second.
  11. Yep, sorry for the misleading sentence; "Is this correct or can more than one entity be placed at a given coordinate?" Should have written TileEntity Damn, gotta somehow override the cube renderer then. Thanks!
  12. Dumb question below The way the code is written in Minecraft seems to indicate that only one TileEntity can be present at one time at any given coordinate (X, Y Z). Is this correct or can more than one TileEntity be placed at a given coordinate? - Corrected it so people can understand it
  13. Use the meta data to discover which direction that furnace is facing, and then swap the icons accordingly.
  14. My guess is that your current build configuration is not taking into account the excluded files
  15. I don't use eclipse my self, but I don't think that exclude options excludes the files from the build. Correct me if I'm wrong
  16. Can't you just include a readme file with the explanation on how to write the JSON that is what most people do, sounds to me your over complicating your life here.
  17. How did you exclude the files?
  18. You need to implement a "TileEntitySpecialRenderer" Look at this wiki page http://www.minecraftforge.net/wiki/Tile_entity_special_renderer and this http://greyminecraftcoder.blogspot.com/2013/07/block-rendering.html I'm currently working on a mod that uses both the "ISimpleBlockRenderingHandler" and the "TileEntitySpecialRenderer", the "ISimpleBlockRenderingHandler" allows you to customize the look of how a block looks like in the inventory and in the world. void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer); boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer);
  19. Yes agreed, the Integer.valueOf is pretty useless. I was just explaining what the Integer.valueOf could have been used for but yes its a useless intermediate object. What we have learned today: Don't copy and paste from the vanilla code Integer.valueOf is useless use parseInt for string to int conversion
  20. Can you post your code, somewhere so we can check it out? This doesn't usually happen in vanilla or forge, unless your hovering in mid air for a long time without being in creative, it might be your mod but without seeing your code we can't really say.
  21. Ermm, why not? If I had a string representation of a number you could use valueOf to convert it to an integer... or you could use parseInt which is called by valueOf(str) The object one yes, it useless you could simply check with instance of...
  22. Using Integer.valueOf(Object) should be used when you are trying convert some object that you are unsure if its an integer or a string that represents an number. Also if you have an object that you are unsure if its a number check it with instance of first, it more visually understandable. Object obj = 900; Integer.valueOf((Integer) obj); String nbr = "72162"; Integer.valueOf(nbr); They might also think that having those extra few lines of code will make there code look more "pro"? Well no, when I see code like that I usually scratch my head a few times and say Wat!
  23. I'm sure that the ComputerCraft wiki has information on how to connect stuff to it https://github.com/MightyPirates/OpenComputers/wiki/ComputerCraft Have you read it?
  24. Here is a list of overrides you might want to focus on: int isProvidingWeakPower(IBlockAccess p_149709_1_, int p_149709_2_, int p_149709_3_, int p_149709_4_, int p_149709_5_); int isProvidingStrongPower(IBlockAccess p_149748_1_, int p_149748_2_, int p_149748_3_, int p_149748_4_, int p_149748_5_); boolean canProvidePower(); boolean canConnectRedstone(IBlockAccess world, int x, int y, int z, int side); updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_);

Important Information

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

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.