fix: fix tags and recipes
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cd515d9ace
commit
49a8ef908a
|
@ -1 +1,2 @@
|
|||
- removed exploitable grinder recipes
|
||||
- fixed some tags and recipes
|
||||
- removed ae2 spatial anchor (broken on fabric)
|
||||
|
|
5
overrides/kubejs/client_scripts/99-tooltips.js
Normal file
5
overrides/kubejs/client_scripts/99-tooltips.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
function itemTooltips(ev) {
|
||||
ev.add("ae2:spatial_anchor", Text.of("Broken on Fabric!").red());
|
||||
}
|
||||
|
||||
onEvent("item.tooltip", itemTooltips);
|
|
@ -11,9 +11,26 @@ const waystones = [
|
|||
"waystones:blackstone_brick_waystone",
|
||||
];
|
||||
|
||||
const ores_with_missing_tags = {
|
||||
iron: ["archon:cloud_iron"],
|
||||
quartz: [
|
||||
"byg:blue_nether_quartz_ore",
|
||||
"byg:brimstone_nether_quartz_ore",
|
||||
],
|
||||
lapis: ["betternether:nether_lapis_ore"],
|
||||
redstone: ["betternether:nether_redstone_ore"],
|
||||
};
|
||||
|
||||
function blockTags(ev) {
|
||||
// this allows players to activate other people's waystones
|
||||
ev.add("ftbchunks:interact_whitelist", waystones);
|
||||
|
||||
for (let [tag, ores] of Object.entries(ores_with_missing_tags)) {
|
||||
for (ore of ores) {
|
||||
ev.add(`c:${tag}_ores`, ore);
|
||||
ev.add(`c:ores/${tag}`, ore);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function addNuggetTags(ev, material, item) {
|
||||
|
@ -25,6 +42,13 @@ function itemTags(ev) {
|
|||
// ConsistencyPlus actually doesn't know how tags work
|
||||
addNuggetTags(ev, "copper", "consistency_plus:copper_nugget");
|
||||
addNuggetTags(ev, "netherite", "consistency_plus:netherite_nugget");
|
||||
|
||||
for (let [tag, ores] of Object.entries(ores_with_missing_tags)) {
|
||||
for (ore of ores) {
|
||||
ev.add(`c:${tag}_ores`, ore);
|
||||
ev.add(`c:ores/${tag}`, ore);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onEvent("tags.blocks", blockTags);
|
||||
|
|
|
@ -68,6 +68,16 @@ function recipes(ev) {
|
|||
I: "dimdoors:infrangible_fiber",
|
||||
F: "dimdoors:frayed_filament",
|
||||
});
|
||||
|
||||
// broken on fabric
|
||||
ev.remove({
|
||||
output: "ae2:spatial_anchor",
|
||||
});
|
||||
|
||||
// duplicate
|
||||
ev.remove({
|
||||
id: "techreborn:grinder/nether_lapis_ore",
|
||||
});
|
||||
}
|
||||
|
||||
onEvent("recipes", recipes);
|
||||
|
|
Loading…
Reference in a new issue