fix: fix tags and recipes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
LordMZTE 2022-08-09 17:24:51 +02:00
parent cd515d9ace
commit 49a8ef908a
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
4 changed files with 41 additions and 1 deletions

View file

@ -1 +1,2 @@
- removed exploitable grinder recipes
- fixed some tags and recipes
- removed ae2 spatial anchor (broken on fabric)

View file

@ -0,0 +1,5 @@
function itemTooltips(ev) {
ev.add("ae2:spatial_anchor", Text.of("Broken on Fabric!").red());
}
onEvent("item.tooltip", itemTooltips);

View file

@ -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);

View file

@ -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);