Wiki 9Minecraft RpgZ Mod Wiki
RpgZ Mod Wiki › Guide

RpgZ Mod — Guide

Looting System

When a player interacts with a fallen mob, a custom GUI appears. This interface displays all items the mob would have normally dropped according to its vanilla or modded loot table.

Interface Features

Feature Description
Loot Grid A visual display of all items found on the mob.
Quick Collect Players can shift-click items to move them instantly to their inventory.
Take All A button or shortcut to empty the corpse's inventory in one click.
Corpse Cleanup Once all items are removed, the corpse entity typically despawns immediately to save server resources.

Technical Details

RpgZ is designed to be lightweight and highly compatible with other mods. It does not add new items, blocks, or permanent entities to the game registry, ensuring that it can be added or removed from existing worlds with minimal risk.

  • Mod Compatibility: Works seamlessly with mods that alter loot tables (such as LootJS or KubeJS) and mods that add new creatures. If a modded mob has a custom death animation, it may need to be added to the blacklist to prevent visual glitches.
  • Requirements:
  • Fabric: Requires Fabric API and Cloth Config API.

Core Mechanics

The mod introduces several key mechanical shifts to the standard survival loop:

  • Corpse Persistence: Upon death, a mob does not disappear. It transitions into a 'corpse' state, lying on the ground where it fell. By default, these corpses persist for 4 minutes before despawning.
  • Manual Looting: Items are no longer automatically added to the player's inventory or dropped on the ground. Players must right-click the corpse to open a dedicated looting interface.
  • Experience Handling: Experience points (XP) are typically handled through the same looting interface or dropped upon the initial death, depending on configuration settings.
  • Environmental Interaction: Corpses are treated as temporary entities. They do not block movement like solid blocks but serve as the sole container for the mob's loot table.