is it possible to make an item to go through certain blocks

Started by jean michel on

Topic category: Troubleshooting, bugs, and solutions

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is it possible to make an item to go through certain blocks

hi i'm asking if it's possible to make an item that can be activated for a minute and when it's activated you can go through block. and if it is, please tell me how do it thank you

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The problem with going…
Wed, 06/28/2023 - 18:16

The problem with going through blocks is that the ground is made of blocks.

There are two solutions here:

1. You can switch the player temporarily into Spectator mode.

2. You can change the blocks nearby into falling blocks with no gravity.

For the second, you can use this command:

/summon falling_block <x> <y> <z> {BlockState:{Name:"minecraft:stone"},NoGravity:1}

"minecraft:stone" can be replaced with the block ID of the block you are replacing.