How to get block X Y Z as variables from an ArmorOnHeadTick procedure?

Started by amogus6116 on

Topic category: Help with MCreator software

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get block X Y Z as variables from an ArmorOnHeadTick procedure?

I want to get the X Y Z coordinates of the block above the player while they are wearing a custom armor piece, and save them into local variables for later use. How would I do this?

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do this with code blocks: IF…
Mon, 12/19/2022 - 15:16

Do this with code blocks:

IF (Get Item from armor slot (?) = (Armor))

{

Set Local (x) to (x position of event/target entity)

Set Local (y) to (y position of event/target entity)

Set Local (z) to (z position of event/target entity)

}

if