Testing for a certain block

Started by BrickMaster5000 on

Topic category: Help with MCreator software

Last seen on 00:36, 3. Mar 2020
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Testing for a certain block

I just started using 1.7.9. I knew how to do this in the old versions, what about now?

Last seen on 11:18, 15. Feb 2020
Joined Apr 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You use the procedure system…
Wed, 05/23/2018 - 15:33

You use the procedure system:
place a if block [Found in logic and loops] underneath Event trigger

then insert ❏ == ❏ [Found in logic operations] on the left of it
After that insert the ❏ block [in Minecraft Components] into the first slot and select the block you want
After that get "get block at x: y: z: ❏ and insert it on the second slot

you can for example: put (Under Math) y - 1 (you find the y in minecraft components) and insert it into the y: slot this would check for the block underneath the player

Then insert the action you want into do (for example: Add potion effect [Under Player Management] with level and duration to provided player) this would give a potion effect to the player if he is standing on the block [I hope you understood this!]

Last seen on 00:36, 3. Mar 2020
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks
Thu, 05/24/2018 - 15:19

thanks