Introduction
Do you want to allow players to battle each other on your Hytale server? The PvP (Player versus Player) mode is disabled by default, but enabling it takes just a few moments. Discover the different methods to activate player combat and customize the experience according to your preferences.
Why Enable PvP?
The PvP mode transforms your server by allowing player confrontations. Whether for friendly duels, competitive events, or a more intense survival mode, PvP adds a strategic dimension to your Hytale universe.
- Organize PvP tournaments and events between players
- Create a more competitive and immersive survival atmosphere
- Encourage alliances and rivalries between factions
Quick Method: In-Game Command
The easiest way to enable PvP is to use a command directly in-game. You need to have administrator rights (OP) to execute it:
/gamerule pvp true
Replace "true" with "false" to disable PvP at any time.
Required Rights: This command requires administrator permissions. Check our guide to become OP if you do not have the necessary rights yet.
Advanced Method: Configuration File
For a permanent configuration, you can directly modify the world configuration file. This method is ideal for setting parameters before launching the server.
Step 1: Stop Your Server
Before modifying the configuration files, make sure your server is properly shut down to avoid any conflicts or data loss.
Step 2: Locate the config.json File
Access your file manager from your panel and navigate to the world configuration folder:
/worlds/<world_name>/config.json
Step 3: Modify the PvP Setting
Open the config.json file and search for or add the following line to enable PvP:
{
"pvp": true
}
Step 4: Restart the Server
Save the file and restart your server. The changes will take effect immediately upon startup.
Customize Death Consequences
With PvP enabled, you can also configure what happens when a player dies in combat. These settings can be found in the same config.json file:
{
"deathDropMode": "All",
"deathDropPercentage": 100,
"deathDurabilityLoss": 10
}
| Parameter | Description |
|---|---|
deathDropMode | Item loss mode: "All" (lose everything), "None" (keep everything) |
deathDropPercentage | Percentage of items lost (0-100) |
deathDurabilityLoss | Percentage of durability lost on equipment (0-100) |
Tips for Good PvP
- Inform your players before enabling PvP to avoid unpleasant surprises
- Consider creating safe zones (spawn, markets) where PvP remains disabled via mods
- Currently, Hytale does not natively allow creating distinct PvP/PvE zones - mods will be necessary for this feature
Launch Your Hytale PvP Arena
Create a high-performance Hytale server in just a few clicks with HytaleServ. DDoS protection included for uninterrupted battles.