Help with gunshot enemies,pls

Started by vladislav1673 on

Topic category: Help with modding (Java Edition)

Last seen on 22:29, 6. Apr 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with gunshot enemies,pls

I would like to make a firearm mob that will naturally spawn in the world.

I created a weapon in mcreator (ak47), which has its own model, characteristics, like rate of fire, range of a bullet and created a mob that I gave this weapon to.

The problem is that the mob does not use this weapon, but simply holds it in his hands, and uses the physics of the bow to shoot.

Is it possible to make it use exactly my weapon? Or change the shooting characteristics of the mob to bring it closer to a firearm? For example, the rate of fire, the firing range and the direct arc of the projectile?Also, I couldn't figure out how to change the shooting sound of the mob, since it only has 3 sounds - living, hurt and death.

 

 

 

 

 

 

Last seen on 17:02, 25. Jun 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, I have create (but not…
Sat, 04/30/2022 - 05:43

Ok, I have create (but not publishing) a mod that add soldier like this so I can help you :

In the AI of your entity, you have to add a block "attack [entity]" and check the box "entity made ranged attack". In this box, say he attack with your weapon.