neuralgia/kubejs/startup_scripts/firmalife/modifications.js
GameStar af01173039
temperature changing foods (#1753)
* update sack mod

* Update wan_ancient_beasts-server.toml

* stuff

* lang

* images

* Update CHANGELOG.md

Signed-off-by: GameStar <56610486+BlueBoat29@users.noreply.github.com>

---------

Signed-off-by: GameStar <56610486+BlueBoat29@users.noreply.github.com>
2025-09-06 21:35:42 +01:00

30 lines
No EOL
651 B
JavaScript

// priority: 0
"use strict";
function registerFirmalifeItemModifications(event) {
event.modify('firmalife:spoon', item => {
item.setCraftingRemainder('firmalife:spoon')
})
event.modify('firmalife:mixing_bowl', item => {
item.setCraftingRemainder('firmalife:mixing_bowl')
})
//#region add cooling/heating to foods
global.COOLING_FOODS.forEach(food => {
event.modify(food, item =>{
item.foodProperties = food => {
food.effect('tfg:cooling', 20, 0, 1)
}
})
})
global.WARMING_FOODS.forEach(food => {
event.modify(food, item =>{
item.foodProperties = food => {
food.effect('tfg:warming', 20, 1, 1)
}
})
})
}