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.

james090500

Members
  • Joined

  • Last visited

  1. Ah, That was my mistake! Thank you
  2. this is what I have so far public class ClientProxy implements CommonProxy { //Calling ONLY on client side @Override public void init() { BetterMCItems.registerRenders(); BetterMCBlocks.registerRenders(); BetterMCTools.registerRenders(); Minecraft.getMinecraft().getBlockColors().registerBlockColorHandler(new IBlockColor() { @Override public int colorMultiplier(IBlockState state, IBlockAccess worldIn, BlockPos pos, int tintIndex) { return worldIn.getBiomeGenForCoords(pos).getFoliageColorAtPos(pos); } }, BetterMCBlocks.FenceLeaves); } It is still however showing the texture as the grey leaves. Would I need to update anything with my json? I'm a little stumped
  3. And where would I register it? The block class? PreInit, init?
  4. BlockLeaves contains nothing for colourizing. I did try including this just after my block registration but that didn't seem to work. registerBlock(FenceLeaves); BlockColors bc = new BlockColors(); bc.registerBlockColorHandler(new IBlockColor() { @Override public int colorMultiplier(IBlockState state, IBlockAccess worldIn, BlockPos pos, int tintIndex) { return worldIn != null && pos != null ? BiomeColorHelper.getFoliageColorAtPos(worldIn, pos) : ColorizerFoliage.getFoliageColorBasic(); } }, new Block[] { BetterMCBlocks.FenceLeaves });
  5. Hello, I've searched far and wide but i am at a lost. I am making a new block which uses the leaf texture. How would I got about adjusting the color so it's not grey and is the color of leaves in the surrounding biome? So far i've tried @Override public boolean recolorBlock(World world, BlockPos pos, EnumFacing side, EnumDyeColor color) { return super.recolorBlock(world, pos, side, color.GREEN); } And that's not working, I can't find any other methods though.
  6. Even with no super, the collisionbox is now 1 block bigger than it should be. @Override public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, Entity entityIn) { collidingBoxes.add(BOUNDING_BOX); } Fixed. I just returned Bounding_BOX instead of adding it, @Override public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, World worldIn, BlockPos pos) { return BOUNDING_BOX; }
  7. I was wrong, but still kicking me out when ever i try walk into the place where there should be no collision
  8. No, I've found the issue. AxisAlignedBB wont work out math, so doing eg; 0.5 * 2 would mess up the collision box. Instead put the answer in there
  9. I'm affraid that didn't work, @Override public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, Entity entityIn) { collidingBoxes.add(BOUNDING_BOX); super.addCollisionBoxToList(pos, entityBox, collidingBoxes, BOUNDING_BOX); } All it did was make the hitbox larger, so now it's 1 block bigger than it was previously.
  10. I'm not entirely sure what you mean? Do you mean put this: super.addCollisionBoxToList(pos, entityBox, collidingBoxes, new AxisAlignedBB(0, 0, 0, 0.0625 * 8, 1, 1)); instead?
  11. Hello, So basically my custom block is still thinking it's a full block. If i try walk into the empty side it lets me in a little bit then pushes me out again. Some pictures
  12. Hello! I'm extremely stuck, I've been testing and trying for 8 hours but I'm going no where. I need my mod to read a json file which contains information about players. I need it to be able to do this.... JSON "Player1": [ "status": "offline", "mode": "null", "server": "null" ] "Player2": [ "status": "online", "mode": "single", "server": "null" ] "Player3": [ "status": "online", "mode": "mp", "server": "mc.Example.net" ] JSON json = new JSON(new FileReader("file.json")); List<String> names = new ArrayList<String>(); String line = json.getTitles(); <-- Get Player1, Player2, Player3 while(line !=null) results.add(line); } --- AND --- JSON json = new JSON(new FileReader("file.json")); List<String> names = new ArrayList<String>(); String line = json.getOptions("status"); <-- Get Offline, Online, online (Stay in order like above) while(line !=null) results.add(line); } is this possible?
  13. I'm using translate as other wise the character is turned upside down, but 2 blocks above. -- edit -- Removed translate still got the issue.....
  14. So I'm trying to rotate my player (like dinnerbone) and it's working ok (the rotation part) But when a player looks at a rotated player and jump, they jump as well, if a person flys, the roated person flys up, like the floor is reversed. I've tried using GL to rotate translate etc, but nothing seems to work. The Steve model is the only one moving, the alex model is stationary.

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.