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.

BeardlessBrady

Members
  • Joined

  • Last visited

Everything posted by BeardlessBrady

  1. Yes! I fixed it, I just did try { int face = ((ModTile) source.getTileEntity(pos)).getField(7); switch (face) { default: case 0: return BOUND_BOX_N; case 1: return BOUND_BOX_E; case 2: return BOUND_BOX_S; case 3: return BOUND_BOX_W; } } catch (NullPointerException n) { return super.getBoundingBox(state, source, pos); } That way when it first calls a null exception it will ignore it, then once the tile exists it will fix
  2. Basically When I rotate it there seems be about a 1 radius between the actual block and the rotation point. When I move the rotation point it just moves the block and the rotation point. I want to move the rotation point on that specific part of the block. Translating also isnt working
  3. Is there a way to make it constantly spinning so I can help pin down the best rotation point?
  4. Is there a way to set or reset the bounding/collision boxes after the block has been placed?
  5. Yes, theres a nullPointer when it looks for a tile entity. I assumed this was because it gets the collision and bounding box before it places the tile entity, am I wrong?
  6. I'm really having trouble on getting my model to rotate correctly on the X-axis. The picture below is when I set the X-Rotation to 3.155F to make it the right way. the next is X-Rotation set to 4F. I want to make it rotate around the wooden pole in the middle bottom area. https://github.com/BeardlessBrady/Meat-Mod/blob/master/src/main/java/gunn/modmeat/client/render/RenderHorseCart.java https://github.com/BeardlessBrady/Meat-Mod/blob/master/src/main/java/gunn/modmeat/client/model/ModelHorseCart.java Any help would be greatly appreciated!
  7. Right, I thought so too. If I call EnumFacing facing = state.getActualState(source, pos).getValue(StateHandler.FACING); in the 'getBoundingBox' method, I get a crash on block place http://pastebin.com/6hfHwut2
  8. I'm attempting a custom bounding/collision box which obviously has to be different based on which direction the block is facing. Unfortunately the enumFacing in the block is dealt with through the tileEntity and 'getActualState' method. Which I think is the reason it always outputs 'north'. Any ideas how to fix/go around this besides moving facing to the block. https://github.com/BeardlessBrady/Currency-Mod/blob/30d7853c28bb545448b09ac3a9b723c2064c11e4/src/main/java/gunn/modcurrency/common/blocks/BlockVendor.java
  9. It asks for a resource location, how would I go about grabbing a resourceLocation from an item object?
  10. How do you grab the unbaked model?
  11. Just as a test I added an apple model into my modded block. https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/client/model/BakedModelVendor.java How do I go about resizing it and translating it. Also it seems to have a black 16x16 square around it.
  12. How do I go about setting rotation, scale, and translation then?
  13. Alright well I got it working....sorta. On the old TESR it would render multiple of the item because of the for loop. now it only renders one in an odd spot, or maybe all of them in one spot. I updated my github with my current code. https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/client/render/RenderTileVendor.java
  14. After further investigation I noticed the render is rendering under the player and moves when they move, which I know is an issue if you leave a GLStateManager.pushMatrix(); open without popping it...but I have made sure to do this for each use of this piece of code.
  15. I looked at the renderQuad method. I attempted to do what its doing there but nothing renders, am I close to whats right? https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/client/render/RenderTileVendor.java
  16. I can't seem to find PlayerUseItemEvent in 1.11, has it been changed or removed?
  17. I found the method, but I can't call it because its private
  18. I got that working...But how do I add quads to the vertexBuffer, there isn't a method that accepts quads.
  19. Is the 'getItemModelWithOverrides' a method of an ItemStack or where do I call it from?
  20. My main problem is I'm not sure how to add an item render to the vertexBuffer since you can't use Minecraft.getMinecraft().getRenderItem().renderItem(new ItemStack(Items.DIAMOND_CHESTPLATE), ItemCameraTransforms.TransformType.GROUND);
  21. So Im not quite sure how to use the FastTESR. It seems to work much differently then a normal TESR.
  22. The itemstack is just for testing, eventually it will pull from the tile's container itself
  23. I've been really frustrated with this as of late. I'm trying to render items on the model from the container. Im using a TESR and whenever I place the block down it causes immense lag. https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/client/render/RenderTileVendor.java

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.