Contraptions Are Safe
"Contraptions Are Safe" attempts to keep riders of Create contraptions safe from being targeted by mobs.
介绍
"Contraptions Are Safe" attempts to keep riders of Create contraptions safe.
It does this using a mixin for the TargetingConditions.test method, inserting a check if the target is riding a contraption.
Important Details
- Currently, this mod is only available for Forge 1.20.1. There is an existing mod that covers 1.21.1.
- This mod attempts to protect riders from the initial targeting only, and mobs will usually continue to track players after they mount a contraption.
Depending on the other mods being used, the mob may follow without attacking, or it may attack the player. - Mobs from some mods use a different method for targeting and attacking players. The Mur Mur mob from Alex’s Mobs is an example of a very aggressive and persistent mob that is not protected against.
- In testing in vanilla, being spotted/targeted by a mob before mounting the contraption usually resulted in the mob following you but not attacking. An exception was a creeper that started the detonation sequence would finish the process and explode, even after the user mounted the contraption.
- When testing in the huge mod pack Linggango, being seen before mounting the contraption resulted in the mob tracking you down and, in most cases, still attacking you. If you are on the contraption before it can see you, you will be effectively invisible to them. Keep in mind that some mobs can see you at extreme ranges.
- Before release, I decided to expand the protections beyond players, to prevent mobs acting as conductors from being attacked.
Future Ideas
- Excluding players on vehicles and seats from being included in calculation of sleeping players percent
- Adding protection for players on elevators without using seats.
Additional Info
While I may have edited existing mods for private use by my friends and I, this is the first Minecraft mod I have made.
I hope people find it useful and of sufficient quality.
I look forward to learning more about modding (Basics and Forge Specifically) and implementing ideas I’ve had for years.
Versions
- 1.0.0 – First release. Protecting riders of Create contraptions.
URLs
License
Disclaimer
"Robo-Reddit" (Gemini Chat LLM) was used to brainstorm, debug, and learn a crash course in minecraft modding, using the example template from the Forge MDK.
While it presented examples, AI was not used to generate this source code.
Note, most of its suggested code and suggested fixes for bugs were incorrect or inefficient. It served more of a method for exploring ideas.
常见问题
Contraptions Are Safe 支持哪些 Minecraft 版本?
Contraptions Are Safe 支持 Minecraft Java 版 1.20–1.20.1,共 2 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Contraptions Are Safe 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分