How to make entities harvest stuff?

Started by Krisp1k on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make entities harvest stuff?

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.

 

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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

Joined Nov 2020
Points:

User statistics:

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

Yep already did that

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can ai cut down trees?
Wed, 01/31/2024 - 20:33

Can ai cut down trees?