Jump to content

Recommended Posts

  • Replies 67
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Quick:

Name a block that emits particles

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.

Posted

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?

Posted (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 by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

Posted

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.

Posted
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.

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.

Posted
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.

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.

Posted
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.

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.

Posted
8 minutes ago, Animefan8888 said:

override getCollisionBoundingBox(IBlockState, IBlockAccess, BlockPos) in your blocks class.

And what do I put in the method?

Posted
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.

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.

Posted

    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?

Posted

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

Posted (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 by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

Posted
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?

Posted
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?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

Posted
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.

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.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)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.