Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • setEntityBoundingBox not working...
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
Discult

setEntityBoundingBox not working...

By Discult, January 11, 2019 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Discult    2

Discult

Discult    2

  • Creeper Killer
  • Discult
  • Members
  • 2
  • 106 posts
Posted January 11, 2019

Hello i am trying to make a bounding box that is 0.5 width, 1.5 height and 1 length. but when i do setEntityBounding box it doest work sets it to the default size bounding box. only thing i can do that works is setSize but that makes the width and length the same size. how can i fix this.

  • Quote

Share this post


Link to post
Share on other sites

jabelar    593

jabelar

jabelar    593

  • Reality Controller
  • jabelar
  • Members
  • 593
  • 3266 posts
Posted January 12, 2019 (edited)

The entity bounding boxes need to have the same length and width (i.e. square base). I believe this is to simplify path-finding. Similarly note that the bounding box never rotates even when the model does, so it wouldn't be that helpful even if you could specify different values.

 

EDIT: Also the setEntityBoundingBox() method set's the actual box in the world meaning the values of the box would be related to the entity position. If the size was 2.0 wide and the entity is at x position of 300 then the bounding box would go from 299 to 301.

 

You shouldn't ever use the setEntityBoundingBox() method as it is meant for updating the position of the bounding box based on the size and position.

Edited January 12, 2019 by jabelar
  • Like 1
  • Quote

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Gubipe
      What is the method to left click?

      By Gubipe · Posted 46 minutes ago

      I am trying to make a custom autoclicker for my client side mod which will be used on my smp server so that when someone presses down the key "v" it will toggle an autoclicker for them. I was wondering if anyone could tell me what the method is to register a left click? I would appreciate it!
    • DaemonUmbra
      tempête de Neige primal winter

      By DaemonUmbra · Posted 1 hour ago

      Please keep this forum in English. Are you a developer for the mod or are you a player?
    • DaemonUmbra
      3rd party hosted Server wont launch

      By DaemonUmbra · Posted 1 hour ago

      This is coming out of Linux, not Forge. Apparently the system you're using has hit its limit for file watches, and given that the default on my Linux instance is 524288 I'm inclined to believe that your hosting provide has either set a limit that's much lower, or is cramming tons of servers onto one machine. Either way this sounds to me like you need a better hosting provider.
    • iHamster
      Stuck with block movement

      By iHamster · Posted 1 hour ago

      I take it as a type of suggestion one can't decline  
    • Draco18s
      Stuck with block movement

      By Draco18s · Posted 1 hour ago

      Why the fauk does your renderer change what blocks are in the world? That's not the job of a renderer.
  • Topics

    • Gubipe
      0
      What is the method to left click?

      By Gubipe
      Started 47 minutes ago

    • Ronshark
      1
      tempête de Neige primal winter

      By Ronshark
      Started 3 hours ago

    • BoGuBoy
      1
      3rd party hosted Server wont launch

      By BoGuBoy
      Started 4 hours ago

    • iHamster
      12
      Stuck with block movement

      By iHamster
      Started January 6

    • awsfte
      2
      awsfte

      By awsfte
      Started 3 hours ago

  • Who's Online (See full list)

    • will.haskamp@icloud.com
    • Joshthehoneskid
    • AubriTheHuman
    • Leronus
    • ThatTreeGuy
    • ozi
    • Danebi
    • Gubipe
    • BoGuBoy
    • XmasAspire
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • setEntityBoundingBox not working...
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community