December 20, 20168 yr Author Alright, so I inserted a breakpoint where you told me to (the dot appeared on the line below, is that ok?). I have the game open in debug mode, what now? I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author mine the block Aright, done. Eclipse asked em to open the debug perspective, and I did so. What information do I need to look for now? Really, what should I give you to all? I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author Well, I don't really know how to give, and what to give, but here is the information in my Debug screen: https://postimg.org/image/9wglhhtlt/ https://postimg.org/image/gzytd28bx/ It also brought up PlayerInteractionManager and highlighted this line (298): boolean flag = iblockstate.getBlock().removedByPlayer(iblockstate, theWorld, pos, thisPlayerMP, canHarvest); My GitHut (if you need to look at my code): https://github.com/EcapeMC/ThingsMod-1.10.2 I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author yes I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author where is the block for the chest ? Oh sorry, I had it in init for some reason... I changed it now https://github.com/EcapeMC/ThingsMod-1.10.2/tree/master/src/main/java/com/github/escapemc/thingsmod/blocks I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author you never create the tileEntity What exactly do you mean? This one: @Override public boolean removedByPlayer(IBlockState state, World worldIn, BlockPos pos, EntityPlayer player, boolean willHarvest) { if(!worldIn.isRemote) { TileEntity ***tileentity*** = worldIn.getTileEntity(pos); There? I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author That is not creation. This method does not do what you think it does. In fact it does precisely jack shit, because it is never called. Alright, so what can I do to fix this all? What must I do with this method to make my test_chest have the tileEntity? I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr That is not creation. This method does not do what you think it does. In fact it does precisely jack shit, because it is never called. Alright, so what can I do to fix this all? What must I do with this method to make my test_chest have the tileEntity? remove it
December 20, 20168 yr Author That is not creation. This method does not do what you think it does. In fact it does precisely jack shit, because it is never called. Alright, so what can I do to fix this all? What must I do with this method to make my test_chest have the tileEntity? remove it Then how does one link my TileEntity to my test_chest? I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr and this is how to clean up from Iinventory https://github.com/loordgek/ThingsMod-1.10.2/commit/863174f611a46a1fa55454e8f61f33a4a0da4326
December 20, 20168 yr Author You need to actually override stuff from the superclass. Just placing random methods in your block class will not magically make Minecraft care about them or much less call them. Well I am sorry, I was incorrectly informed. I was under the impression that using that linked the tile entity. What must I do exactly to make test_chest use TileEntityTestChest? And thanks loordgek for that IInventory help with cleaning up from it. I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author override public TileEntity createTileEntity(World world, IBlockState state) Oh sorry! I didn't see you said that. Thank you, I didn't realize I should have done @Override until I thought about it. What method should I make to satisfy, "The method TileEntityTestChest() is undefined for the type test_chest" error? I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author No. You need to think about what that means. You are trying to call a method TileEntityTestChest on the test_chest class. Why are you doing that? Think about it, it makes no sense... The fix is not to blindly create some method to shut up the compiler. The fix is to think about what you want the code to do. Alright, so I am not sure if this hasTileEntity has to do with this part, but @Override public boolean hasTileEntity(IBlockState state) { return true; } @Override public TileEntity createTileEntity(World world, IBlockState state) { return new TileEntityTestChest(); } Am I getting closer? Also, do I need to use getTileEntity? I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
December 20, 20168 yr Author looks good now test if everything works now Horray! Everything works! The GUI comes up, and the block, when destroyed, does not give errors! I just want to give special thanks (Huge fucking thanks) to Draco18s, loordgek, and diesieben07 for not only helping me achieve this custom chest, but also tolerating me with my lack of some knowledge and common sense. I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But...... https://www.youtube.com/watch?v=6t0GlXWx_PY ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2 TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2 If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.
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.