Place the block in off-hand of player

Started by Gooperdooper on

Topic category: Help with MCreator software

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Place the block in off-hand of player
Fri, 12/18/2020 - 15:20 (edited)

Hi! I'm trying to place the block in the off hand of the player and removing one of those blocks using procedures. I have tried using convert item in main hand of event/target entity to block, or air if conversion fails. And for some reason, it fails? Does anyone know how to place the block in the off-hand?

(If it matters, I'm trying to make a mod where if you break a block it replaces it with the block in your off-hand)

Edited by Gooperdooper on Fri, 12/18/2020 - 15:20
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What kind of block was in…
Fri, 12/18/2020 - 17:27

What kind of block was in your offhand? I think it's more likely to work with something like dirt

 

Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want to get the block that…
Fri, 12/18/2020 - 17:29

I want to get the block that is in my offhand and place it.