How Do I Place A Block From The Players Mainhand

Started by Simplicius on Wed, 03/31/2021 - 09:51

Topic category: Help with MCreator software

Last seen on 16:25, 5. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How Do I Place A Block From The Players Mainhand
Wed, 03/31/2021 - 09:51

I have this custom block and on a right click I want to:

  • check wether the item the players is holding in his mainhand is a slab
  • if this is the case, I want to place this item

To achieve this I went to: custom_block > triggers > on block right clicked, and did:

I will be replacing "logs" with "slab" in the future, I however can't figure out how to place the item (block) the players is holding in his mainhand.

Thanks in advance!

Last seen on 01:44, 7. May 2021
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There is should be procedure…
Wed, 03/31/2021 - 12:18

There is should be procedure block in Block Procedures that converts Itemstack to Block