Содержание

Overview

Locked Drop is simple utility for server and client. Current functionality allows disable item drop. Сonfiguration is available via chat commands.

Supported MC versions: 1.12.2

Features

Disable items drop globally (by registry name and metadata) Affects all items with same name and meta. Disable items drop individually (with NBT tag) Affects only tagged item. Enchantment «Preservation» Saves item in inventory if player dies. Can be disabled and fully configured. Locked Drop supports vanilla and Baubles inventories.

Navigation

* Usage

* Enchantments

Technical Information

This mod based on coremod and will apply bytecode transformations (using ASM lib) to some vanilla classes and supported mods classes. It will not cause any damage to worlds and world data or change behavior not provided by mod features.

All logic running only at server side. All settings saved and used on server side. Configuration and settings files will be created on first game start after mod installation. Mod data saved in standalone files in configs directory.

Mod also supports configuration and settings loading from mod jar file. Look for guide at overall settings page.

Server-Only Usage

This mod can be used server-side only and will support most of its features:

disabling items drop globally (items list saved in file) disabling item drop individually (nbt tag) However enchantments and tooltips for customized items will not be available. Also configuration commands localization will absent too.

Also you should set «server_only» flag in «config.json» to «true». It will prevent vain data syncronization logic.

Data Sync (Both Sides Usage Only)

In case of using it on server and clients you must follow this rules:

Main Config

Main config is «config.json» file. You must provide this file for client only if you disabled enchantments («enable_enchantments» is false).

Enchantments Config

It is «enchantments.json» file. Provide this file for client only if it was edited.

Data File

If you disabled some item drop globally all data will be saved here. All data will automatically synchronized with clients.

Custom Localization

There are ability to change translation of anything (this is actually for editing tooltip notes translation) using handy external json file. You should provide this file for client only if it was edited.