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
  • 1.15.2 How to get the block hit by a throwable entity.
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Merthew

1.15.2 How to get the block hit by a throwable entity.

By Merthew, March 8, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Merthew    2

Merthew

Merthew    2

  • Creeper Killer
  • Merthew
  • Members
  • 2
  • 128 posts
Posted March 8, 2020

So I am trying to get the block hit by say and egg or a snowball instead of where the entity was when it died. Any thoughts on this? I am trying to do this from

ProjectileImpactEvent 

and having some trouble with it. I can get the position of the impact by using

e.getRayTraceResult().getHitVec().x, e.getRayTraceResult().getHitVec().y, e.getRayTraceResult().getHitVec().z

or by

e.getEntity().getPosition()

but I can't really find a way to get the impacted block.

Any help would be much appreciated.

  • Quote

The seven became one and the one became two.

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 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Mark74
      I don't know how forge works

      By Mark74 · Posted 1 minute ago

      Yes i did
    • cadbane86140
      Minecraft: Splegg Mini-Game #2!

      By cadbane86140 · Posted 5 minutes ago

      Hello There! Today is the first of many final Hive Videos, as you guys know the hive is closing on April 15th so what that means for content on the channel is that we are gonna be pumping out a bunch of hive mini-games! Today we play splegg! It's always a fun time playing this and there are so many hilarious moments in this video that I know you guys are gonna love! I hope you all enjoy this video and if you did don't forget to like and sub for more!  
    • Piticri
      Square Letters

      By Piticri · Posted 6 minutes ago

      Hello, Whenever i try to use Forge all my text is turned into white squares.   Please help me  fix this if possible! :D   You can see the problem in this screenshot: http://prntscr.com/x8jm5w
    • BlakeRowsGood
      Forge Installer Not Opening

      By BlakeRowsGood · Posted 9 minutes ago

      Hello! I'm all new to new minecraft so when i eventually wanted to start using mods again I was recommended for using forge but now I'm running into the issue of the forge installer not opening at all. I've followed an older thread that said to open it using the command line but nothing has worked. I keep getting the console telling me "Unable to access jarfile forge-1.16.4-35.1.4-installer.jar." I've also reinstalled minecraft, reinstalled the latest version of java, and used the most up to date and the previous version of forge installer and nothing is working. Please help!    
    • Wintersky20
      Modifying / Replacing Vanilla Blocks (1.16.X)

      By Wintersky20 · Posted 41 minutes ago

      Ok , I'll try it  Thanks for the replay I'll let you know if is working 
  • Topics

    • Mark74
      5
      I don't know how forge works

      By Mark74
      Started 1 hour ago

    • cadbane86140
      0
      Minecraft: Splegg Mini-Game #2!

      By cadbane86140
      Started 5 minutes ago

    • Piticri
      0
      Square Letters

      By Piticri
      Started 6 minutes ago

    • BlakeRowsGood
      0
      Forge Installer Not Opening

      By BlakeRowsGood
      Started 9 minutes ago

    • Wintersky20
      2
      Modifying / Replacing Vanilla Blocks (1.16.X)

      By Wintersky20
      Started 58 minutes ago

  • Who's Online (See full list)

    • larsgerrits
    • kiou.23
    • Mark74
    • Piticri
    • cadbane86140
    • Wintersky20
    • CookieLukas
    • BlakeRowsGood
    • Cheezy Amuzus
    • FlashHUN
    • Jason_Whittaker
    • lgilly475
    • cyndergocrazy900000
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • 1.15.2 How to get the block hit by a throwable entity.
  • Theme

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