Feature/sandworm, sacks, soulbind (#1710)
* stuff * Create wraptor.json * Update tags.js * fix wool * eggs * Update constants.js * more recipe stuff * doing tooltips the correct way * oops Signed-off-by: GameStar <56610486+BlueBoat29@users.noreply.github.com> * oops * eater mixin stuff * add sandworm+dep to pakku * new configs I think * soulbind recipes * thumper * Update main_server_script.js * Update pakku-lock.json * sack configs * Update sns-server.toml * Update sns-server.toml * sack recipes and stuff * Create soulbinding-common.toml * soulbind fix * Update pakku-lock.json Signed-off-by: GameStar <56610486+BlueBoat29@users.noreply.github.com> * Update recipes.js * Update recipes.js * Delete EffekseerNativeForJava.dll Signed-off-by: GameStar <56610486+BlueBoat29@users.noreply.github.com> * Update .gitignore --------- Signed-off-by: GameStar <56610486+BlueBoat29@users.noreply.github.com>
This commit is contained in:
parent
47b288eea2
commit
d59f73b1ee
16 changed files with 998 additions and 1 deletions
25
kubejs/server_scripts/soulbound/recipes.js
Normal file
25
kubejs/server_scripts/soulbound/recipes.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// priority: 0
|
||||
"use strict";
|
||||
|
||||
const registerSoulboundRecipes = (event) => {
|
||||
|
||||
global.SOULBINDABLE_ITEMS.forEach(item => {
|
||||
event.shapeless(Item.of(item, '{soulbindingSoulboundItems:1b}'), ['endermanoverhaul:soul_pearl', item])
|
||||
.modifyResult((craftingGrid, result) => {
|
||||
let orig = craftingGrid.find(Ingredient.of(item))
|
||||
|
||||
result.nbt.put("Damage", orig.nbt.getInt("Damage"));
|
||||
if(item === 'ad_astra:space_suit') {
|
||||
try {
|
||||
result.nbt.put('BotariumData', orig.nbt.get('BotariumData'))
|
||||
} catch (exception) {
|
||||
console.error(exception);
|
||||
}
|
||||
}
|
||||
result.nbt.put('soulbindingSoulboundItems', true)
|
||||
return result;
|
||||
}).id(`tfg:soulbind_${item}`);
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
10
kubejs/server_scripts/soulbound/tags.js
Normal file
10
kubejs/server_scripts/soulbound/tags.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// priority: 0
|
||||
|
||||
"use strict";
|
||||
|
||||
const registerSoulboundItemTags = (event) => {
|
||||
|
||||
global.SOULBINDABLE_ITEMS.forEach(item => {
|
||||
event.add('tfg:soulbindable_items', item)
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue