-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
062e3f0
commit 16dfeee
Showing
45 changed files
with
713 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
Safeguard anticheat V1.3 B/functions/admin_cmds/clearchat.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#bridge-file-version: #8 | ||
execute @s[tag=admin] ~~~ tellraw @a {"rawtext":[{"text":"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n§6[§eSafeGuard§6]§r Chat has been cleared by §d"},{"selector":"@s"}]} | ||
execute @s[tag=!admin] ~~~ tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§4 You need admin tag to run this!§r"}]} | ||
playsound random.anvil_land @s[tag=!admin] |
8 changes: 8 additions & 0 deletions
8
Safeguard anticheat V1.3 B/functions/admin_cmds/fake_leave.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#bridge-file-version: #9 | ||
execute @s[tag=admin] ~~~ tellraw @a {"rawtext":[{"text":"§e"},{"selector":"@s"},{"text":" left the realm"}]} | ||
tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§a Fake left success!"}]} | ||
playsound random.levelup @s[tag=admin] | ||
tellraw @s[tag=!admin] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r §4You need admin tag to run this!"}]} | ||
playsound random.anvil_land @s[tag=!admin] | ||
#notify | ||
tellraw @a[tag=admin,scores={notify=1}] {"rawtext":[{"text":"§6[§eSafeGuard Notify§6]§5§l "},{"selector":"@s"},{"text":" §bfake left!§r"}]} |
8 changes: 8 additions & 0 deletions
8
Safeguard anticheat V1.3 B/functions/admin_cmds/notify.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#bridge-file-version: #6 | ||
scoreboard players add @s notify 1 | ||
scoreboard players set @s[tag=admin,scores={notify=2..}] notify 0 | ||
tellraw @s[tag=admin,scores={notify=0}] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§l§b You will §5no longer§b recieve anticheat notifications!§r"}]} | ||
tellraw @s[tag=admin,scores={notify=1}] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§l§b You will now §5get notified§b by the anticheat!§r"}]} | ||
tellraw @s[tag=!admin] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r §4You need admin tag to run this!§r"}]} | ||
playsound random.anvil_land @s[tag=!admin] ~~~ | ||
playsound note.bass @s[tag=admin] ~~~ |
7 changes: 7 additions & 0 deletions
7
Safeguard anticheat V1.3 B/functions/admin_cmds/summon_npc.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#bridge-file-version: #4 | ||
execute @s[tag=admin] ~ ~ ~ summon npc ~ ~ ~ | ||
tag @e[type=npc,r=5] add friend | ||
tellraw @s[tag=admin] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r §aSuccessfully summoned the NPC!§r"}]} | ||
playsound random.levelup @s[tag=admin] | ||
tellraw @s[tag=!admin] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r §4You need admin tag to run this!"}]} | ||
playsound random.anvil_land @s[tag=!admin] |
15 changes: 15 additions & 0 deletions
15
Safeguard anticheat V1.3 B/functions/admin_cmds/vanish.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#bridge-file-version: #24 | ||
scoreboard players add @s[tag=admin] vanish 1 | ||
scoreboard players set @s[tag=admin,scores={vanish=2..}] vanish 0 | ||
effect @s[tag=admin,scores={vanish=0}] invisibility 0 0 | ||
effect @s[tag=admin,scores={vanish=0}] night_vision 0 0 | ||
effect @s[tag=admin,scores={vanish=1}] invisibility 99999 0 true | ||
effect @s[tag=admin,scores={vanish=1}] night_vision 99999 10 true | ||
tellraw @s[tag=admin,scores={vanish=1}] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r §7Poof! You vanished!§r"}]} | ||
tellraw @s[tag=admin,scores={vanish=0}] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r §7Poof! You re-appeared!§r"}]} | ||
tellraw @s[tag=!admin] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r §4You need admin tag to run this!§r"}]} | ||
playsound random.anvil_land @s[tag=!admin] ~~~ | ||
playsound note.bass @s[tag=admin] ~~~ | ||
#notify | ||
execute @s[scores={vanish=1}] ~~~ tellraw @a[tag=admin,scores={notify=1}] {"rawtext":[{"text":"§6[§eSafeGuard Notify§6]§5§l "},{"selector":"@s[scores={vanish=1}]"},{"text":" §bvanished!§r"}]} | ||
execute @s[scores={vanish=0}] ~~~ tellraw @a[tag=admin,scores={notify=1}] {"rawtext":[{"text":"§6[§eSafeGuard Notify§6]§5§l "},{"selector":"@s[scores={vanish=0}]"},{"text":" §bre-appeared from vanish!§r"}]} |
32 changes: 32 additions & 0 deletions
32
Safeguard anticheat V1.3 B/functions/anti/anti_cbe.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#bridge-file-version: #52 | ||
# Stops players from using CBE(command block exploit) | ||
#Detect and warn | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @e[type=command_block_minecart , tag=!admin] ~~~ tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"selector":"@a[r=10,tag=!admin]"},{"text":" §r§4Was detected summoning a §l§ccommand block minecart!§r"}]} | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @e[type=npc , tag=!admin , tag=!friend] ~~~ tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"selector":"@a[r=10,tag=!admin]"},{"text":" §r§4Was detected summoning a §l§cNPC!§r"}]} | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~~~ kill @e[type=item,name="tile.movingblock.name"] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~~~ kill @e[type=item,name="§g§lMovingBlock BeeNest Command"] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~~~ kill @e[type=item,name="§g§lBeeNest Command"] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~~~ kill @e[type=item,name="§g§lBeehive Command"] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~~~ kill @e[type=item,name="§g§lSpoofed BeeNest Command"] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~~~ kill @e[type=item,name="§g§lInvisible Beehive Command"] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~~~ kill @e[type=item,name="§g§lBeehive NPC Command"] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~~~ kill @e[type=item,name="§g§lBee Nest NPC Command"] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~~~ kill @e[type=item,name="§g§lMovingBlock BeeNest NPC Command"] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~~~ kill @e[type=item,name="§g§lInvisible Beehive NPC Command"] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~~~ kill @e[r=10,type=moving_block] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @e[type=moving_block] ~~~ tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"selector":"@a[r=10,tag=!admin]"},{"text":" §r§4Was detected placing a §l§cMoving Block!§r"}]} | ||
#Flag | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @e[type=command_block_minecart , tag=!admin] ~~~ execute @p[tag=!admin,scores={auto_mod_on=0}] ~~~ tag @s[tag=!admin] add flagged | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @e[type=npc , tag=!admin, tag=!friend] ~~~ execute @p[tag=!admin,scores={auto_mod_on=0}] ~~~ tag @s[tag=!admin] add flagged | ||
#Inventory wipe | ||
execute @a[scores={anti_cbe_on=0}] ~~~ clear @a[tag=!admin] bee_nest 0 | ||
execute @a[scores={anti_cbe_on=0}] ~~~ clear @a[tag=!admin] beehive 0 | ||
#Killing entities | ||
execute @a[scores={anti_cbe_on=0}] ~~~ kill @e[type=command_block_minecart] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ kill @e[type=npc,tag=!friend] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ kill @e[type=bee] | ||
execute @a[scores={anti_cbe_on=0}] ~~~ kill @e[type=leash_knot] | ||
#replacing | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~ ~ ~ fill ~8 ~5 ~8 ~-8 ~-5 ~-8 air 0 replace bee_nest | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~ ~ ~ fill ~8 ~5 ~8 ~-8 ~-5 ~-8 air 0 replace beehive | ||
execute @a[scores={anti_cbe_on=0}] ~~~ execute @a[tag=!admin] ~ ~ ~ fill ~10 ~3 ~10 ~-10 ~-3 ~-10 air 0 replace unknown -1 |
4 changes: 4 additions & 0 deletions
4
Safeguard anticheat V1.3 B/functions/anti/anti_gmc.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#bridge-file-version: #23 | ||
execute @a[scores={gmc_on=0}] ~~~ execute @a [m=creative , tag=!admin] ~~~ tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"selector":"@p[m=creative]"},{"text":" §r§4Was detected being in §l§ccreative!§r"}]} | ||
execute @a[scores={gmc_on=0}] ~~~ execute @a[tag=!admin, m=creative, scores={auto_mod_on=0}] ~~~ tag @s add flagged | ||
execute @a[scores={gmc_on=0}] ~~~ gamemode survival @a[tag=!admin,m=creative] |
16 changes: 16 additions & 0 deletions
16
Safeguard anticheat V1.3 B/functions/anti/anti_grief.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#bridge-file-version: #27 | ||
#gamerule | ||
execute @a[scores={grief_on=0}] ~~~ gamerule tntexplodes false | ||
execute @a[scores={grief_on=0}] ~~~ gamerule respawnblocksexplode false | ||
#detect | ||
execute @a[scores={grief_on=0}] ~~~ execute @e[type=tnt , tag=!admin] ~~~tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§c§l "},{"selector":"@p[tag=!admin]"},{"text":" §r§4Was detected summoning a §l§cTNT!§r"}]} | ||
#clear inventory | ||
execute @a[scores={grief_on=0}] ~~~ clear @a[tag=!admin] tnt 0 | ||
execute @a[scores={grief_on=0}] ~~~ clear @a[tag=!admin] tnt_minecart 0 | ||
execute @a[scores={grief_on=0}] ~~~ clear @a[tag=!admin] end_crystal 0 | ||
#Kill tnt | ||
execute @a[scores={grief_on=0}] ~~~ execute @a ~ ~ ~ kill @e[type=tnt] | ||
execute @a[scores={grief_on=0}] ~~~ execute @a ~ ~ ~ kill @e[type=tnt_minecart] | ||
#Replace tnt and other explosive blocks as a security measure | ||
execute @a[scores={grief_on=0}] ~~~ execute @a[tag=!admin] ~ ~ ~ fill ~8 ~5 ~8 ~-8 ~-5 ~-8 air 0 replace tnt | ||
execute @a[scores={grief_on=0}] ~~~ execute @a[tag=!admin] ~ ~ ~ fill ~8 ~5 ~8 ~-8 ~-5 ~-8 air 0 replace fire |
88 changes: 88 additions & 0 deletions
88
Safeguard anticheat V1.3 B/functions/anti/anti_items.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#bridge-file-version: #22 | ||
#Non-survival item wipe | ||
clear @a[tag=!admin,scores={item_on=0}] structure_void | ||
clear @a[tag=!admin,scores={item_on=0}] structure_block | ||
clear @a[tag=!admin,scores={item_on=0}] jigsaw | ||
clear @a[tag=!admin,scores={item_on=0}] allow | ||
clear @a[tag=!admin,scores={item_on=0}] deny | ||
clear @a[tag=!admin,scores={item_on=0}] bedrock | ||
clear @a[tag=!admin,scores={item_on=0}] bee_nest | ||
clear @a[tag=!admin,scores={item_on=0}] beehive | ||
clear @a[tag=!admin,scores={item_on=0}] command_block | ||
clear @a[tag=!admin,scores={item_on=0}] repeating_command_block | ||
clear @a[tag=!admin,scores={item_on=0}] chain_command_block | ||
clear @a[tag=!admin,scores={item_on=0}] barrier | ||
clear @a[tag=!admin,scores={item_on=0}] border_block | ||
clear @a[tag=!admin,scores={item_on=0}] mob_spawner | ||
clear @a[tag=!admin,scores={item_on=0}] command_block_minecart | ||
clear @a[tag=!admin,scores={item_on=0}] end_portal_frame | ||
#Type clear @a[tag=!admin,scores={item_on=0}] [item] [data] [value] for custom items | ||
#Clear all spawn eggs(case sensetive) | ||
clear @a[tag=!admin,scores={item_on=0}] spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] bat_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] bee_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] blaze_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] cat_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] cave_spider_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] chicken_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] cod_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] cow_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] creeper_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] dolphin_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] donkey_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] drowned_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] elder_guardian_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] enderman_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] endermite_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] evoker_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] fox_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] ghast_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] guardian_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] hoglin_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] horse_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] husk_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] llama_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] magma_cube_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] mooshroom_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] mule_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] ocelot_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] panda_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] parrot_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] phantom_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] pig_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] piglin_brute_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] piglin_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] pillager_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] polar_bear_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] pufferfish_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] rabbit_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] ravager_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] salmon_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] sheep_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] shulker_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] silverfish_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] skeleton_horse_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] skeleton_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] slime_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] spider_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] squid_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] stray_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] strider_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] tropical_fish_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] turtle_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] vex_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] vindicator_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] villager_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] wandering_trader_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] witch_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] wither_skeleton_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] wolf_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] zoglin_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] zombie_horse_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] zombie_pigman_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] zombie_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] zombie_villager_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] axolotl_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] glow_squid_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] goat_spawn_egg | ||
clear @a[tag=!admin,scores={item_on=0}] spawn_egg 51 |
7 changes: 7 additions & 0 deletions
7
Safeguard anticheat V1.3 B/functions/anti/anti_lag.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#bridge-file-version: #35 | ||
#PUT THIS IN A REPEATING COMMAND BLOCK ONLY WITH A TICK PER SECOND DELAY | ||
#Killing the entities and stuff idk | ||
gamerule domobloot false | ||
scoreboard objectives add anti_lag dummy | ||
scoreboard players add @r[tag=admin] anti_lag 1 | ||
execute @a[scores={anti_lag=1}] ~~~ tellraw @a[scores={anti_lag=1}] {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§l§a Ground items cleared in 10 seconds..."}]} |
81 changes: 81 additions & 0 deletions
81
Safeguard anticheat V1.3 B/functions/assets/asset.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#bridge-file-version: #75 | ||
scoreboard players add @a end_lock 0 | ||
scoreboard players add @a barrel_lock 0 | ||
scoreboard players add @a shulk_lock 0 | ||
scoreboard players add @a Shulkbarrel_ban 0 | ||
scoreboard players add @a auto_mod_on 0 | ||
scoreboard players add @a death_effect 0 | ||
scoreboard players add @a end_yes 0 | ||
scoreboard players add @a shulkbarrel_yes 0 | ||
scoreboard players add @a auto_mod_off 0 | ||
scoreboard players add @a death_effect_off 0 | ||
scoreboard players add @a anti_cbe_off 0 | ||
scoreboard players add @a anti_cbe_on 0 | ||
scoreboard players add @a death_coord_off 0 | ||
scoreboard players add @a death_coord_on 0 | ||
scoreboard players add @a gmc_on 0 | ||
scoreboard players add @a gmc_off 0 | ||
scoreboard players add @a grief_on 0 | ||
scoreboard players add @a grief_off 0 | ||
scoreboard players add @a item_on 0 | ||
scoreboard players add @a item_off 0 | ||
#admin things(end lock) | ||
execute @a[scores={end_lock=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] endnether_toggle 1 | ||
execute @a[scores={end_yes=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] endnether_toggle 0 | ||
#anti cbe(admin stuff) | ||
execute @a[scores={anti_cbe_off=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] anti_cbe_toggle 1 | ||
execute @a[scores={anti_cbe_on=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] anti_cbe_toggle 0 | ||
#Shulker and barrel(still admin) | ||
execute @a[scores={shulkbarrel_yes=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] shulkBarrel_lock 0 | ||
execute @a[scores={barrel_lock=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] shulkBarrel_lock 1 | ||
execute @a[scores={shulk_lock=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] shulkBarrel_lock 2 | ||
execute @a[scores={Shulkbarrel_ban=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] shulkBarrel_lock 3 | ||
#Auto mod admin thing | ||
execute @a[scores={auto_mod_off=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] auto_mod_toggle 0 | ||
execute @a[scores={auto_mod_on=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] auto_mod_toggle 1 | ||
#Anti GMC admin thing | ||
execute @a[scores={gmc_off=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] gmc_toggle 0 | ||
execute @a[scores={gmc_on=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] gmc_toggle 1 | ||
#Anti Grief admin thing | ||
execute @a[scores={grief_off=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] grief_toggle 0 | ||
execute @a[scores={grief_on=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] grief_toggle 1 | ||
#Anti Grief admin thing | ||
execute @a[scores={item_off=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] item_toggle 0 | ||
execute @a[scores={item_on=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] item_toggle 1 | ||
#Death coords admin thing | ||
execute @a[scores={death_coord_off=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] death_coord 0 | ||
execute @a[scores={death_coord_on=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] death_coord 1 | ||
#Death effect (still admin thing :) | ||
execute @a[scores={death_effect_off=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] death_toggle 0 | ||
execute @a[scores={death_effect=0},tag=admin] ~~~ scoreboard players set @a[tag=admin] death_toggle 1 | ||
#Function execute | ||
tag @a[tag=ban1] add Ban | ||
execute @a[scores={death_effect=0}] ~~~ execute @e[type=lightning_bolt] ~ ~ ~ fill ~-2~-2~-2 ~2~2~2 air 0 replace fire | ||
#End lock | ||
execute @a[scores={end_lock=0}] ~ ~ ~ detect ~~-2~ end_portal 0 tp @p ~-1~1~ | ||
execute @a[scores={end_lock=0}] ~ ~ ~ detect ~~-0.1~ end_portal 0 tp @p ~-1~1~ | ||
execute @a[scores={end_lock=0}] ~ ~ ~ detect ~~-0.01~ end_portal 0 tp @p ~-1~1~ | ||
execute @a[scores={end_lock=0}] ~~~ kill @e[type=eye_of_ender_signal] | ||
#Shulker box/barrel ban(for anti kit) | ||
clear @a[scores={barrel_lock=0}] barrel | ||
clear @a[scores={shulk_lock=0}] shulker_box | ||
clear @a[scores={Shulkbarrel_ban=0}] barrel | ||
clear @a[scores={Shulkbarrel_ban=0}] shulker_box | ||
#Ban asset | ||
execute @a[scores={banned=100..}] ~~~ tag @s add Ban | ||
#Telling player "you are vanished" | ||
title @a[scores={vanish=1},tag=admin] actionbar §l§7You are vanished. | ||
#anti lag | ||
scoreboard players add @a[scores={anti_lag=1..199}] anti_lag 1 | ||
execute @a[scores={anti_lag=100}] ~~~ tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§l§a Ground items cleared in 5 seconds..."}]} | ||
execute @a[scores={anti_lag=120}] ~~~ tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§l§a Ground items cleared in 4 seconds..."}]} | ||
execute @a[scores={anti_lag=140}] ~~~ tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§l§a Ground items cleared in 3 seconds..."}]} | ||
execute @a[scores={anti_lag=160}] ~~~ tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§l§a Ground items cleared in 2 seconds..."}]} | ||
execute @a[scores={anti_lag=180}] ~~~ tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§l§a Ground items cleared in 1 seconds..."}]} | ||
execute @a[scores={anti_lag=200}] ~~~ kill @e[type=!wolf,type=!cat,type=!parrot,type=!pig,type=!cow,type=!sheep,type=!horse,family=!player,tag=!friend] | ||
execute @a[scores={anti_lag=200}] ~~~ kill @e[type=xp_orb] | ||
execute @a[scores={anti_lag=200}] ~~~ kill @e[type=item] | ||
execute @a[scores={anti_lag=200}] ~~~ tellraw @a {"rawtext":[{"text":"§6[§eSafeGuard§6]§r§l§a Lag cleared!"}]} | ||
execute @a[scores={anti_lag=200}] ~~~ gamerule domobloot true | ||
execute @a[scores={anti_lag=200..}] ~~~ scoreboard players reset @a anti_lag | ||
#I'M MAKING THINGS SO MUCH HARDER THAN THEY SHOULD BE AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH |
5 changes: 5 additions & 0 deletions
5
Safeguard anticheat V1.3 B/functions/assets/death_coords.mcfunction
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#bridge-file-version: #2 | ||
execute @s[scores={death_coord_on=0}] ~~~ tellraw @s {"rawtext":[{"text":"§6[§eSafeGuard§6]§r §eYou died at the Coordinates on the next line"}]} | ||
execute @s[scores={death_coord_on=0}] ~~~ gamerule sendcommandfeedback true | ||
execute @s[scores={death_coord_on=0}] ~~~ execute @s ~ ~ ~ tp ~ ~ ~ | ||
execute @s[scores={death_coord_on=0}] ~~~ gamerule sendcommandfeedback false |
Oops, something went wrong.