Skip to content
BinaryCrafter edited this page Apr 17, 2017 · 7 revisions

About

This repo offers a modified configuration for a vanilla minecraft server, that does the following:

  • nerfs AFK fish farms, by making enchanted book an extremely rare item of loot
  • significantly increases the dungeon count
  • dungeons, abandoned mineshafts, blacksmiths and desert pyramids now contain between 0 and 3 enchanted books, including treasured books, (e.g. mending books)
  • chests in strongholds might contain an elytra
  • the ender dragon, will drop an elytra on death

The idea of this modification is that it forces players on a multiplayer server to explore to obtain loot rather than set up an OP AFK fish farm. The better loot, will give players an incentive to explore to obtain the loot.

I use this configuration on my dedicated server, with the following additional modifications:

  • keepInventory = true
  • modGreifing = false
  • a set of command blocks to make players lose XP on death
  • a set of command blocks to enable single player sleeping

Command Blocks

Command blocks have to be enabled, and should be placed in the spawn chunks of the world, below (or encased in) bedrock.

Single Player Sleeping

This command block setup for single player sleeping, clones the vanilla sleeping mechanic, but only requires a single player to jump into a bed.

The following schematic is a plan view of the command blocks, with 'a' blocks feeding into 'b' blocks, etc. Configuration for each of these blocks is below

cb1a cb2a cb3a
     cb2b
     cb2c
     cb2d

Commands required as a prerequisite

/scoreboard objectives add sleep dummy

Configuration of each of the command blocks

cb1a
Repeat, Unconditional, Always Active
/scoreboard players add @a sleep 1 {Sleeping:1b}

cb2a
Repeat, Unconditional, Always Active
/testfor @p[score_sleep_min=105]

cb3a
Repeat, Unconditional, Always Active
/scoreboard players set @a[score_sleep_min=1] sleep 0 {Sleeping:0b}

cb2b
Chain, Conditional, Always Active
/weather clear

cb2c
Chain, Conditional, Always Active
/time set 0

cb2d
Chain, Conditional, Always Active
/scoreboard players reset @a sleep

Lose XP on death (pointless if keepInventory is false)

This set of command blocks is used on servers where keepInventory is set to true, but you want players to lose all of their XP on death.

The following schematic is a plan view of the command blocks, with 'a' blocks feeding into 'b' blocks, etc. Configuration for each of these blocks is below

cb1a
cb1b

Commands required as a prerequisite

/scoreboard objective add deaths deathCount

Configuration of each of the command blocks

cb1a
/xp -9999L @a[score_deaths_min=1]
Repeat, Uncoditional, Always Active

cb1b
/scoreboard players reset @a[score_deaths_min=1] deaths
Chain, Unconditional, Always Active