Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to sub forum page

General forum

Non-course related subjects

3. Programming help

Custom Hit Boxes?

  • 2013-11-02 17:21:21
    I was wondering if there is a way to add a second hit box, which when you right click on will do something.

    As an example, the ender tank and/or the ender chest which is added in by ender storage.
  • 2013-11-02 17:22:04
    Because at the moment, I am just using a second block with edited block bounds. Which works, but it's not very practical.
  • 2013-11-03 02:30:56
    make a bigger hitbox and use the hitX, hitY, and hitZ to filter whereabouts is hit, and do things accordingly?
  • 2013-11-03 07:51:33
    You could use an EventHandler, subscribe to DrawBlockHighlightEvents, and then check if it is your Block the Player is looking at. If that is the case you can render your own Boundaries around the Areas of your Block, you want to highlight.

    The code for how vanilla HitBoxes are rendered, can be found in "net.minecraft.client.renderer.RenderGlobal.java"
    in the method drawSelectionBox
  • 2013-11-03 09:55:56
    Chickenbones uses collisionRayTrace method and then setBlockBounds accordingly to where the player is looking.

    Of course he uses a ton of custom code on top of that. It's all open source so you can easily look there.

    A bit easier way i've tried to use is to set block metadata using collisionRayTrace and then setBlockBounds depending on metadata.

    The only hard part is to determine which of the smaller bounds is selected and is closer to player's eyes.
  • 2013-11-03 13:50:11
    Yh Kocyk, thats what i'm currently looking into doing.
  • 2017-04-22 20:54:01
    <a href=http://alexpon666.inf.ua/essay/index.php>Essay Writing help online at your service | Speedy Quality at its best!</a>

    <a href=http://alexpon666.inf.ua/essay/index.php><img>http://alexpon666.inf.ua/speedypaper.jpg</img></a>

    <a href=http://alexpon666.inf.ua/essay/index.php>CLICK HERE -> Online Service</a>





































    dissertation statistical services ecosystem zones
    esl speech ghostwriting site gb
    esl article ghostwriters site online
    best essays about new york
    popular scholarship essay editing website for school
    higher english critical essay conclusion
    write me top phd essay on presidential elections
    methologie de dissertation en philosophie
    lady macbeth character analysis essay logos
    how to write a college application essay 6th grade worksheets
    phd thesis in tourism marketing jobs
    professional creative essay ghostwriters websites for mba
    buy persuasive essay paper quilling
    resume services mn
    get paid to write business articles

    <b>popular research paper writer website gb
    </b>
    can i write an essay in first person
    esl argumentative essay writing website au
    written assignment for physical education
    best scholarship essay ghostwriters service usa
    phd thesis on cash management
    essay about king saud university
    ghostwriters for hire los angeles
    custom dissertation hypothesis ghostwriting service ca
    imperialism and colonialism essays on the history of european expansion
    short essay on money is everything
    phd thesis logistics
    top homework ghostwriting website us
    writing finance paper help reviews
    cheap curriculum vitae writers sites ca
    professional essay ghostwriting site for university

    <u>top content writers for hire online
    </u>
    sample paper of net english
    buy best school essay on usa
    what is research instrument
    trusty essay writing service vancouver
    how to write a reaction paper to a journal
    linear algebra and vector geometry
    professional annotated bibliography editor site for masters
    custom scholarship essay proofreading service for school
    professional personal statement editor site usa
    online dissertations free
    medical personal statement ucas
    best resume writing services military highway norfolk
    american doctoral dissertations online musicology masters
    scientific paper write up
    top blog post ghostwriters service for school

    <i>how to make an essay summary
    </i>


    <a href=http://science2day.info>http://science2day.info</a>
  • Log in or sign up to reply to this thread