How to have a mob place block

Started by natemilligan45 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to have a mob place block

How do I make a mob place blocks if they have it in there inventory. i want a mob who when given a oak sapling in there in inventory places the sapling on the ground. So I tries to do 

if get item from slot 0 of the currently open gui of target = oak sapling 

do: place sapling at x y z