help with creating living entity

Started by RasorVolt on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
help with creating living entity
Wed, 06/24/2020 - 21:05 (edited)

I want to make a miner villager found in caves. My problem is to make him sell want i want him to sell, always the same not random selling and that I choose the quantities and everything. I also have this custom item I want him to sell me or that he needs for trading... How do I do? Any help would be appreciated.

 

Edited by RasorVolt on Wed, 06/24/2020 - 21:05
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want to make a miner…
Thu, 06/25/2020 - 00:49

I want to make a miner villager found in caves. My problem is to make him sell want i want him to sell, always the same not random selling and that I choose the quantities and everything. I also have this custom item I want him to sell me or that he needs for trading... How do I do? Any help would be appreciated.

Also, do you mean ground trading (1) such as piglins, or GUI trading (2) such as villagers.

 

1. I don't know if it is supported in MCreator. But pretty easy in coding, and only requires an Entity AI that is a based off a couple of lines.

PathNavigator::tryMoveToEntityLiving

Moves the entity. You can get a list of items;

World::getEntitiesWithinAABB

In concept, it is simple and doesn't require that much knowledge.

 

 

2. I don't think if it is supported in MCreator. And somewhat difficult in coding, more difficult than the above.

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I was thinking about the GUI…
Thu, 06/25/2020 - 08:34

I was thinking about the GUI trading with Villagers but I'll do the n°1 thanks a lot!!

 

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But am I supposed to code…
Thu, 06/25/2020 - 08:48

But am I supposed to code into the "custom element" place in MCreator? And if not could you please tell me where?

Thanks