Initial commit

This commit is contained in:
2024-11-28 17:00:03 +00:00
commit c0bd808561
11697 changed files with 631986 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
console.info("Loaded client_health_check.js")
const FirstAid = java('ichttt.mods.firstaid.FirstAid')
const MessageClientRequest = java('ichttt.mods.firstaid.common.network.MessageClientRequest')
onEvent('client.logged_in', event => {
if (!event.player.isAlive()) return
FirstAid.NETWORKING.sendToServer(new MessageClientRequest(MessageClientRequest.Type.REQUEST_REFRESH));
})

View File

@@ -0,0 +1,8 @@
// priority: 0
console.info('Hello, World! (You will see this line every time client resources reload)')
onEvent('jei.hide.items', event => {
// Hide items in JEI here
// event.hide('minecraft:cobblestone')
})

View File

@@ -0,0 +1,11 @@
onEvent('item.tooltip', event => {
event.addAdvanced(Ingredient.all, (item, advanced, text) => {
for (let i = 0; i < text.size(); i++) {
let component = text.get(i)
let tooltip = component.string
if(tooltip.contains("Bite protection")) {
text.remove(i)
}
}
});
});