Minecraft: Scratching the Surface Hardcore

> In STSH, every player starts off with 3 lives and a green name. Your goal is to survive as long as possible, however if you die you will go down to 2 lives and have a yellow name. Now you have to be really careful because if you die one more time you'll be on your last life and have a red name. Here's the catch: when you're on your last life, all alliances become null and your goal becomes to kill the other players and be the last player standing. You're in a very vulnerable state though, as other players can fight red names in self defense, and when you lose your last life, you are permanently set to spectator mode and are out of the game. The last player alive wins the season of STS Hardcore!
>
> - the OP of the STS Hardcore topic

## Minecraft: Scratching the Surface Hardcore

This picture shows the server spawn with the enchanting table

## About

Scratching the Surface Hardcore was an experimental spinoff server from the main STS series, taking place between the start and end of STS4. It was hosted by DevDav and began on June 29, 2022.

STSH was inspired by 3rd Life, another Minecraft SMP that took place on YouTube. In STSH, every player starts with three lives. If they go down to their last life, their goal then becomes to kill other players and they are not allowed to team up with player not also on their last life. The last player still alive would "win" the season, and then it would end.

## Modifications

There are many other modifications on this server compared to other STS servers, including:

(to be added)

## Skripts

* nopvp.sk - This code would cancel pvp when needed. For example, if a player is in their grace period (referred to as the luck potion effect) then they will not be able to be damaged by other players, but also can't attack other players. Additionally, this code disables all pvp between two people when neither of them are red names.

```
			cancel event
			message "You're still in your grace period, and cannot attack any other players!" to the attacker

			cancel event
			message "That player is in their grace period!" to the attacker

		if {deaths::%victim's uuid%} is not 2:
			if {deaths::%attacker's uuid%} is not 2:
				cancel event
				message "<red><bold>[WARNING]<reset> You can't do that as you're not a red name nor defending yourself from a red name! If you kill, trap, grief, etc. and you're not a red name or not doing it in self defense from a red name, you may lose a life as punishment for breaking the rules." to the attacker
```

* nomine.sk - This code disables non-red names from stealing the only enchanting table.
```
on break of enchanting table:
	if {deaths::%player's uuid%} is not 2:
		cancel event
		message "&cOnly red names can steal the enchanting table!"
```
* names.sk - This skript would appropriately set the color of player's names based on how many lives they have every time they'd join or respawn.
```
on join:
	if {deaths::%player's uuid%} is 2:
		set the player's display name to "<red>%name of player%"
		set tablist name of player to "<red>%name of player%"
	if {deaths::%player's uuid%} is 1:
		set the player's display name to "<yellow>%name of player%"
		set tablist name of player to "<yellow>%name of player%"
	if {deaths::%player's uuid%} is 0:
		set the player's display name to "<lime>%name of player%"
		set tablist name of player to "<lime>%name of player%"

on respawn:
	wait 1 tick
	if {deaths::%player's uuid%} is 2:
		set the player's display name to "<red>%name of player%"
		set tablist name of player to "<red>%name of player%"
	if {deaths::%player's uuid%} is 1:
		set the player's display name to "<yellow>%name of player%"
		set tablist name of player to "<yellow>%name of player%"
	if {deaths::%player's uuid%} is 0:
		set the player's display name to "<lime>%name of player%"
		set tablist name of player to "<lime>%name of player%"
	if {deaths::%player's uuid%} is 3:
		set the player's display name to name of player
		set tablist name of player to name of player
```