How do i make a gun where if the projectile hits the ground it places a block?

Started by Thedoom19 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make a gun where if the projectile hits the ground it places a block?

How do i make a gun where if the projectile hits the ground it places a block?

I need it for my mod

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to create a…
Thu, 01/20/2022 - 14:50

You need to create a procedure that executes the "/setblock" command, then select the procedure in your ranged item at "When projectile hits block" and "When projectile hits living entity".

Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But if you only want it to…
Thu, 01/20/2022 - 14:52

But if you only want it to place a block when the bullet hits the ground, but that it doesn't place a block when hit an entity, then just select "When projectile hits block"

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You don't need to use the …
Fri, 01/21/2022 - 02:04

You don't need to use the /setblock command as there is a "place block at x y z" procedure block