How to make entities harvest stuff?

Started by Krisp1k on Tue, 02/16/2021 - 20:23

Topic category: Help with modding (Java Edition)

Last seen on 22:37, 28. May 2021
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make entities harvest stuff?
Tue, 02/16/2021 - 20:23

Hi, I wanna ask if there is any possible way how to make entities harvest some kind of a bush-type plant

Here is the code we have come up with so far

Basically what this code is supposed to do is that the entity scans an area in a 3x3x3 radius if there is the grown plant block and then its supposed to replace it with ungrown plant block + drop the items.

Atm it only makes the creature walk close to the block but then nothing happens and we dont know how to fix it.

 

Last seen on 19:15, 17. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
well in the entity Ai tab…
Tue, 02/16/2021 - 23:51

well in the entity Ai tab there is an option for mining certain blocks. sadly you cannot assign inventory to mobs but if you just want the blocks destoryed lik dwarves in a mine destroying gold

Last seen on 22:37, 28. May 2021
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yep already did that
Wed, 02/17/2021 - 10:34

Yep already did that