Skip to content

Commit

Permalink
For V1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudWolfYT committed Dec 4, 2021
1 parent 00d5a35 commit 143bab0
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 67 deletions.
67 changes: 0 additions & 67 deletions data/minecraft/loot_tables/blocks/shulker_box.json

This file was deleted.

69 changes: 69 additions & 0 deletions data/minecraft/loot_tables/blocks/yellow_shulker_box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:dynamic",
"name": "minecraft:contents",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"items": ["minecraft:air"],
"nbt": "{drop_contents:1b}"
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:yellow_shulker_box",
"functions": [
{
"function": "minecraft:copy_name",
"source": "block_entity"
},
{
"function": "minecraft:copy_nbt",
"source": "block_entity",
"ops": [
{
"source": "Lock",
"target": "BlockEntityTag.Lock",
"op": "replace"
},
{
"source": "LootTable",
"target": "BlockEntityTag.LootTable",
"op": "replace"
},
{
"source": "LootTableSeed",
"target": "BlockEntityTag.LootTableSeed",
"op": "replace"
}
]
},
{
"function": "minecraft:set_contents",
"type": "minecraft:shulker_box",
"entries": [
{
"type": "minecraft:dynamic",
"name": "minecraft:contents"
}
]
}
]
}
]
}
]
}
]
}

0 comments on commit 143bab0

Please sign in to comment.