跳到正文

[CMT] Custom Mob Targets

Easily make mobs attack other entities! Works with any entity from any mod!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Ever wanted to make Creepers attack your Farm Animals? Or make Zombies and Skeletons attack each other? Now you can!

This mod simply allows pack developers to let hostile mobs attack entities other then player or those hard-coded into the mod.

Any hostile entity can now be easily configured to attack any entity from any mod, with minimal performance impact!

To effectively utilize this mod, relationships must be defined in .json files in the “CustomMobTargets” config folder.
Important: Any files starting with a double underscore will be ignored, such as the example file. This mod does nothing without user added .json files.

Configuring a .json file for CMT is easy. Simply define an “entity” string key (mod:entity), and a “targets” JSON array. The “targets” array contains a list of JSON objects, for each entity target.
There is no limit on how many targets you can add, and there is no limit to how many .json files can be put in the “CustomMobTargets” folder.

“priority” responds to how important the AI task for attacking is.
“check_sight” handles sight checking. In other words, should the entity target another entity if there is no direct sight, through walls for example.

Here is an example template json file that makes creepers agressive towards sheep:

 

{

  “entity”: “minecraft:creeper”,

  “targets”: [

    {

       “priority”: 2,

       “check_sight”: true,

       “entity”: “minecraft:sheep”

    }

  ]

}

 
One extra note is the “/cmt” command.
You can quickly reload configs while the game is running by executing “/cmt reload”

Here is a demo video of how the mod works:

 

 

Permissions:

  • You can use this mod in your modpack.
  • You are not allowed to repost this mod to other sites without providing a CurseForge download link and my permission ( Zeitheron on Discord)
  • You are not allowed to include this (or any other mods of DragonForge team) in your own mod. Building addons, however, is allowed, but a friendly PM would be good.

Note:

  • The only supported version of minecraft is the latest one that this mod exists for. DO NOT ASK TO DOWNGRADE!

Want to discuss anything? Need help with APIs?

Join the discord server and follow Zeitheron on Twitter!

If you would like to support my work, you can become a patron via  Patreon. 

常见问题

[CMT] Custom Mob Targets 支持哪些 Minecraft 版本?

[CMT] Custom Mob Targets 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

[CMT] Custom Mob Targets 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

ZeithComms 的其他作品

查看全部 →