check for blocks in a 6x6 area

Started by Mars33311 on

Topic category: Help with MCreator software

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
check for blocks in a 6x6 area

I wanted to make it so that when you wear a lava walking boot, it checks for lava around you and turns it into obsidian, and another one where herobrine turns air into void air. But it gets an error every time. Can you show me how to do it? I think I put in a wrong variable in the templates, but I cannot be sure.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can make it using…
Thu, 09/03/2020 - 15:42

You can make it using procedures:

On player update tick:

 If: Get item from armor slot 4 = lava walking boots

  Do: If get block at x y-1 z = lava

           Do place obsidian at x y-1 z

(you need to check every block here's some help:

So I figured ot that 

z+1 is foward

z-1 is backward

x+1 is left

x-1 is right 

y+1 is up

y-1 is down

hope this help's)

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean that there is a…
Fri, 09/04/2020 - 07:12

I mean that there is a template for it

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but I must have inputed the…
Wed, 11/18/2020 - 07:29

but I must have inputed the wrong variable, because it kept on saying error

 

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i know this is mad old but…
Mon, 07/17/2023 - 23:39

i know this is mad old but when setting the trigger to 'on player update tick' it crashes my whole game when trying to test it in the testing world

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The check for block template…
Tue, 07/18/2023 - 01:11

The check for block template should work fine for it, just make sure you delete the variable it adds, since you're not actually trying to get a return value. Instead, in the central part of the template, check if the block at x+sx, y+sy, z+sz is lava, and, if so, place obsidian at x+sx, y+sy, z+sz. I use this template a lot and I haven't had issues with it in the past.