SylvanusPC

script.js

Jun 9th, 2022
1,436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. settings.logAddedRecipes = true
  2. settings.logRemovedRecipes = true
  3. settings.logSkippedRecipes = true
  4. settings.logErroringRecipes = true
  5.  
  6. console.info('Hello, World! (You will see this line every time server resources reload)')
  7.  
  8. onEvent('recipes', event => {
  9.     event.remove({id: 'explorerscompass:explorerscompass'})
  10.     event.remove({id: Item.of('eccentrictome:tome', '{"eccentrictome:mods":{},"eccentrictome:version":1}')})
  11.    
  12.     // recipe for Explorer's Compass
  13.     event.shaped('explorerscompass:explorerscompass', [
  14.         'SES',
  15.         'ECE',
  16.         'SES'
  17.     ], {
  18.         S: 'minecraft:end_stone_bricks',
  19.         E: 'minecraft:end_crystal',
  20.         C: 'naturescompass:naturescompass'
  21.     })
  22.    
  23.     // shapless recipe for Eccentric Tome with books
  24.     event.shapeless(Item.of('eccentrictome:tome', '{"eccentrictome:mods":{adorn:{0:{Count:1b,id:"adorn:guide_book"}},advancedperipherals:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"advancedperipherals:manual"}}},alexsmobs:{0:{Count:1b,id:"alexsmobs:animal_dictionary"}},apotheosis:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"apotheosis:apoth_chronicle"}}},botania:{0:{Count:1b,id:"botania:lexicon"}},byg:{0:{Count:1b,id:"byg:biomepedia"}},cookingforblockheads:{0:{Count:1b,id:"cookingforblockheads:recipe_book"}},cyclic:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"cyclic:cyclic_guide_book"}}},engineersdecor:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"engineersdecor:engineersdecor_manual"}}},evilcraft:{0:{Count:1b,id:"evilcraft:origins_of_darkness"}},immersiveengineering:{0:{Count:1b,id:"immersiveengineering:manual"}},industrialforegoing:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"industrialforegoing:industrial_foregoing"}}},littlelogistics:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"littlelogistics:guide"}}},mysticalagriculture:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"mysticalagriculture:guide"}}},naturesaura:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"naturesaura:book"}}},occultism:{0:{Count:1b,id:"occultism:dictionary_of_spirits"}},productivebees:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"productivebees:guide"}}},securitycraft:{0:{Count:1b,id:"securitycraft:sc_manual"}},silentgear:{0:{Count:1b,id:"silentgear:guide_book"}},solcarrot:{0:{Count:1b,id:"solcarrot:food_book"}},thermal:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"thermal:guidebook"}}}},"eccentrictome:version":1}'), 1 ['minecraft:stick'])
  25.    
  26. })
  27.  
  28. //command to give first players Starting Kit
  29. onEvent('player.logged_in', event => {
  30.     if (!event.player.stages.has('starting_items')) {
  31.         event.player.stages.add('starting_items')
  32.         event.player.give(Item.of('minecraft:written_book', '{author:"thePC001",filtered_title:"Pack Info",pages:[\'{"text":"Hello, and welcome to:\\\\n\\\\nBOIS PACK 6 - \\\\nCogs and Rockets\\\\n\\\\nDeveloped by:\\\\nthePC001\\\\nblockbuster4664\\\\nTheGreenShadow\\\\n\\\\nThis book will provide\\\\nsome information\\\\nuseful to new players\\\\nof the pack."}\',\'{"text":"DARKNESS:\\\\nMinecraft\\\'s minimum light level has been removed in this modpack, meaning unlit spaces will become pitch-black as opposed to dim like in vanilla. Be sure to keep your environment well-lit, as the darkness may consume those who dwell in it too long..."}\',\'{"text":"GUIDES:\\\\nIn addition to the this book, you have been provided with an Eccentric Tome which contains guides from every mod that provides one. To use it, right click and select the book you want to use. To change it back, left click in the air with the book in your hand."}\',\'{"text":"TRADING:\\\\nYou have also been provided with a Simple Shop, which when placed allows you to trade with other players. To set up the shop, place it down and right-click on it with the amount of whatever item you are looking to buy. Then, right-click on it with the amount of (cont.)"}\',\'{"text":"whatever item you\\\'re looking to sell in exchange. This can then be re-stocked by right-clicking the shop with more of the item being sold. To collect your profits, simply left-click the shop. To clear the shop, crouch and left-click. To pick up the shop, empty it, then do the same."}\',\'{"text":"Thank you for playing, and please enjoy the modpack!\\\\n\\\\n-BP6 Dev Team"}\'],title:"Pack Info"}'))
  33.         event.player.give(Item.of('eccentrictome:tome', '{"eccentrictome:mods":{adorn:{0:{Count:1b,id:"adorn:guide_book"}},advancedperipherals:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"advancedperipherals:manual"}}},alexsmobs:{0:{Count:1b,id:"alexsmobs:animal_dictionary"}},apotheosis:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"apotheosis:apoth_chronicle"}}},botania:{0:{Count:1b,id:"botania:lexicon"}},byg:{0:{Count:1b,id:"byg:biomepedia"}},cookingforblockheads:{0:{Count:1b,id:"cookingforblockheads:recipe_book"}},cyclic:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"cyclic:cyclic_guide_book"}}},engineersdecor:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"engineersdecor:engineersdecor_manual"}}},evilcraft:{0:{Count:1b,id:"evilcraft:origins_of_darkness"}},immersiveengineering:{0:{Count:1b,id:"immersiveengineering:manual"}},industrialforegoing:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"industrialforegoing:industrial_foregoing"}}},littlelogistics:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"littlelogistics:guide"}}},mysticalagriculture:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"mysticalagriculture:guide"}}},naturesaura:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"naturesaura:book"}}},occultism:{0:{Count:1b,id:"occultism:dictionary_of_spirits"}},productivebees:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"productivebees:guide"}}},securitycraft:{0:{Count:1b,id:"securitycraft:sc_manual"}},silentgear:{0:{Count:1b,id:"silentgear:guide_book"}},solcarrot:{0:{Count:1b,id:"solcarrot:food_book"}},thermal:{0:{Count:1b,id:"patchouli:guide_book",tag:{"patchouli:book":"thermal:guidebook"}}}},"eccentrictome:version":1}'))
  34.         event.player.give('simpleshops:simple_shop')
  35.         event.player.give('30x minecraft:apple')
  36.         event.player.give('16x minecraft:torch')
  37.     }
  38. })
  39.  
  40. onEvent('item.tags', event => {
  41.     // Get the #forge:cobblestone tag collection and add Diamond Ore to it
  42.     // event.get('forge:cobblestone').add('minecraft:diamond_ore')
  43.  
  44.     // Get the #forge:cobblestone tag collection and remove Mossy Cobblestone from it
  45.     // event.get('forge:cobblestone').remove('minecraft:mossy_cobblestone')
  46. })
Advertisement
Add Comment
Please, Sign In to add comment