Skip to content

Commit

Permalink
✨ add porcelain teapot trade and drops
Browse files Browse the repository at this point in the history
  • Loading branch information
LocusAzzurro committed Jun 24, 2024
1 parent 62eff8f commit 3aea986
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"type": "minecraft:block",
"pools": [
{
"name": "porcelain_teapot",
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "ultramarine:porcelain_teapot"
},
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:random_chance",
"chance": 0.2
}
],
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:uniform_bonus_count",
"parameters": {
"bonusMultiplier": 2
}
}
],
"name": "ultramarine:porcelain_piece"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ public static void villagerTradesHandler(VillagerTradesEvent event){
new ItemStack(ItemRegistry.XUAN_PAPER.get(), 4),
10, 20, 0.05f
));
trades.get(5).add(($1, $2) -> new MerchantOffer(
new ItemStack(Items.EMERALD, 30),
new ItemStack(ItemRegistry.PORCELAIN_TEAPOT.get(), 1),
2, 20, 0.05f
));
}

if (profession == VillagerProfession.CLERIC){
Expand Down

0 comments on commit 3aea986

Please sign in to comment.