Skip to content

FEAT: add stuff for increasing stack sizes #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions config/biggerstacks-client.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#Client configs
#Enable number shortening. E.g. 1000000 becomes 1M.
"Enable number shortening" = true
#Disables warning for stack size that is potentially wrong due to behaviour changes.
"STFU Warning" = false
#The colour of the exact count tooltip shown on items.
#Available colours (case insensitive):
#aqua,
#black,
#blue,
#dark_aqua,
#dark_blue,
#dark_gray,
#dark_green,
#dark_purple,
#dark_red,
#gold,
#gray,
#green,
#light_purple,
#red,
#white,
#yellow
"Exact count number colour" = "dark_aqua"

16 changes: 16 additions & 0 deletions config/biggerstacks-local.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

[biggerstacks]
#Whether to increase max transfer rate of some mods to the new stack limit/t.
#E.g. if max stack limit is 1000, it will become 1000 items per tick (where applicable).
#How this is done will vary for each mod
#- Modular routers will require more stack upgrades
#- Pipez does not need this option, it has a config for transfer rate, which you can set to anything
#- Mekanism also has its own config value, though the logistical sorter has its extract rate increased
#- Pretty pipes has its extract rate scaled up
#- XNet can already extract a variable amount, but you will be able to go past 64 to the new maximum stack limit
#- Cyclic still extracts 1 stack (more than 64 items) per tick, but the size of the stack is adjusted
"Increase transfer rate" = true
#DOES NOTHING. IGNORE THIS.
#Range: 1 ~ 1073741823
"Max global stack size" = 1

16 changes: 16 additions & 0 deletions config/biggerstacks-rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<ruleset version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://codeberg.org/PORTB/BiggerStacksConfigLib/raw/branch/master/extra/schema.xsd">
<!-- don't make filled buckets stack -->
<rule stacksize="1"><condition>tag ptdye:stacks_to_1</condition></rule>
<rule stacksize="2"><condition>tag ptdye:stacks_to_2</condition></rule>
<rule stacksize="3"><condition>tag ptdye:stacks_to_3</condition></rule>
<rule stacksize="4"><condition>tag ptdye:stacks_to_4</condition></rule>
<rule stacksize="8"><condition>tag ptdye:stacks_to_8</condition></rule>
<rule stacksize="16"><condition>tag ptdye:stacks_to_16</condition></rule>
<rule stacksize="32"><condition>tag ptdye:stacks_to_32</condition></rule>
<rule stacksize="64"><condition>tag ptdye:stacks_to_64</condition></rule>
<rule stacksize="128"><condition>tag ptdye:stacks_to_128</condition></rule>
<rule stacksize="256"><condition>tag ptdye:stacks_to_256</condition></rule>
<rule stacksize="512"><condition>tag ptdye:stacks_to_512</condition></rule>
<rule stacksize="1024"><condition>tag ptdye:stacks_to_1024</condition></rule>
<rule stacksize="2048"><condition>tag ptdye:stacks_to_2048</condition></rule>
</ruleset>
9 changes: 8 additions & 1 deletion kubejs/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,5 +309,12 @@
"Better dough recipes": true,
"Water from kelp": true,
"Water from kelp and seagrass": true,
"Pizza recipes": true
"Pizza recipes": true,
"Armor, Tools and a few other pieces of equipment stack to 16": true,
"Increase a few trading": true,
"Building blocks stack to a big number": true,
"Building blocks stack to 1024": true,
"Some trade inputs/outputs stack higher": true,
"Building blocks stack to 512": true,
"Generic Devices stack to 128": true
}
30 changes: 30 additions & 0 deletions kubejs/server_scripts/base/featrues/stacksizes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
if(feature("Armor, Tools and a few other pieces of equipment stack to 16")){
addToTag("ptdye:stacks_to_16",[
"#forge:tools",
"#forge:armors",
"#minecraft:boats",
"minecraft:potion",
"minecraft:potion",
"minecraft:potion",
])
}

if(feature("Generic Devices stack to 128")){
addToTag("ptdye:stacks_to_128",[
"#forge:generics/devices",
])
}

if(feature("Building blocks stack to 512")){
addToTag("ptdye:stacks_to_512",[
"#forge:concrete",
"#minecraft:terracotta",
"#ptdye:decorative_block",
])
}

if(feature("Some trade inputs/outputs stack higher")){
addToTag("ptdye:stacks_to_64",[
"minecraft:cake",
])
}
2 changes: 1 addition & 1 deletion kubejs/server_scripts/base/featrues/variantList.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,8 @@ global.variants = [
["quark:iron_plate_stairs", "quark:iron_plate"],
["quark:iron_plate_vertical_slab", "quark:iron_plate"],
["ptdye:gray_fence", "quark:iron_plate"],
["quark:iron_pillar", "quark:iron_plate"],
["ptdye:gray_fence_gate", "quark:iron_plate"],
["quark:iron_plate", "quark:iron_pillar"],
["quark:jasper_bricks_slab", "quark:jasper_bricks"],
["quark:jasper_bricks_stairs", "quark:jasper_bricks"],
["quark:jasper_bricks_vertical_slab", "quark:jasper_bricks"],
Expand Down
1 change: 1 addition & 0 deletions kubejs/server_scripts/base/featrues/variants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if (feature('Remove and add stone cutting for variant recipes')) {
removeRecipe({output: variant[0]})
addStonecutting(variant[0],variant[1])
addStonecutting(variant[1],variant[0])
addToTag("ptdye:decorative_block",variant)
});
}
4 changes: 4 additions & 0 deletions kubejs/server_scripts/base/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@ addToTag("forge:meat/fat", [
"minecraft:porkchop",
"minecraft:salmon",
]);

addToTag("ptdye:primarily_decorative_blocks",[
"#minecraft:concrete"
])