Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Signed-off-by: SverhRazum-Nah <[email protected]>
  • Loading branch information
SverhRazum-Nah authored Jan 28, 2025
1 parent 3b705e3 commit 0c1bd3f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kubejs/server_scripts/gregtech/armor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const INFINTE = Java.loadClass('java.lang.Integer').MAX_VALUE;
PlayerEvents.tick((event) => {
const { player } = event;
if (player.age % 20 != 0) return;
if (player.legsArmorItem == 'gtceu:nanomuscle_leggings') {
player.potionEffects.add("minecraft:speed", INFINTE, 1, true, false);
} else {
player.removeEffect("minecraft:speed");
}
});


0 comments on commit 0c1bd3f

Please sign in to comment.