Posted August 31, 20169 yr Ive made a portal in the 1.10.2 but it keeps crashing with an NPE as soon as i step into the portal block. Error: http://pastebin.com/TG24XnP7 BlockPortal: http://pastebin.com/BV9dZDhx Teleporter: http://pastebin.com/rGXXsfZG I tried debugging but hadn't any luck so far. Oh and i get teleported since im in the other dimension after reloading the world.
August 31, 20169 yr Ive made a portal in the 1.10.2 but it keeps crashing with an NPE as soon as i step into the portal block. Error: http://pastebin.com/TG24XnP7 BlockPortal: http://pastebin.com/BV9dZDhx Teleporter: http://pastebin.com/rGXXsfZG I tried debugging but hadn't any luck so far. Oh and i get teleported since im in the other dimension after reloading the world. Your Collision bounding box is null. It can not be null or entities can not collide with it. VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
August 31, 20169 yr Author Ive made a portal in the 1.10.2 but it keeps crashing with an NPE as soon as i step into the portal block. Error: http://pastebin.com/TG24XnP7 BlockPortal: http://pastebin.com/BV9dZDhx Teleporter: http://pastebin.com/rGXXsfZG I tried debugging but hadn't any luck so far. Oh and i get teleported since im in the other dimension after reloading the world. Your Collision bounding box is null. It can not be null or entities can not collide with it. Well its the code of the original Portalblock. public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { switch ((EnumFacing.Axis)state.getValue(AXIS)) { case X: return X_AABB; case Y: default: return Y_AABB; case Z: return Z_AABB; } } @Nullable public AxisAlignedBB getCollisionBoundingBox(IBlockState blockState, World worldIn, BlockPos pos) { return NULL_AABB; } http://pastebin.com/gTGsCgqk oh and btw. that's fixed so far, but i cant go back into the overworld dimension, crashing with the same error.
August 31, 20169 yr If you're extending a class, don't copy-paste that class into your new one. Let the parent class handle all the stuff that's exactly the same. That's the beauty of OOP. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
September 1, 20169 yr Author If you're extending a class, don't copy-paste that class into your new one. Let the parent class handle all the stuff that's exactly the same. That's the beauty of OOP. Gonna try it.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.