Initial commit
This commit is contained in:
8
kubejs/client_scripts/health_check.js
Normal file
8
kubejs/client_scripts/health_check.js
Normal 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));
|
||||
})
|
||||
8
kubejs/client_scripts/script.js
Normal file
8
kubejs/client_scripts/script.js
Normal 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')
|
||||
})
|
||||
11
kubejs/client_scripts/tooltip.js
Normal file
11
kubejs/client_scripts/tooltip.js
Normal 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)
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user