Skip to content

Commit

Permalink
disable and remove crafting table
Browse files Browse the repository at this point in the history
  • Loading branch information
enigmaquip committed Jun 25, 2022
1 parent a783941 commit 7124523
Show file tree
Hide file tree
Showing 5 changed files with 319 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/twilightforest-common.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ skull_candles = false
#If true, this will invert the above option from a blacklist to a whitelist.
flipIdList = false
#Disable the uncrafting function of the uncrafting table. Recommended as a last resort if there's too many things to change about its behavior.
disableUncrafting = false
disableUncrafting = true

#We recommend downloading the Shield Parry mod for parrying, but these controls remain for without.
["Shield Parrying"]
Expand Down
7 changes: 7 additions & 0 deletions kubejs/client_scripts/jei_removals.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ onEvent('jei.hide.items', e => {
'immersiveengineering:stick_steel',
'immersiveengineering:stick_aluminum',
'ftbic:silicon',
'twilightforest:uncrafting_table'
])

ftbicMetals.forEach(metal => {
Expand Down Expand Up @@ -96,3 +97,9 @@ onEvent('jei.hide.items', e => {
hideStuff('mysticalagriculture', 'essence', maDisabledSeeds)
//#endregion
})


onEvent('jei.remove.categories', event => {
//removes the uncrafting tab
event.remove('twilightforest:uncrafting')
})
106 changes: 106 additions & 0 deletions kubejs/data/twilightforest/loot_tables/structures/graveyard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"type": "minecraft:chest",
"pools": [
{
"rolls": 4.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 32.0
},
"add": false
}
],
"name": "minecraft:pumpkin_seeds"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 6.0
},
"add": false
}
],
"name": "minecraft:pumpkin_pie"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 16.0
},
"add": false
}
],
"name": "twilightforest:torchberries"
}
]
},
{
"rolls": 2.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 6.0
},
"add": false
}
],
"name": "minecraft:diamond"
},
{
"type": "minecraft:item",
"name": "twilightforest:moon_dial"
}
]
},
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 12.0
},
"add": false
}
],
"name": "twilightforest:transformation_powder"
},
{
"type": "minecraft:item",
"name": "minecraft:golden_apple"
}
]
}
]
}
202 changes: 202 additions & 0 deletions kubejs/data/twilightforest/loot_tables/structures/hill_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
{
"type": "minecraft:chest",
"pools": [
{
"rolls": 4.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:loot_table",
"weight": 25,
"name": "twilightforest:structures/useless"
},
{
"type": "minecraft:item",
"weight": 75,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 4.0
},
"add": false
}
],
"name": "minecraft:iron_ingot"
},
{
"type": "minecraft:item",
"weight": 75,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 4.0
},
"add": false
}
],
"name": "minecraft:carrot"
},
{
"type": "minecraft:item",
"weight": 75,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 6.0
},
"add": false
}
],
"name": "minecraft:ladder"
},
{
"type": "minecraft:item",
"weight": 75,
"name": "minecraft:bucket"
}
]
},
{
"rolls": 2.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 2.0
},
"add": false
}
],
"name": "minecraft:baked_potato"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 12.0
},
"add": false
}
],
"name": "minecraft:arrow"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 12.0
},
"add": false
}
],
"name": "minecraft:torch"
},
{
"type": "minecraft:item",
"name": "twilightforest:ore_magnet"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 4.0
},
"add": false
}
],
"name": "twilightforest:ironwood_ingot"
}
]
},
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [
{
"type": "minecraft:item",
"weight": 75,
"name": "twilightforest:magic_map"
},
{
"type": "minecraft:item",
"weight": 75,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 12.0
},
"add": false
}
],
"name": "twilightforest:transformation_powder"
},
{
"type": "minecraft:item",
"weight": 25,
"name": "minecraft:diamond"
},
{
"type": "minecraft:item",
"weight": 25,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1.0,
"max": 6.0
},
"add": false
}
],
"name": "minecraft:emerald"
},
{
"type": "minecraft:item",
"weight": 25,
"name": "twilightforest:peacock_feather_fan"
},
{
"type": "minecraft:item",
"weight": 25,
"name": "twilightforest:charm_of_life_1"
},
{
"type": "minecraft:item",
"weight": 25,
"name": "twilightforest:music_disc_wayfarer"
}
]
}
]
}
3 changes: 3 additions & 0 deletions kubejs/server_scripts/mod_specific/twilightforest/twilight.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
onEvent('recipes', event => {
event.remove({ id: 'twilightforest:uncrafting_table' })
})

0 comments on commit 7124523

Please sign in to comment.