Merge branch 'v3.0' of https://github.com/oitsjustjose/Harmonious-Engineering into v3.0
This commit is contained in:
commit
ab24612112
1 changed files with 0 additions and 33 deletions
|
|
@ -1,12 +1,4 @@
|
||||||
onEvent('item.tooltip', event => {
|
onEvent('item.tooltip', event => {
|
||||||
const optionalRemove = (t, f) => {
|
|
||||||
let idx = 0;
|
|
||||||
for (const x of t) {
|
|
||||||
if (`${x}`.includes(f)) t.remove(idx);
|
|
||||||
idx++;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
event.add(
|
event.add(
|
||||||
[
|
[
|
||||||
'refinedstorage:controller',
|
'refinedstorage:controller',
|
||||||
|
|
@ -81,29 +73,4 @@ onEvent('item.tooltip', event => {
|
||||||
text.add(Text.of('§5All fall damage is negated and applied to boots instead§r'));
|
text.add(Text.of('§5All fall damage is negated and applied to boots instead§r'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
event.addAdvanced('minecraft:stick', (item, advanced, text) => {
|
|
||||||
try {
|
|
||||||
optionalRemove(text, 'message.supplementaries.placeable');
|
|
||||||
} catch (ex) {
|
|
||||||
console.log(ex);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
event.addAdvanced('minecraft:blaze_rod', (item, advanced, text) => {
|
|
||||||
try {
|
|
||||||
optionalRemove(text, 'message.supplementaries.placeable');
|
|
||||||
} catch (ex) {
|
|
||||||
console.log(ex);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
event.addAdvanced('immersiveengineering:graphite_electrode', (item, advanced, text) => {
|
|
||||||
try {
|
|
||||||
optionalRemove(text, 'desc.immersiveengineering.info.electrodeIntegrity');
|
|
||||||
optionalRemove(text, 'item.unbreakable');
|
|
||||||
} catch (ex) {
|
|
||||||
console.log(ex);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue