|
本帖最后由 CatastropheChou 于 2022-9-22 15:18 编辑
安装CrT,在目录里与config、mods同级处新建scripts文件夹,scripts文件夹里新建MCEntityJoinWorldEvent.zs文件,把这个下面的东西粘贴进去。
import crafttweaker.api.events.CTEventManager;
import crafttweaker.api.event.entity.MCEntityJoinWorldEvent;
CTEventManager.register<MCEntityJoinWorldEvent>((event) => {
val world = event.world;
if (world.remote) return;
val mob = event.entity.type.classification.commandString;
val dim = world.dimension;
if ("overworld" in dim && "monster" in mob) event.cancel();
});
|
评分
-
查看全部评分
|