MoreJS.updateOffer(event => {
const offer = event.getOffer()
if (offer.firstCost && offer.firstCost.id === "minecraft:emerald") {
offer.firstCost = Item.of("kubejs:gold_timecoin", offer.firstCost.count)
event.setOffer(offer)
}
if (offer.secondCost && offer.secondCost.id === "minecraft:emerald") {
offer.secondCost = Item.of("kubejs:gold_timecoin", offer.secondCost.count)
event.setOffer(offer)
}
if (offer.output && offer.output.id === "quark:pathfinders_quill") {
offer.firstCost = Item.of("kubejs:gold_timecoin", offer.firstCost.count)
event.setOffer(offer)
}
if (offer.output && offer.output.id === "quark:pathfinders_quill") {
offer.secondCost = Item.of("kubejs:gold_timecoin", offer.secondCost.count)
event.setOffer(offer)
}
})
Minecraft Version
1.21.1
Mod Version
Quark 4.1-475, MoreJS 1.21.1-0.16.0
Describe the bug!
Server script:
Crash Report
No response
Log
https://gist.github.com/The-Goat-HUN/a905a8a083328dd9db35d06aefad6d11
Additions and Modifications
No
Additions and Modifications Description
No response
Did the issue happen in singleplayer or on a server?
Both