Posted December 1, 20186 yr I have looked through the ItemGlassBottle and ItemBucket classes in answer to this question, but is there a way to detect if the player right clicks on a block of water with an item using PlayerInteractEvent?
December 1, 20186 yr 4 minutes ago, Siqhter said: but is there a way to detect if the player right clicks on a block of water with an item using PlayerInteractEvent? Sadly not without ray tracing yourself. Edited December 1, 20186 yr by Animefan8888 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.
December 1, 20186 yr 10 minutes ago, Siqhter said: Ok, that's what I thought. Is there a downfall to that? No not really, its not that performance intensive to do. 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.
December 2, 20186 yr Author Ok thanks. So mimicking the code in ItemGlassBottle (or similar to it, at least) should be good, without adding too much I don't need?
December 2, 20186 yr Author Sorry, I actually got it. I was just wondering however if my class has to extend Item to use RayTraceResult. Specifically #rayTrace, where the arguments are.
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.