New Loot Types Loot Block - Tmtravlr/LootOverhaul GitHub Wiki

New Loot Types - Loot Block

Structure:

Tag Type Description
Block String The block id, like minecraft:grass
Meta Integer The numerical block metadata (Optional)
State Compound Tag The state of the block, like facing:"north" (Optional)
BlockEntityTag Compound Tag The tag of the tile entity for this block (Optional)
NoUpdate Boolean Won't run a block update when the block is placed. Certain things won't be updated, but sadly sand still falls. (Optional)

Description:

This item will place a block as soon as it enters the world

Example Usage: Dropping a fire block

 {
 	"type": "item",
 	"name": "lootoverhaul:loot_block",
  	"weight": 1,
 	"functions": [
 		{
 			"function": "set_nbt",
 			"tag": "{Block:\"minecraft:fire\"}"
 		}
 	]
 }

Example Usage: Dropping a purple wool block

 {
 	"type": "item",
 	"name": "lootoverhaul:loot_block",
  	"weight": 1,
 	"functions": [
 		{
 			"function": "set_nbt",
 			"tag": "{Block:\"minecraft:wool\", State:{color:\"purple\"}}"
 		}
 	]
 }

Example Usage: Dropping a chest with dungeon chest loot

 {
 	"type": "item",
 	"name": "lootoverhaul:loot_block",
  	"weight": 1,
 	"functions": [
 		{
 			"function": "set_nbt",
 			"tag": "{Block:\"minecraft:chest\", BlockEntityTag:{LootTable:\"minecraft:chests/simple_dungeon\"}}"
 		}
 	]
 }
Previous - Loot Entity Back Next - Loot Structure
⚠️ **GitHub.com Fallback** ⚠️