Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 光亮足够依然刷怪问题 #75

Closed
Lounode opened this issue Jan 17, 2021 · 3 comments
Closed

[BUG] 光亮足够依然刷怪问题 #75

Lounode opened this issue Jan 17, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@Lounode
Copy link

Lounode commented Jan 17, 2021

问题来源 \scripts\gamestages\mobs.zs
让我们看到下面这段函数:

/*
 * This script is created for the GreedyCraft modpack by TCreopargh.
 * You may NOT use this script in any other publicly distributed modpack without my permission.
 */

#priority 1000

import mods.MobStages;

import scripts.util.gamestages as GameStagesUtil;

val mobStages as string[string] = {
    "enderiozoo:concussioncreeper": "hardmode",
    "enderiozoo:direslime": "hardmode",
    "enderiozoo:direwolf": "hardmode",
    "enderiozoo:enderminy": "hardmode",
    "enderiozoo:epicsquid": "hardmode",
    "enderiozoo:fallenknight": "hardmode",
    "enderiozoo:fallenmount": "hardmode",
    "enderiozoo:lovechild": "hardmode",
    "enderiozoo:withercat": "hardmode",
    "enderiozoo:witherwitch": "hardmode",
    "touhou_little_maid:entity.monster.fairy": "nether",
    "touhou_little_maid:entity.monster.rinnosuke": "nether",
    "minecraft:blaze": "twilight_shield",
    "minecraft:wither_skeleton": "twilight_shield",
    "thaumcraft:eldritchguardian": "novice_wizard",
    "thaumcraft:cultistportallesser": "novice_wizard",
    "mowziesmobs:barako": "wyvern",
    "mowziesmobs:frostmaw": "hardmode",
    "minecraft:wither": "abyssal_conquerer"
} as string[string];

val mobReplacements as string[string] = {
    "enderiozoo:withercat": "minecraft:ocelot",
    "enderiozoo:witherwitch": "minecraft:witch",
    "enderiozoo:lovechild": "minecraft:zombie",
    "enderiozoo:fallenknight": "minecraft:skeleton",
    "enderiozoo:fallenmount": "minecraft:zombie_horse",
    "enderiozoo:epicsquid": "minecraft:squid",
    "enderiozoo:enderminy": "minecraft:enderman",
    "enderiozoo:direwolf": "minecraft:wolf",
    "enderiozoo:concussioncreeper": "minecraft:creeper"
} as string[string];

for mob in mobStages {
    var stage as string = mobStages[mob] as string;
    MobStages.addStage(stage, mob);
}

for mob in mobReplacements {
    var replacement as string = mobReplacements[mob] as string;
    MobStages.toggleSpawner(mob, true);
    MobStages.addReplacement(mob, replacement);
}

在这里将末影动物园生成的怪物替换成原版生物时没有任何检查,而且原mobstage的替换意思是无法生成就替换成这种生物。
简单来说:一个失败的生成尝试却被替换成了一个原版生物的刷新。

@Lounode Lounode added the bug Something isn't working label Jan 17, 2021
@TCreopargh
Copy link
Owner

原来是这个问题,我试着修下

@TCreopargh
Copy link
Owner

@TCreopargh
Copy link
Owner

1.25.1已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants