promotional bannermobile promotional banner
premium banner
Disabling loot generation in Blood Magic dimensions

Description

This data pack is designed for modpack developers and enthusiasts who are just starting their journey in creating modpacks/mods.

Example
for adding an item as loot:

{<br />"type": "minecraft:chest",<br />"pools": [// List of pools (groups) of items that can drop<br />{<br />"rolls": 1, // One independent attempt to select an item is made<br />"entries": [// List of items in the pool<br />{<br />"type": "minecraft:item", // Entry type &mdash; normal item<br />"name": "minecraft:copper_ingot", // Item ID<br />"weight": 1, // Drop weight (the higher the drop rate, the higher the chance)<br />"functions": [// List of functions that apply to the item<br />{<br />"function": "minecraft:set_count",<br />"count": { "min": 1, // Minimum quantity <br />"max": 5 } // Maximum quantity<br />}<br />]<br />}<br />]<br />}<br />]<br />}

 
Example for adding an item with NBT as loot:

{<br />"type": "minecraft:chest", // Generator type, here a chest<br />"pools": [ // List of pools (groups) of items that can drop<br />{<br />"rolls": 1, // Number of drops for an item from this pool<br />"entries": [ // List of items in the pool<br />{<br />"type": "minecraft:item", // Entry type &mdash; normal item<br />"name": "bloodmagic:basemonstersoul", // Item ID<br />"weight": 1, // Drop weight (the higher the drop rate, the higher the chance)<br />"functions": [ // List of functions that apply to the item<br />{<br />"function": "minecraft:set_nbt", // Function sets the NBT tag of the item<br />"tag": "{souls:10.0d}" // Here we specify the number of souls in the item<br />},<br />{<br />"function": "minecraft:set_count", // Function sets the number of items in a stack<br />"count": {<br />"min": 1, // Minimum quantity<br />"max": 5 // Maximum quantity<br />}<br />}<br />]<br />}<br />]<br />}<br />]<br />}