this repo has no description

feat: switch back to kubejs

Falxie_ 17aca14f 0c47c809

+213 -111
+54 -26
index.toml
··· 1515 1515 metafile = true 1516 1516 1517 1517 [[files]] 1518 + file = "kubejs/README.txt" 1519 + hash = "02d6feb3afe1d9c96e137f8baaa71de982f1af0a2b37fbcba73f34ee59ebbd4d" 1520 + 1521 + [[files]] 1522 + file = "kubejs/assets/kubejs/textures/block/example_block.png" 1523 + hash = "783d78bd1ee61d3b32273670dff9d82c34cd74c5ae899a10f104f473828d5bbc" 1524 + 1525 + [[files]] 1526 + file = "kubejs/assets/kubejs/textures/item/example_item.png" 1527 + hash = "45a5f56eba6066ad05c70988a32b72c50cfeb6e35857739bd582007011ea002b" 1528 + 1529 + [[files]] 1530 + file = "kubejs/client_scripts/alexsmobs.js" 1531 + hash = "95850f671382aae9b555d5d9fb8ef4901b786679113a4829aaad91df930338b5" 1532 + 1533 + [[files]] 1534 + file = "kubejs/client_scripts/aquaculture.js" 1535 + hash = "5349413d67d2a367728c5dd79566f6c036a30f32835b1d197a82af484e780a82" 1536 + 1537 + [[files]] 1538 + file = "kubejs/client_scripts/naturalist.js" 1539 + hash = "250304ef731d076a9d7ba76fc85a4c75a71105553ca2e7957fdb868506ca4bd3" 1540 + 1541 + [[files]] 1542 + file = "kubejs/config/client.properties" 1543 + hash = "1ee7f36aeb6d6b57a5e8bbe38567860064c2d9dc9458dd3b6ed68344c37c536c" 1544 + 1545 + [[files]] 1546 + file = "kubejs/config/common.properties" 1547 + hash = "13cd0406d4775fbc68c9f5936e1ab06660e9fc4e777073ddfa7cb6e1445861cb" 1548 + 1549 + [[files]] 1550 + file = "kubejs/server_scripts/alexsmobs.js" 1551 + hash = "03fed2739a062d154a0941592d3fb3b5002cf07187eab377177319a8927672a0" 1552 + 1553 + [[files]] 1554 + file = "kubejs/server_scripts/aquaculture.js" 1555 + hash = "216d55b8d932b1a412a27f349e8059604d9932c377593c7306a479109fc3417b" 1556 + 1557 + [[files]] 1558 + file = "kubejs/startup_scripts/script.js" 1559 + hash = "849597780f489579d0c3af2b80d9d1209b152be22e2c270c9085623bbf0a5aea" 1560 + 1561 + [[files]] 1518 1562 file = "mods/abnormals-delight.pw.toml" 1519 1563 hash = "0cfa8e8164d519f22db4acbb3cfcbc39ad05051760985e08558a89dbbceff914" 1520 1564 metafile = true ··· 1717 1761 [[files]] 1718 1762 file = "mods/corpse.pw.toml" 1719 1763 hash = "e4155e11b80301e0dbc76f64deea0f7b73c2e8086782ce8a7cdc5b72b2218172" 1720 - metafile = true 1721 - 1722 - [[files]] 1723 - file = "mods/crafttweaker.pw.toml" 1724 - hash = "a527fbd108976c2a4440bf26556235f2fd23a9090272e8077a3de81a83cbdf56" 1725 1764 metafile = true 1726 1765 1727 1766 [[files]] ··· 1945 1984 metafile = true 1946 1985 1947 1986 [[files]] 1948 - file = "mods/jeitweaker.pw.toml" 1949 - hash = "3293dddac5ba9d8390ca6792ff1668ff52ddc39974a9e9a0c69674e7f4ac7099" 1950 - metafile = true 1951 - 1952 - [[files]] 1953 1987 file = "mods/jer-integration.pw.toml" 1954 1988 hash = "8342d02ffa8c8a5aae481dd7f22475ced3861756a4088e0c9c9a9e78f43cacf2" 1955 1989 metafile = true ··· 1987 2021 [[files]] 1988 2022 file = "mods/krypton-reforged.pw.toml" 1989 2023 hash = "3a8f223c33599ab510da8671b8402239eef9024fb1a148ab3bc422f05e4951c7" 2024 + metafile = true 2025 + 2026 + [[files]] 2027 + file = "mods/kubejs.pw.toml" 2028 + hash = "36d37ce5b263363078240088f6c5f204779474ab6001c5be2866efbfcced24fa" 1990 2029 metafile = true 1991 2030 1992 2031 [[files]] ··· 2120 2159 metafile = true 2121 2160 2122 2161 [[files]] 2162 + file = "mods/rhino.pw.toml" 2163 + hash = "7615d1d69859aadc88bfd81bf58eb8acdb1b64362e4118255dbfd875f9f0fbd1" 2164 + metafile = true 2165 + 2166 + [[files]] 2123 2167 file = "mods/rubidium.pw.toml" 2124 2168 hash = "23f8e7273ed94a07a172e3a5f89d3488dd1ca9ee6d04598814054f96b0db6cf0" 2125 2169 metafile = true ··· 2283 2327 file = "resourcepacks/stay-true.pw.toml" 2284 2328 hash = "c76d5ed5dd44f2422253e3799acdf7de499e6731f42e2bee8c63ff67b0810e13" 2285 2329 metafile = true 2286 - 2287 - [[files]] 2288 - file = "scripts/helpers.zs" 2289 - hash = "71f7d0cce66f749772d4a21939bb26cd6829e8896f573e46e30c176c8b86c0c1" 2290 - 2291 - [[files]] 2292 - file = "scripts/mods/alexsmobs.zs" 2293 - hash = "127a3321b316c04b146e7308374064acc8edc31b6cd4a90c711aae1ad7b6e8a3" 2294 - 2295 - [[files]] 2296 - file = "scripts/mods/aquaculture.zs" 2297 - hash = "93d8544e43f32fa3f0ea372bf6976473176c11ba60dbe02cbd0ea074aa869f5b" 2298 - 2299 - [[files]] 2300 - file = "scripts/mods/naturalist.zs" 2301 - hash = "e64c8e2151d3a0c62c35191593cb6a1540c5b52db0194d969da1b8a2abb93335"
+15
kubejs/README.txt
··· 1 + Find more info on the website: https://kubejs.com/ 2 + 3 + Directory information: 4 + 5 + assets - Acts as a resource pack, you can put any client resources in here, like textures, models, etc. Example: assets/kubejs/textures/item/test_item.png 6 + data - Acts as a datapack, you can put any server resources in here, like loot tables, functions, etc. Example: data/kubejs/loot_tables/blocks/test_block.json 7 + 8 + startup_scripts - Scripts that get loaded once during game startup - Used for adding items and other things that can only happen while the game is loading (Can be reloaded with /kubejs reload_startup_scripts, but it may not work!) 9 + server_scripts - Scripts that get loaded every time server resources reload - Used for modifying recipes, tags, loot tables, and handling server events (Can be reloaded with /reload) 10 + client_scripts - Scripts that get loaded every time client resources reload - Used for JEI events, tooltips and other client side things (Can be reloaded with F3+T) 11 + 12 + config - KubeJS config storage. This is also the only directory that scripts can access other than world directory 13 + exported - Data dumps like texture atlases end up here 14 + 15 + You can find type-specific logs in logs/kubejs/ directory
kubejs/assets/kubejs/textures/block/example_block.png

This is a binary file and will not be displayed.

kubejs/assets/kubejs/textures/item/example_item.png

This is a binary file and will not be displayed.

+24
kubejs/client_scripts/alexsmobs.js
··· 1 + onEvent('jei.hide.items', event => { 2 + event.hide('alexsmobs:spawn_egg_grizzly_bear') 3 + event.hide('alexsmobs:bear_fur') 4 + event.hide('alexsmobs:banner_pattern_bear') 5 + 6 + const carriers = [ 7 + "minecraft:potion", 8 + "minecraft:splash_potion", 9 + "minecraft:lingering_potion", 10 + "minecraft:tipped_arrow" 11 + ] 12 + 13 + const potions = [ 14 + "alexsmobs:knockback_resistance", 15 + "alexsmobs:long_knockback_resistance", 16 + "alexsmobs:strong_knockback_resistance" 17 + ] 18 + 19 + for (const carrier of carriers) { 20 + for (const potion of potions) { 21 + event.hide(Item.of(carrier, { Potion: potion })) 22 + } 23 + } 24 + })
+24
kubejs/client_scripts/aquaculture.js
··· 1 + onEvent('jei.hide.items', event => { 2 + const neptuniumItems = [ 3 + 'aquaculture:neptunium_boots', 4 + 'aquaculture:neptunium_leggings', 5 + 'aquaculture:neptunium_chestplate', 6 + 'aquaculture:neptunium_helmet', 7 + 'aquaculture:neptunium_bow', 8 + 'aquaculture:neptunium_sword', 9 + 'aquaculture:neptunium_hoe', 10 + 'aquaculture:neptunium_axe', 11 + 'aquaculture:neptunium_shovel', 12 + 'aquaculture:neptunium_pickaxe', 13 + 'aquaculture:neptunium_ingot', 14 + 'aquaculture:neptunium_nugget', 15 + 'aquaculture:neptunium_fishing_rod', 16 + 'aquaculture:neptunium_fillet_knife', 17 + 'aquaculture:neptunium_block', 18 + 'aquaculture:neptunes_bounty' 19 + ] 20 + 21 + for (const item of neptuniumItems) { 22 + event.hide(item) 23 + } 24 + })
+4
kubejs/client_scripts/naturalist.js
··· 1 + onEvent('jei.hide.items', event => { 2 + event.hide('naturalist:rattlesnake_spawn_egg') 3 + event.hide('naturalist:elephant_spawn_egg') 4 + })
+15
kubejs/config/client.properties
··· 1 + #KubeJS Client Properties 2 + #Mon Aug 22 03:38:01 PDT 2022 3 + backgroundColor=2E3440 4 + barBorderColor=ECEFF4 5 + exportAtlases=false 6 + menuBackgroundBrightness=64 7 + disableRecipeBook=false 8 + title= 9 + barColor=ECEFF4 10 + overrideColors=false 11 + fmlLogColor=ECEFF4 12 + showTagNames=false 13 + fmlMemoryColor=ECEFF4 14 + menuBackgroundScale=32.0 15 + menuInnerBackgroundBrightness=32
+9
kubejs/config/common.properties
··· 1 + #KubeJS Common Properties 2 + #Mon Aug 22 03:38:02 PDT 2022 3 + announceReload=true 4 + disableClassFilter=false 5 + serverOnly=false 6 + hideServerScriptErrors=false 7 + packmode=default 8 + printRemappedClasses=false 9 + debugInfo=false
+4
kubejs/server_scripts/alexsmobs.js
··· 1 + onEvent('recipes', event => { 2 + event.remove({ output: 'alexsmobs:banner_pattern_bear' }) 3 + event.replaceInput({ mod: 'alexsmobs' }, 'alexsmobs:bear_fur', 'naturalist:bear_fur') 4 + })
+24
kubejs/server_scripts/aquaculture.js
··· 1 + onEvent('recipes', event => { 2 + const neptuniumItems = [ 3 + 'aquaculture:neptunium_boots', 4 + 'aquaculture:neptunium_leggings', 5 + 'aquaculture:neptunium_chestplate', 6 + 'aquaculture:neptunium_helmet', 7 + 'aquaculture:neptunium_bow', 8 + 'aquaculture:neptunium_sword', 9 + 'aquaculture:neptunium_hoe', 10 + 'aquaculture:neptunium_axe', 11 + 'aquaculture:neptunium_shovel', 12 + 'aquaculture:neptunium_pickaxe', 13 + 'aquaculture:neptunium_ingot', 14 + 'aquaculture:neptunium_nugget', 15 + 'aquaculture:neptunium_fishing_rod', 16 + 'aquaculture:neptunium_fillet_knife', 17 + 'aquaculture:neptunium_block', 18 + 'aquaculture:neptunes_bounty' 19 + ] 20 + 21 + for (const item of neptuniumItems) { 22 + event.remove({ output: item }) 23 + } 24 + })
+13
kubejs/startup_scripts/script.js
··· 1 + // priority: 0 2 + 3 + console.info('Hello, World! (You will only see this line once in console, during startup)') 4 + 5 + onEvent('item.registry', event => { 6 + // Register new items here 7 + // event.create('example_item').displayName('Example Item') 8 + }) 9 + 10 + onEvent('block.registry', event => { 11 + // Register new blocks here 12 + // event.create('example_block').material('wood').hardness(1.0).displayName('Example Block') 13 + })
-13
mods/crafttweaker.pw.toml
··· 1 - name = "CraftTweaker" 2 - filename = "CraftTweaker-forge-1.18.2-9.1.185.jar" 3 - side = "both" 4 - 5 - [download] 6 - hash-format = "sha1" 7 - hash = "0423cef3309dddb1c84c007f9ee73038d0653b51" 8 - mode = "metadata:curseforge" 9 - 10 - [update] 11 - [update.curseforge] 12 - file-id = 3918220 13 - project-id = 239197
-13
mods/jeitweaker.pw.toml
··· 1 - name = "JEITweaker" 2 - filename = "JEITweaker-1.18.2-3.0.0.8.jar" 3 - side = "both" 4 - 5 - [download] 6 - hash-format = "sha1" 7 - hash = "7ed20ad37f676c4189edaea740e92220e7240116" 8 - mode = "metadata:curseforge" 9 - 10 - [update] 11 - [update.curseforge] 12 - file-id = 3735545 13 - project-id = 368718
+13
mods/kubejs.pw.toml
··· 1 + name = "KubeJS" 2 + filename = "kubejs-forge-1802.5.4-build.535.jar" 3 + side = "both" 4 + 5 + [download] 6 + hash-format = "sha1" 7 + hash = "2f4d337555ed622fd816e33aeb38d469a922faa7" 8 + mode = "metadata:curseforge" 9 + 10 + [update] 11 + [update.curseforge] 12 + file-id = 3946220 13 + project-id = 238086
+13
mods/rhino.pw.toml
··· 1 + name = "Rhino" 2 + filename = "rhino-forge-1802.1.14-build.225.jar" 3 + side = "both" 4 + 5 + [download] 6 + hash-format = "sha1" 7 + hash = "86db1571ef8c91820adec6e4dd33499c2363942f" 8 + mode = "metadata:curseforge" 9 + 10 + [update] 11 + [update.curseforge] 12 + file-id = 3941209 13 + project-id = 416294
+1 -1
pack.toml
··· 6 6 [index] 7 7 file = "index.toml" 8 8 hash-format = "sha256" 9 - hash = "caf93523f6149e908bb917443ef7be2be8b7cd366f68d4feb617e55f3276d7ce" 9 + hash = "2030020da35428a27f4d119c1642d02b8a60e166b84f107869ccf957d3379366" 10 10 11 11 [versions] 12 12 forge = "40.1.73"
-4
scripts/helpers.zs
··· 1 - public function removeAndHide(item as crafttweaker.api.item.IItemStack) as void { 2 - craftingTable.remove(item); 3 - mods.jei.JEI.hideIngredient(item); 4 - }
-26
scripts/mods/alexsmobs.zs
··· 1 - import crafttweaker.api.recipe.Replacer; 2 - import mods.jei.JEI; 3 - import crafttweaker.api.item.IItemStack; 4 - 5 - removeAndHide(<item:alexsmobs:banner_pattern_bear>); 6 - Replacer.forMods("alexsmobs").replaceFully(<item:alexsmobs:bear_fur>, <item:naturalist:bear_fur>).execute(); 7 - JEI.hideIngredient(<item:alexsmobs:bear_fur>); 8 - 9 - var carriers = [ 10 - <item:minecraft:potion>, 11 - <item:minecraft:splash_potion>, 12 - <item:minecraft:lingering_potion>, 13 - <item:minecraft:tipped_arrow> 14 - ] as IItemStack[]; 15 - 16 - var potions = [ 17 - "alexsmobs:knockback_resistance", 18 - "alexsmobs:long_knockback_resistance", 19 - "alexsmobs:strong_knockback_resistance" 20 - ] as string[]; 21 - 22 - for carrier in carriers { 23 - for potion in potions { 24 - JEI.hideIngredient(carrier.withTag({ Potion: potion })); 25 - } 26 - }
-24
scripts/mods/aquaculture.zs
··· 1 - import crafttweaker.api.item.IItemStack; 2 - 3 - var neptuniumItems = [ 4 - <item:aquaculture:neptunium_boots>, 5 - <item:aquaculture:neptunium_leggings>, 6 - <item:aquaculture:neptunium_chestplate>, 7 - <item:aquaculture:neptunium_helmet>, 8 - <item:aquaculture:neptunium_bow>, 9 - <item:aquaculture:neptunium_sword>, 10 - <item:aquaculture:neptunium_hoe>, 11 - <item:aquaculture:neptunium_axe>, 12 - <item:aquaculture:neptunium_shovel>, 13 - <item:aquaculture:neptunium_pickaxe>, 14 - <item:aquaculture:neptunium_ingot>, 15 - <item:aquaculture:neptunium_nugget>, 16 - <item:aquaculture:neptunium_fishing_rod>, 17 - <item:aquaculture:neptunium_fillet_knife>, 18 - <item:aquaculture:neptunium_block>, 19 - <item:aquaculture:neptunes_bounty> 20 - ] as IItemStack[]; 21 - 22 - for item in neptuniumItems { 23 - removeAndHide(item); 24 - }
-4
scripts/mods/naturalist.zs
··· 1 - import mods.jei.JEI; 2 - 3 - JEI.hideIngredient(<item:naturalist:rattlesnake_spawn_egg>); 4 - JEI.hideIngredient(<item:naturalist:elephant_spawn_egg>);