Started by
supermj767
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make my guns in my gun mod be able to break glass when the bullet hits it but it doesent work iv'e tried everything, i made a procedure on "when bullet hits block" Break block (If is type "Glass") but it just breaks only at the players position not where the bullet landed,
Its tracking the players position not the bullets position,
so basically i need a procedure that will break a glass block when a bullet hits it
Thank you!
Procedure Trigger (2020.1): When bullet hits block
In procedure: "If Get block at x y z = glass: Place air at x y z"
Looks like this:
Oh wait it's tracking player position instead of bullet position for you... strange
You can't really do this effectively without using custom code, really. The only way to do this would be to remove a 3x3 area while the bullet is flying.
Yeah it is but thanks anyway :)
Okay that's fine Thank you
You can also use explosion with very small power it's 0,3. It will break glass and other things which will broke in reality like comparators, lamps etc. Personally I use this trick. You can check more in minecraft wiki about explosions here: https://minecraft.gamepedia.com/Explosion
I cant check the position of the bullet, so this will not work.
I did same but it effect random nearby blocks instead the one that i hitted