Skip to content
◆ TTS-STUDIO docs Discord

Docs / TTSCore

PvP and raid protection

Hit registration

On a modern server a swing counts only when the client says it hit something. On 1.8 servers built for PvP, the server checked the swing itself, and hits at the edge of reach landed. That is the difference players describe as "hits not registering".

raid.rogue-hit.enabled
When the client swings without reporting a hit, the server traces the swing and applies the hit if a target was there. A block in the way cancels it, and spectators are ignored. This changes how PvP feels, so try it on a test world first.
raid.rogue-hit.max-distance
Reach of that check in blocks, measured from the attacker's eyes to the point of impact. 2.6 matches 1.8 reach, which is 2.90 blocks between the two players.
raid.rogue-hit.hitbox-leeway
How much the target's hitbox is grown for the check. 0.01 matches 1.8.

Combat that survives a TPS dip

raid.pvp.time-based-hit-cooldown
The short invulnerability after a player is hit is counted in real time instead of ticks. When the server drops to 15 TPS during a raid, fights keep their rhythm.

1.8 combat

A 1.8 factions server with 1.9 combat is a different game. mechanics: legacy turns all eight of these on; each can be switched off on its own.

raid.combat.no-attack-cooldown
Every click hits for full damage. No weapon recharge scaling the hit, no veto on knockback or crits while the bar refills, and the client stops drawing the attack indicator.
raid.combat.no-sweep-attack
Swords do not sweep. Only the entity you hit takes damage.
raid.combat.no-shield-blocking
Nothing blocks. Shields, and any item with blocks_attacks, stop reducing damage. There were no shields in 1.8.
raid.combat.legacy-weapon-damage
The 1.8 weapon table (a diamond sword hits 8, a diamond axe 7) and Sharpness at +1.25 per level.
raid.combat.legacy-potion-damage
Strength multiplies damage by 1 + 1.3 per level (×2.3 with Strength I) instead of adding 3; Weakness takes 0.5 per level instead of 4.
raid.combat.legacy-armor
Armor reduces damage by 4% per point, with no toughness and no scaling by hit size. Full diamond stops 80% of any hit.
raid.combat.legacy-golden-apple
The enchanted golden apple gives Regeneration V for 30 seconds, as in 1.8, instead of Regeneration II for 20.
raid.combat.legacy-regeneration
Natural regeneration heals one point every 80 ticks at 18+ food, with 3 exhaustion per point. The fast saturation regen added in 1.11 is off.

Every number is measured against Tiamat's WineSpigot with real players in the bench (bench/medir-combate.sh): a diamond sword, a diamond axe, three axe hits 600 ms apart, Sharpness V, Strength I, Weakness I, full diamond armor, a raised shield, a sweep onto a neighbour, six seconds of regeneration and the enchanted apple all take the same points on both servers.

Anti-freecam

Freecam clients let a player move the camera through walls and click what they see. Each of these settings refuses the action when a block sits between the player's eyes and the face they clicked.

Setting Refuses
raid.anti-freecam.chests Opening a chest
raid.anti-freecam.dispensers Opening a dispenser
raid.anti-freecam.signs Using a sign
raid.anti-freecam.spawn-eggs Placing a spawn egg

They are separate switches because a server with shop signs behind glass may want three of the four.

Keep reading