How to have a mob place block

Started by natemilligan45 on

Topic category: Help with modding (Java Edition)

Last seen on 01:42, 28. Feb 2024
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 

Last seen on 01:42, 28. Feb 2024
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nvrmind
Tue, 10/18/2022 - 01:53

Nvrmind