TeamDman / Zen-Summoning

A mod that allows for pack creators to set up custom summoning situations using ZenScript
2 stars 1 forks source link

Mutator function not working correctly #3

Closed Saereth closed 5 years ago

Saereth commented 5 years ago

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

TeamDman commented 5 years ago

Hmmm

On Tue, Mar 5, 2019, 4:45 AM Saereth, notifications@github.com wrote:

Using this code on the latest build

The Mighty Ender Chicken

SummoningDirector.addSummonInfo( SummoningInfo.create() .setCatalyst() .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 https://github.com/TeamDman/ZenSummoning/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AI7GW78PtdjE72nA2Igx-ShHxFG4Lp1Rks5vTjzCgaJpZM4beLq2 .

TeamDman commented 5 years ago

http://imgur.com/JWavfFk