Test for block but ignore transparent blocks/ test for solid block

Started by SquidkingInc on Mon, 06/17/2019 - 10:24

Topic category: Help with MCreator modding

Last seen on 06:22, 15. Jul 2019
Joined Sep 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Test for block but ignore transparent blocks/ test for solid block
Mon, 06/17/2019 - 10:25 (edited)

In the procedure editor how do I make something test for a block but ignore all transparent blocks, such as slabs, glass, cobwebs, tall grass, flowers, ect. I know some blocks do this in Minecraft already such as grass blocks when testing to see if they have a solid block on top. ( I am trying to make grass blocks :/ )

Edited by SquidkingInc on Mon, 06/17/2019 - 10:25
Last seen on 17:05, 16. Jul 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
You could check the light…
Mon, 06/17/2019 - 19:47

You could check the light value on the block location and above it. If the value is the same, the block is transparent.

Last seen on 06:22, 15. Jul 2019
Joined Sep 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
but that means if two blocks…
Mon, 06/17/2019 - 21:12

but that means if two blocks are above it, it will not turn to dirt...

Last seen on 06:22, 15. Jul 2019
Joined Sep 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Also then a torch will turn…
Mon, 06/17/2019 - 21:16

Also then a torch will turn the grass to dirt, this doesn't really solve my problem

Last seen on 16:21, 16. Jul 2019
Joined May 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Test if the light value of…
Tue, 06/18/2019 - 01:22

Test if the light value of the block above is more than 0. If it is, then your block is fine. If it is 0, then that means the block is solid and it needs to turn to dirt

Last seen on 06:22, 15. Jul 2019
Joined Sep 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
but when it turns night all…
Wed, 06/19/2019 - 05:36

but when it turns night all the grass will turn to dirt