Created
October 23, 2018 23:15
-
-
Save jtrent238/3c1f917347348385cfe4b58cb00698d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let effect_bad = 0 | |
player.onChat("jump", function () { | |
for (let index = 0; index <= 10; index++) { | |
agent.move(SixDirection.Forward, 1) | |
for (let i = 0; i < 100; i++) { | |
gameplay.xp(10, mobs.target(TargetSelectorKind.NearestPlayer)) | |
} | |
} | |
}) | |
player.onChat("megaenchant", function () { | |
mobs.enchant( | |
mobs.target(TargetSelectorKind.NearestPlayer), | |
"infinity", | |
32767 | |
) | |
mobs.enchant( | |
mobs.target(TargetSelectorKind.NearestPlayer), | |
"sharpness", | |
32767 | |
) | |
mobs.enchant( | |
mobs.target(TargetSelectorKind.NearestPlayer), | |
"knockback", | |
32767 | |
) | |
mobs.enchant( | |
mobs.target(TargetSelectorKind.NearestPlayer), | |
"protection", | |
32767 | |
) | |
mobs.enchant( | |
mobs.target(TargetSelectorKind.NearestPlayer), | |
"unbreaking", | |
32767 | |
) | |
}) | |
player.onTravelled(TravelMethod.Walk, function () { | |
mobs.give( | |
mobs.target(TargetSelectorKind.NearestPlayer), | |
blocks.block(Block.DiamondBlock), | |
1 | |
) | |
}) | |
loops.runInBackground(function () { | |
mobs.clearEffect(mobs.target(TargetSelectorKind.NearestPlayer)) | |
if (effect_bad) { | |
mobs.applyEffect(Effect.Slowness, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Nausea, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.MiningFatigue, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Blindness, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Hunger, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Blindness, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Weakness, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Poison, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Wither, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Levitation, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
} else { | |
mobs.applyEffect(Effect.Speed, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Haste, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.JumpBoost, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Strength, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.HealthBoost, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Absorption, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.NightVision, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Regeneration, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Resistance, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.FireResistance, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.Invisibility, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
mobs.applyEffect(Effect.WaterBreathing, mobs.target(TargetSelectorKind.NearestPlayer), 600, 255) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment