Skip to content

Commit

Permalink
dev10: fix loot table
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Jul 23, 2022
1 parent 4f8243f commit 88d6fd9
Show file tree
Hide file tree
Showing 5 changed files with 519 additions and 2 deletions.
12 changes: 12 additions & 0 deletions index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,18 @@ hash = "ab9124635d718408f6bdeadabc6ff7667f11f3093866d6bb25ecf046d645b8b5"
file = "kubejs/assets/minecraft/textures/gui/title/background/panorama_5.png"
hash = "2f5d101242feb1a1c9b3dd77c68cb718846c8afefce0d5b4b6f1b2ed32e3677a"

[[files]]
file = "kubejs/client_scripts/client.js"
hash = "b23450c2db9f352efdc8a999fbc2b8c8479f3c3bd6d69908e1c0932348c26baa"

[[files]]
file = "kubejs/data/ae2/loot_tables/blocks/deepslate_quartz_ore.json"
hash = "b27b5a034c714019905215f80118222cc57d00dfcb6ffa94e8f82409722eb18d"

[[files]]
file = "kubejs/data/ae2/loot_tables/blocks/quartz_ore.json"
hash = "156b3cf474636e95bf1b95bf27b3b0e7c2eb543460ac96c07991f59047b0c90f"

[[files]]
file = "kubejs/data/c/tags/items/barrels/wooden.json"
hash = "cc11f9251b5a741fe67f14bde23a27b3b612add973ba5c6cfdb2a44e2ff901b2"
Expand Down
27 changes: 27 additions & 0 deletions kubejs/client_scripts/client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

onEvent('rei.remove.categories', event => {
event.yeet('minecraft:plugins/tag')
// event.yeet('alloy_forgery:forging')
event.yeet('minecraft:plugins/stripping')
event.yeet('minecraft:plugins/beacon_base')
event.yeet('minecraft:plugins/beacon_payment')
event.yeet('minecraft:plugins/pathing')
event.yeet('minecraft:plugins/waxing')
event.yeet('minecraft:plugins/wax_scraping')
event.yeet('minecraft:plugins/oxidizing')
event.yeet('minecraft:plugins/oxidation_scraping')
event.yeet('roughlyenoughitems:plugins/information')
event.yeet('farmersdelight:decomposition')
event.yeet('ae2:throwing_in_water')
event.yeet('ae2:condenser')
event.yeet('ae2:inscriber')
// event.yeet('create:fan_smoking')
// event.yeet('create:fan_blasting')
event.yeet('create:automatic_shapeless')
event.yeet('create:automatic_shaped')
event.yeet('create:automatic_packing')
event.yeet('create:automatic_brewing')
event.yeet('create:block_cutting')
event.yeet('create:item_application')
event.yeet('create:mystery_conversation')
})
297 changes: 297 additions & 0 deletions kubejs/data/ae2/loot_tables/blocks/deepslate_quartz_ore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,297 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 4.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": "ae2:deepslate_quartz_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 2.0,
"max": 5.0
},
"add": false
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:uniform_bonus_count",
"parameters": {
"bonusMultiplier": 1
}
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "ae2:certus_quartz_dust"
}
]
}
]
},
{
"rolls": 3.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 4.0
},
"add": false
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:uniform_bonus_count",
"parameters": {
"bonusMultiplier": 1
}
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "ae2:certus_quartz_crystal"
}
],
"conditions": [
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
},
{
"condition": "minecraft:table_bonus",
"enchantment": "minecraft:fortune",
"chances": [
0.05,
0.1,
0.15,
0.2
]
}
]
},
{
"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": "ae2:deepslate_quartz_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 1.0
},
"add": false
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:uniform_bonus_count",
"parameters": {
"bonusMultiplier": 1
}
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "ae2:charged_certus_quartz_crystal"
}
]
}
]
},
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 4.0
},
"add": false
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:uniform_bonus_count",
"parameters": {
"bonusMultiplier": 1
}
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "ae2:certus_quartz_crystal"
}
],
"conditions": [
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
},
{
"condition": "minecraft:table_bonus",
"enchantment": "minecraft:fortune",
"chances": [
0.6,
0.9,
0.9,
1.0
]
}
]
},
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 4.0
},
"add": false
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:uniform_bonus_count",
"parameters": {
"bonusMultiplier": 1
}
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "ae2:certus_quartz_crystal"
}
],
"conditions": [
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
},
{
"condition": "minecraft:table_bonus",
"enchantment": "minecraft:fortune",
"chances": [
0.02,
0.1,
0.2,
0.3
]
}
]
}
]
}
Loading

0 comments on commit 88d6fd9

Please sign in to comment.