Lootr

From the Fear Nightfall wiki · Lootr
Lootr
Items/blocks9
Mobs2

The Lootr mod is a Minecraft 1.21.1 NeoForge mod by Noobanidus that gives each player their own copy of the loot in a container. Lootr converts the chests, barrels, shulker boxes, decorated pots, suspicious sand and gravel, and item frames that world generation places into Lootr containers. Each player who opens one finds a set of items generated for that player, and taking items does not remove them for anyone else. In Fear Nightfall this matters because the horror structures hold a large share of the pack's loot, and on a multiplayer server that loot would otherwise be used up by the first player to reach it.

Overview

Lootr adds nine placeable blocks, two entities, sixteen advancements and a decorative trophy block. It adds no mobs, biomes, structures or crafting recipes. Its work is to change how existing containers behave. The loot tables used by world generation still decide what goes into each container; Lootr decides how many copies exist and which player gets which copy.

In Fear Nightfall, Lootr keeps the loot of the pack's Structures fair on multiplayer servers. It handles the loot from the pack's other mods as well as vanilla loot, so containers in Dungeons and Taverns, Better Dungeons, Better Mineshafts and strongholds behave in the same way. Loot and Chests describes the pack's loot as a whole.

Content

The blocks are the Lootr forms of containers that appear in the world:

  • Loot Chest (lootr_chest) and its trapped variant (lootr_trapped_chest), which replace chests and trapped chests.
  • Loot Chest inventory block (lootr_inventory), a second chest-type block with the same item name.
  • Loot Barrel (lootr_barrel), which replaces barrels.
  • Loot Shulker (lootr_shulker), which replaces shulker boxes.
  • Decorated Loot Pot (decorated_pot), which replaces decorated pots. Pots of this kind can be cracked and carry pottery sherds.
  • Sand (suspicious_sand) and Gravel (suspicious_gravel), which replace the suspicious sand and gravel that is opened with a brush.
  • Centennial Trophy (trophy), a rare block that is the reward of the Centennial advancement.

The two entities are the Minecart with Loot Chest (lootr_minecart), which holds per-player loot in place of a chest minecart, and the Item Frame with Loot (item_frame), which holds an item that is per player. Neither spawns naturally. Item stats are in the table in the Items section.

Containers that Lootr cannot make per-player are listed under Lootr.

Mechanics

A Lootr container keeps a separate record of what each player has taken from it. The first time a player opens a container, the mod generates that player's share of the loot from the container's loot table, and it keeps that share for the player. Other players have their own shares. Lootr keeps container data for up to 18000 ticks (15 minutes) before discarding it, and the save mode is set to smart.

The mod's settings in this pack are:

Setting Value Effect
Randomize seed on Each player's share is randomized, not taken from one shared seed.
Shared team inventories off Each player has their own inventory, not one per scoreboard team.
Bypass spawn protection on Lootr containers can be opened inside spawn protection.
Power comparators on A comparator reading a Lootr container gives an output of 1.
Custom inventories are trapped off Custom inventories do not act as trapped chests.
Decay and refresh none No Lootr container decays or refreshes, because no loot table or dimension is set for either.
Disable break off Lootr containers can be broken normally.
Blast resistance off Creeper and TNT explosions can destroy Lootr containers.
Broken containers drop player loot off Breaking a container does not drop the breaker's share.

Destroying a Lootr minecart prevents other players from getting their shares, so the mod shows a warning before the minecart is destroyed and asks the player to sneak while attacking to confirm. Lootr also tracks how many containers each player has looted, shown as the "Containers and entities looted" statistic. The Centennial Trophy is not crafted and has an epic rarity.

Changes to vanilla

Lootr changes the following vanilla containers:

  • Chests, trapped chests and barrels generated by structures become Lootr containers. Each player gets their own share of the loot.
  • Shulker boxes become Loot Shulkers.
  • Suspicious sand and gravel placed by world generation become Lootr sand and gravel. Brushing still works the same way.
  • Decorated pots become Lootr pots.
  • Mineshaft chest minecarts are converted (the pack enables this), so each player gets a share.
  • Item frames that world generation fills with an item become Lootr item frames. Items cannot be inserted into an item frame that holds loot.
  • Elytra item frames in End ships become Lootr item frames that contain an elytra. They are not converted to chests.

Lootr has an emergency conversion for a container that the mod did not convert at generation. When a player opens such a container it is converted, and the player receives the Emergency Escape Hatch advancement.

In Fear Nightfall

Fear Nightfall keeps Lootr close to its default settings, with three changes:

  • Client textures. The client is set to vanilla textures, so Lootr containers look like the vanilla chests, barrels and shulker boxes they replace.
  • No decay or refresh. Lootr containers in the pack do not decay or refresh their contents over time.
  • Some containers stay shared. Lootr cannot make the following containers per-player, so they stay shared and first come, first served: graveyard coffins and urns (Coffins and Sarcophagi, Urns and Vases), Farmer's Delight cabinets, Hexerei chests (Hexerei), Sleepy Hollows coffins, and Nether Expansion brazier chests (Jaden's Nether Expansion).

The pack's horror content is set in the structures and biomes that hold the most loot, so per-player loot matters most there. Horror and Spooky Content lists the horror content, and Biomes describes the biomes that hold it.

Advancements

Lootr adds sixteen advancements under its root advancement. They reward opening each type of Lootr container, opening 10, 25, 50 and 100 containers, opening the Lootr minecart and the Lootr item frame, brushing every type of suspicious Lootr block, and the Emergency Escape Hatch. The Centennial advancement rewards the Centennial Trophy.

AdvancementDescriptionType
Brush It OffBrush all types of suspicious Lootr blocks!task
Tunnel TreasuresOpen your first Lootr minecart!task
Emergency Escape Hatch!Trigger Lootr's emergency conversion contingency on an eligible chest!challenge
Bounty BoxOpen your first Lootr shulker box!task
Socialised LootOpen one of every Lootr container type!challenge
Half-CenturyOpen 50 Lootr containers!task
Close QuartersOpen 25 Lootr containers!task
Barrel BootyOpen your first Lootr barrel!task
'X' Marks the SpotOpen your first Lootr chest!task
I was framed!Loot an item from a Lootr item frame!task
LootrIt belongs in a museum! Bring instanced loot to your world.task
Surprise!Open your first Lootr trapped chest!task
Delightful DecadeOpen 10 Lootr containers!task
Woe to the PotLoot your first Lootr decorated pot!task
That Was 90% GravityLoot all of Lootr's archaeological blocks!challenge
CentennialOpen 100 Lootr containers!challenge

Obtaining

Lootr containers are not crafted, and the mod adds no recipes. Players obtain them in these ways:

  • World generation. Chests, barrels, shulker boxes, pots, suspicious sand and gravel, and item frames in generated structures are converted into Lootr containers.
  • Breaking. Breaking a Lootr block drops the matching block item.
  • Advancement reward. The Centennial Trophy is the reward of the Centennial advancement, which is earned by opening 100 Lootr containers.

Usage

A Lootr container is opened in the same way as the vanilla container it replaces. Pots and suspicious sand and gravel are interacted with as their vanilla equivalents are. Players who open a container see only the items that are left for them. Loot Shulkers are mined with a pickaxe, and the chests, barrels and suspicious blocks are mined with an axe or shovel, as listed in the Items section.

Items

Lootr blocks have the hardness and blast resistance shown in the table below. The Centennial Trophy has a hardness of 15 and a light level of 15.

ItemHardness
Loot Chest2.5
Loot Chest2.5
Loot Barrel2.5
Loot Chest2.5
Loot Shulker2.5
Sand2.5
Gravel2.5
Decorated Loot Pot1.5
Centennial Trophy15