jpdude98.net
Home
Creations
Anti Combat Log Command
Prevents players from logging in combat
Recommended Version: 1.8.3
Not sure how to install Commands? Click the button below for a quick tutorial!
Command install tutorial
Explanation Video
/summon FallingSand ~ ~1 ~ {Block:redstone_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:fill ~ ~0 ~1 ~ ~-14 ~1 redstone_block},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:setblock ~ ~3 ~1 stone},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:setblock ~ ~4 ~ command_block 0 replace {Command:fill ~ ~2 ~ ~ ~-18 ~1 air}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/tellraw @p ["",{"text":"Anti Combat Log ","color":"gold","bold":"true"},{"text":"by jpdude98","color":"green","clickEvent":{"action":"open_url","value":"https://www.youtube.com/user/jpdude98"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click here to go to my YouTube Channel!"}]}},"bold":"false"},{"text":" has successfully installed","color":"gold"}]},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard objectives add logTimer dummy},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard objectives add dmgIn stat.damageTaken},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard objectives add log stat.leaveGame},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard objectives add dmgOut stat.damageDealt},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard objectives add death deathCount},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/summon FallingSand ~2 ~ ~-1 {Block:command_block,TileEntityData:{Command:/scoreboard players set @a[score_death_min=1] death 0},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/tellraw @a[score_logTimer_min=1,score_logTimer=1] ["",{"text":"You are no longer in combat. It is now safe to log out.","color":"green"}]},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/kill @a[score_log_min=1,score_logTimer_min=1]},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players remove @a[score_logTimer_min=1] logTimer 1},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @a[score_dmgIn_min=1] logTimer 200},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @a[score_dmgOut_min=1] dmgOut 0},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/tellraw @a[score_dmgOut_min=1,score_logTimer=0] ["",{"text":"You are now in combat! Please wait before logging out.","color":"red"}]},Time:1,}}}}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/summon FallingSand ~2 ~ ~1 {Block:command_block,TileEntityData:{Command:/scoreboard players set @a[score_logTimer_min=1,score_death_min=1] logTimer 0},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @a[score_log_min=1] log 0},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/execute @a[score_log_min=1,score_logTimer_min=1] ~ ~ ~ /tellraw @a ["",{"selector":"@a[score_log_min=1,score_logTimer_min=1]","color":"aqua"},{"text":" has died due to combat logging!","color":"blue"}]},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @a[score_dmgIn_min=1] dmgIn 0},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/tellraw @a[score_dmgIn_min=1,score_logTimer=0] ["",{"text":"You are now in combat! Please wait before logging out.","color":"red"}]},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @a[score_dmgOut_min=1] logTimer 200},Time:1,}}}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:gamerule commandBlockOutput false},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:fill ~2 ~-2 ~ ~2 ~5 ~ redstone_block},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:setblock ~2 ~-1 ~-1 command_block 0 replace {Command:fill ~ ~ ~1 ~ ~7 ~1 stone 0 replace redstone_block}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:setblock ~2 ~ ~1 command_block 0 replace {Command:fill ~ ~ ~-1 ~ ~7 ~-1 redstone_block 0 replace stone}},Time:1,Riding:{id:FallingSand,Block:stone,Time:1}}}}}}}}}}}}}}}}}
More Commands
Home
Creations