Posted February 17, 20232 yr I'm trying to make an item that when I right click it a falling block shoots from the position of the player, in the direction where the player is looking but, I tried FallingBlockEntity fallingBlock = FallingBlockEntity.fall(event.getLevel(), event.getPos(), Blocks.DIRT.defaultBlockState()); and setting the delta movement to the look angle of the player but the falling block just falls from the players feet to 2 block and then disappears and reappears near as a full block on a block near the crosshair. I don't know what to do.
February 17, 20232 yr 7 hours ago, Rex_Technology said: and setting the delta movement to the look angle of the player but the falling block just falls from the players feet to 2 block and then disappears and reappears near as a full block on a block near the crosshair. I don't know what to do. The falling block only has logic for...falling. If you want it to do something else, you need to program the movement logic for it.
February 18, 20232 yr You can probably look at any Projectile entity and figure it out if you don't know how to do the math.
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.