Zen Summoning

Zen Summoning

7M Downloads

Mutator function not working correctly

Saereth opened this issue · 2 comments

commented

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

commented