How would i make a bullet break a glass block?

Started by supermj767 on Tue, 03/24/2020 - 14:03

Topic category: Help with modding (Java Edition)

Last seen on 16:22, 14. Jan 2021
Joined Dec 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How would i make a bullet break a glass block?
Tue, 03/24/2020 - 14:03

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!
 

Last seen on 21:26, 14. Jan 2021
Joined Jul 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Procedure Trigger (2020.1):…
Tue, 03/24/2020 - 16:16

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:

https://cdn.discordapp.com/attachments/348149652505231381/692044101708808202/unknown.png

Last seen on 21:26, 14. Jan 2021
Joined Jul 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Oh wait it's tracking player…
Tue, 03/24/2020 - 16:18

Oh wait it's tracking player position instead of bullet position for you... strange

Last seen on 14:05, 15. Jan 2021
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can't really do this…
Tue, 03/24/2020 - 16:39

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.

Last seen on 16:22, 14. Jan 2021
Joined Dec 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yeah it is but thanks anyway…
Tue, 03/24/2020 - 17:32

Yeah it is but thanks anyway :)

Last seen on 16:22, 14. Jan 2021
Joined Dec 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Okay that's fine Thank you
Tue, 03/24/2020 - 17:33

Okay that's fine Thank you