how to make a block do a procedure next to a specific block

Started by Marmations on

Topic category: Help with Minecraft modding (Java Edition)

Active 7 months ago
Joined Mar 2019
Points:
721

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
how to make a block do a procedure next to a specific block

i'm trying to create a block that explodes whentouching a specific block in the game.

Active 3 years ago
Joined Nov 2019
Points:
877

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 384
Use event trigger procedure …
Wed, 11/27/2019 - 08:54

Use event trigger procedure "Update Tick", then in the procedure check for surrounding blocks' type, then explode if match.

Active 7 months ago
Joined Mar 2019
Points:
721

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
How do I do that? Could you…
Wed, 11/27/2019 - 17:01

How do I do that? Could you give an example or an image

Active 3 years ago
Joined Nov 2019
Points:
877

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 384
I don't use a site that…
Wed, 11/27/2019 - 17:35

I don't use a site that uploads pics.

In your workspace:

  1. Create a new block
  2. Define block properties ->  define particles -> define tile entity -> define block event procedures
  3. in the define block event procedures, create a new proc for "Update Tick"
  4. in the new proc, use "Get block at x, y, z", "is block of material type" & "if else" procedures to scan for adjacent blocks and "Explode at x,y,z with power n" if the block matches type
Active 3 years ago
Joined Nov 2019
Points:
877

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 384
You need to check adjacent…
Thu, 11/28/2019 - 04:24

You need to check adjacent blocks, not your block's position.

Check blocks (x-1,y, z), (x,y+1,z), (x,y,z-1), (x+1,y,z), etc. Basically the 6 blocks surrounding your block.

Active 7 months ago
Joined Mar 2019
Points:
721

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
I made the block do it on…
Thu, 11/28/2019 - 04:48

I made the block do it on all 6 of it's sides like you said and it works. Thank you! :)

Active 1 year ago
Joined Oct 2023
Points:
156

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
Hey, i have been trying to…
Mon, 10/30/2023 - 11:34

Hey, i have been trying to do the same but since the "is material type" block got removed i though it would work like this tho it doesn't. Any help?                                                                                  

Active 1 year ago
Joined Oct 2023
Points:
156

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
Nvm i figured it out lol
Tue, 10/31/2023 - 21:18

Nvm i figured it out lol