
Mutator function not working correctly
Saereth opened this issue · 2 comments
Using this code on the latest build
#The Mighty Ender Chicken
SummoningDirector.addSummonInfo(
SummoningInfo.create()
.setCatalyst(<minecraft:dragon_egg>)
.setMutator(function(attempt as SummoningAttempt) {
if (attempt.world.dimension == 147) {
attempt.success = false;
attempt.message = "You can only summon the mighty ender chicken from the dying heart of the Aurellian Star. " + "Current dimension is: " + attempt.world.dimension;
} else {
attempt.message = "The skies darken as death approaches!";
}
})
.setReagents([<wizardry:devil_dust>, <astralsorcery:itemshiftingstar>, <waterstrainer:worm>, <metaitem:quantumeye>])
.addMob(MobInfo.create()
.setMob("mightyenderchicken:ent_enderchicken")
.setCount(3)
.setOffset(0,8,0)
.setSpread(3,3,3)
.setData({
"Health":800
})
)
);
I'm in dimension 147, doesnt work.
https://www.youtube.com/watch?v=IepyF9aNhKY
Hmmm
…On Tue, Mar 5, 2019, 4:45 AM Saereth, ***@***.***> wrote:
Using this code on the latest build
#The Mighty Ender Chicken
SummoningDirector.addSummonInfo(
SummoningInfo.create()
.setCatalyst(<minecraft:dragon_egg>)
.setMutator(function(attempt as SummoningAttempt) {
if (attempt.world.dimension == 147) {
attempt.success = false;
attempt.message = "You can only summon the mighty ender chicken from the dying heart of the Aurellian Star. " + "Current dimension is: " + attempt.world.dimension;
} else {
attempt.message = "The skies darken as death approaches!";
}
})
.setReagents([<wizardry:devil_dust>, <astralsorcery:itemshiftingstar>, <waterstrainer:worm>, <metaitem:quantumeye>])
.addMob(MobInfo.create()
.setMob("mightyenderchicken:ent_enderchicken")
.setCount(3)
.setOffset(0,8,0)
.setSpread(3,3,3)
.setData({
"Health":800
})
)
);
I'm in dimension 147, doesnt work.
https://www.youtube.com/watch?v=IepyF9aNhKY
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI7GW78PtdjE72nA2Igx-ShHxFG4Lp1Rks5vTjzCgaJpZM4beLq2>
.