Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 2 minutes ago, Draco18s said: Look at where vanilla makes particles. which class is it? Quote Link to comment Share on other sites More sharing options...
Draco18s Posted October 4, 2018 Share Posted October 4, 2018 Quick: Name a block that emits particles Quote 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. Link to comment Share on other sites More sharing options...
Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 Ok I understood how I spawn particle but how do I get the block position I want, I wanted to get that part that is raised from the middle, how do I do? Quote Link to comment Share on other sites More sharing options...
Cadiboo Posted October 4, 2018 Share Posted October 4, 2018 (edited) 4 minutes ago, Ragnar said: Ok I understood how I spawn particle but how do I get the block position I want, I wanted to get that part that is raised from the middle, how do I do? position passed in + 0.5x + 1y + 0.5z Use the debugger’s hotswap code feature to tinker around with the values. Edited October 4, 2018 by Cadiboo Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 14 minutes ago, Cadiboo said: debugger’s hotswap code what is this? Quote Link to comment Share on other sites More sharing options...
Draco18s Posted October 4, 2018 Share Posted October 4, 2018 http://www.vogella.com/tutorials/EclipseDebugging/article.html Quote 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. Link to comment Share on other sites More sharing options...
Animefan8888 Posted October 4, 2018 Share Posted October 4, 2018 3 hours ago, Draco18s said: and its not xEnd, yEnd, its xWidth and yHeight. I don' think that is true. At least after looking through some of the vanilla models. Quote 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. Link to comment Share on other sites More sharing options...
Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 11 minutes ago, Draco18s said: http://www.vogella.com/tutorials/EclipseDebugging/article.html I did not understand how to use this, but I did on the basis of the tests Quote Link to comment Share on other sites More sharing options...
Draco18s Posted October 4, 2018 Share Posted October 4, 2018 8 minutes ago, Animefan8888 said: I don' think that is true. At least after looking through some of the vanilla models. I'll admit I might be wrong, its been a while since I messed with it. Quote 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. Link to comment Share on other sites More sharing options...
Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 Is it possible for me to modify the hit box to put it in the format of my block? Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted October 4, 2018 Share Posted October 4, 2018 8 minutes ago, Ragnar said: Is it possible for me to modify the hit box to put it in the format of my block? override getCollisionBoundingBox(IBlockState, IBlockAccess, BlockPos) in your blocks class. Quote 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. Link to comment Share on other sites More sharing options...
Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 8 minutes ago, Animefan8888 said: override getCollisionBoundingBox(IBlockState, IBlockAccess, BlockPos) in your blocks class. And what do I put in the method? Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted October 4, 2018 Share Posted October 4, 2018 2 minutes ago, Ragnar said: And what do I put in the method? It needs to return the collision box, an instance of AxisAlignedBB. Or if you need multiple boxes use addCollisionBoxToList(IBlockState, World, BlockPos, AxisAlignedBB, List<AxisAlignedBB>, @Nullable Entity, boolean) and add all of your collision boxes to that list with the other addCollisionBoxToList method within your Block class. Quote 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. Link to comment Share on other sites More sharing options...
Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 and how AxisAlignedBB works Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted October 4, 2018 Share Posted October 4, 2018 Just now, Ragnar said: and how AxisAlignedBB works You'll use xStart, yStart, zStart, xEnd, yEnd, zEnd. 1 "pixel" is 1/16 and 2 "pixels" is 2/16 Quote 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. Link to comment Share on other sites More sharing options...
Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 public static final AxisAlignedBB under = new AxisAlignedBB(1, 0, 1, 15, 2, 15); public void addCollisionBoxToList(IBlockState state, World worldIn, BlockPos pos, AxisAlignedBB entityBox, List<AxisAlignedBB> collidingBoxes, @Nullable Entity entityIn, boolean isActualState) { addCollisionBoxToList(pos, entityBox, collidingBoxes, under); } Should not this work? Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted October 4, 2018 Share Posted October 4, 2018 3 minutes ago, Ragnar said: Should not this work? 14 minutes ago, Animefan8888 said: 1 "pixel" is 1/16 and 2 "pixels" is 2/16 Quote 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. Link to comment Share on other sites More sharing options...
Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 1 pixel is 0.0625D or 0.625D or no? Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted October 4, 2018 Share Posted October 4, 2018 1 minute ago, Ragnar said: 0.0625D This is correct. Quote 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. Link to comment Share on other sites More sharing options...
Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 public static final AxisAlignedBB under = new AxisAlignedBB(0.0625D, 0.0625D, 0.0625D, 0.9375D, 0.125D, 0.9375D); Is it right? if is it right , i am wrong in the method because it is not working Quote Link to comment Share on other sites More sharing options...
Cadiboo Posted October 4, 2018 Share Posted October 4, 2018 (edited) 2 hours ago, Ragnar said: public static final AxisAlignedBB under = new AxisAlignedBB(0.0625D, 0.0625D, 0.0625D, 0.9375D, 0.125D, 0.9375D); Is it right? if is it right , i am wrong in the method because it is not working A pixel is 1/16 so 0.0625. That AxisAlignedBoundingBox goes from (in “pixels”) 1,1,1 to 15,2,15. Is this what you want? Are you correctly overriding the method? Use print statements & the debugger to see if it’s getting called and what’s happening. You want to override getBoundingBox, getSelectedBoundingBox and getCollisionBoundingBox Edited October 4, 2018 by Cadiboo Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 7 minutes ago, Cadiboo said: That goes from (in “pixels”) 1,1,1 to 15,2,15. Is this what you want? this is exactly what I want, now how would the method be in list because I go for more? Quote Link to comment Share on other sites More sharing options...
Cadiboo Posted October 4, 2018 Share Posted October 4, 2018 Just now, Ragnar said: this is exactly what I want, now how would the method be in list because I go for more? Can you please clarify? Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
Ragnar Posted October 4, 2018 Author Share Posted October 4, 2018 3 minutes ago, Cadiboo said: Can you please clarify? How addCollisionBoxToList is. Quote Link to comment Share on other sites More sharing options...
Cadiboo Posted October 4, 2018 Share Posted October 4, 2018 1 hour ago, Ragnar said: How addCollisionBoxToList is. addCollisionBoxToList allows you to add multiple boxes (think of fences, they have a box for the pillar, and a box for each connection) that an entity can collide with. This method exists because AxisAlignedBoundingBoxes have to be cuboids. To have different shapes you can group together cuboids (in a List) to create a more complex shape that can be collided with - any shape can be made with cuboids if you use enough of them. Quote About Me Spoiler My Discord - Cadiboo#8887 My Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.github.io/tutorials Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support. When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible. Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme) Link to comment Share on other sites More sharing options...
Recommended Posts
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.