From 2b9d504b6d56126ac57d76e8eedf35e731ecc693 Mon Sep 17 00:00:00 2001 From: DancingSnow <1121149616@qq.com> Date: Wed, 22 May 2024 23:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ftb=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E7=9A=84=E9=BB=98=E8=AE=A4=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/scripts/build.py | 2 +- .gitignore | 4 +- defaultconfigs/.gitignore | 5 + .../ftbchunks/client-config.snbt | 99 +++++++------- defaultconfigs/ftbchunks/ftbchunks-world.snbt | 124 ++++++++++++++++++ .../ftbultimine/ftbultimine-client.snbt | 26 ++++ .../ftbultimine/ftbultimine-server.snbt | 65 +++++++++ local/.gitignore | 7 - 8 files changed, 274 insertions(+), 58 deletions(-) create mode 100644 defaultconfigs/.gitignore rename {local => defaultconfigs}/ftbchunks/client-config.snbt (96%) create mode 100644 defaultconfigs/ftbchunks/ftbchunks-world.snbt create mode 100644 defaultconfigs/ftbultimine/ftbultimine-client.snbt create mode 100644 defaultconfigs/ftbultimine/ftbultimine-server.snbt delete mode 100644 local/.gitignore diff --git a/.github/workflows/scripts/build.py b/.github/workflows/scripts/build.py index 8016256..3c05818 100644 --- a/.github/workflows/scripts/build.py +++ b/.github/workflows/scripts/build.py @@ -69,7 +69,7 @@ def main(): shutil.copytree('config', 'build/overrides/config') shutil.copytree('kubejs', 'build/overrides/kubejs') - shutil.copytree('local', 'build/overrides/local') + shutil.copytree('defaultconfigs', 'build/overrides/defaultconfigs') # 替换任务书为本地键的版本 shutil.copytree( diff --git a/.gitignore b/.gitignore index 0190a2a..4f14459 100644 --- a/.gitignore +++ b/.gitignore @@ -32,8 +32,8 @@ modpack.cfg !mods/ !mods/** -!local -!local/** +!defaultconfigs/ +!defaultconfigs/** *.bak *.log diff --git a/defaultconfigs/.gitignore b/defaultconfigs/.gitignore new file mode 100644 index 0000000..8b385b7 --- /dev/null +++ b/defaultconfigs/.gitignore @@ -0,0 +1,5 @@ +ftbessentials-server.snbt + +ftblibrary/ftblibrary-client.snbt +ftbquests/client-config.snbt +ftbxmodcompat/ftbxmodcompat.snbt \ No newline at end of file diff --git a/local/ftbchunks/client-config.snbt b/defaultconfigs/ftbchunks/client-config.snbt similarity index 96% rename from local/ftbchunks/client-config.snbt rename to defaultconfigs/ftbchunks/client-config.snbt index e944c8e..b036224 100644 --- a/local/ftbchunks/client-config.snbt +++ b/defaultconfigs/ftbchunks/client-config.snbt @@ -1,24 +1,26 @@ +# Default config file that will be copied to local\ftbchunks\client-config.snbt if it doesn't exist! +# Just copy any values you wish to override in here! { advanced: { # Enables debug info # Default: false debug_info: false - + # Advanced option. Change how often the minimap will refresh icons # Default: 500 # Range: 0 ~ 10000 minimap_icon_update_timer: 500 - + # Advanced option. How often map render update will be queued # Default: 60 # Range: 1 ~ 600 rerender_queue_ticks: 60 - + # Advanced option. Max tasks that can queue up # Default: 100 # Range: 1 ~ 10000 task_queue_max: 100 - + # Advanced option. How often queued tasks will run # Default: 4 # Range: 1 ~ 300 @@ -28,11 +30,11 @@ # Default: 32 # Range: 0 ~ 2147483647 autorelease_on_map_close: 32 - + # Constrain maximum map zoom-out based on number of explored regions and available memory # Default: true max_zoom_constraint: true - + # Periodically release region data for non-recently-used regions to save memory (units of seconds, 0 disables releasing # Default: 300 # Range: 0 ~ 2147483647 @@ -44,62 +46,62 @@ # Default: "blend_5x5" # Valid values: "none", "blend_3x3", "blend_5x5", "blend_7x7", "blend_9x9", "blend_11x11", "blend_13x13", "blend_15x15" biome_blend: "blend_5x5" - + # Chunk grid overlay in large map # Default: false chunk_grid: false - + # Show claimed chunks on the map # Default: true claimed_chunks_on_map: true - + # Advanced option. Foliage darkness # Default: 50 # Range: 0 ~ 255 foliage_darkness: 50 - + # Advanced option. Grass darkness # Default: 50 # Range: 0 ~ 255 grass_darkness: 50 - + # Different ways to render map # Default: "none" # Valid values: "none", "night", "topography", "blocks", "light_sources" map_mode: "none" - + # Noise added to map to make it look less plastic # Default: 0.05 # Range: 0.0 ~ 0.5 noise: 0.05d - + # Only show entities that are on the surface # Default: true only_surface_entities: true - + # Show your own claimed chunks on the map # Default: true own_claimed_chunks_on_map: true - + # Reduces color palette to 256 colors # Default: false reduced_color_palette: false - + # Color intensity # Default: 1.0 # Range: 0.0 ~ 1.0 saturation: 1.0d - + # Shadow intensity # Default: 0.1 # Range: 0.0 ~ 0.3 shadows: 0.1d - + # How many blocks should height checks skip in water. 0 means flat water, ignoring terrain # Default: 8 # Range: 0 ~ 128 water_height_factor: 8 - + # Advanced option. Water visibility # Default: 220 # Range: 0 ~ 255 @@ -109,100 +111,100 @@ # Show biome under minimap # Default: true biome: true - + # Blurs minimap # Default: "auto" # Valid values: "auto", "on", "off" blur_mode: "auto" - + # Adds NWSE compass inside minimap # Default: true compass: true - + # Enable minimap # Default: false enabled: false - + # Show entities on minimap # Default: true entities: true - + # Show entity heads on minimap # Default: true entity_heads: true - + # Minimap font scaling (values not a multiple of 0.5 may look bad) # Default: 0.5 # Range: 0.1 ~ 5.0 font_scale: 0.5d - + # Entities in minimap will be larger # Default: false large_entities: false - + # Minimap will not rotate # Default: true locked_north: true - + # Show player heads on minimap # Default: true player_heads: true - + # Enables minimap to show up in corner # Default: "top_right" # Valid values: "bottom_left", "left", "top_left", "top_right", "right", "bottom_right" position: "top_right" - + # Applied a conditional check to the offset. When set to anything other that None, the offset will apply only to the selected minimap position. # When set to none and the maps offset is greater than 0, the offset will apply to all directions # Default: "none" # Valid values: "bottom_left", "left", "top_left", "top_right", "right", "bottom_right", "none" position_offset_condition: "none" - + # Changes the maps X offset from it's origin point. When on the Left, the map will be pushed out from the left, then from the right when on the right. # Default: 0 # Range: -∞ ~ +∞ position_offset_x: 0 - + # Changes the maps X offset from it's origin point. When on the Left, the map will be pushed out from the left, then from the right when on the right. # Default: 0 # Range: -∞ ~ +∞ position_offset_y: 0 - + # Size minimap proportional to screen width (and scale) # Default: true proportional: true - + # Scale of minimap # Default: 1.0 # Range: 0.25 ~ 4.0 scale: 1.0d - + # Always show player on minimap, even when rotation not locked # Default: true show_player_when_unlocked: true - + # Draw a square minimap instead of a circular one # Default: false square: false - + # Minimap visibility # Default: 255 # Range: 0 ~ 255 visibility: 255 - + # Show waypoints on minimap # Default: true waypoints: true - + # Show XYZ under minimap # Default: true xyz: true - + # Show zone (claimed chunk or wilderness) under minimap # Default: true zone: true - + # Zoom distance of the minimap # Default: 1.0 # Range: 1.0 ~ 4.0 @@ -213,38 +215,39 @@ # Default: 0 # Range: 0 ~ 2147483647 death_waypoint_autoremove_distance: 0 - + # Enables creation of death waypoints # Default: true death_waypoints: true - + # Show waypoints in world # Default: true in_world_waypoints: true - + # Minimum distance before waypoint dots start to fade # Default: 1.0 # Range: 1.0 ~ 200.0 waypoint_dot_fade_distance: 1.0d - + # Minimum distance before waypoint beacons start to fade # Default: 12.0 # Range: 1.0 ~ 200.0 waypoint_fade_distance: 12.0d - + # How close player crosshair needs to be to in-world waypoints to show waypoint labels # Default: 1.0 # Range: 1.0 ~ 10.0 waypoint_focus_distance: 1.0d - + # How much do in-world waypoints enlarge when the player crosshair is close # Default: 2.0 # Range: 1.0 ~ 10.0 waypoint_focus_scale: 2.0d - + # Maximum distance at which waypoints are drawn # Default: 5000.0 # Range: 1.0 ~ 2.147483647E9 waypoint_max_distance: 5000.0d } } + diff --git a/defaultconfigs/ftbchunks/ftbchunks-world.snbt b/defaultconfigs/ftbchunks/ftbchunks-world.snbt new file mode 100644 index 0000000..b304bfd --- /dev/null +++ b/defaultconfigs/ftbchunks/ftbchunks-world.snbt @@ -0,0 +1,124 @@ +# Default config file that will be copied to saves\新的世界 (1)\serverconfig\ftbchunks-world.snbt if it doesn't exist! +# Just copy any values you wish to override in here! + +{ + # Forced modes won't let players change their ally settings + # Default: "default" + # Valid values: "default", "forced_all", "forced_none" + ally_mode: "default" + + # Dimension ID's where chunks may not be claimed. Add "minecraft:the_end" to this list if you want to disable chunk claiming in The End, or "othermod:*" to disable chunk claiming in *all* dimensions added by "othermod" + # Default: [] + claim_dimension_blacklist: [ ] + + # Dimension ID's where chunks may be claimed. If non-empty, chunks may be claimed *only* in these dimensions (and the dimension is not in "claim_dimension_blacklist"). Same syntax as for "claim_dimension_blacklist". + # Default: [] + claim_dimension_whitelist: [ ] + + # Disables all land protection. Useful for private servers where everyone is trusted and claims are only used for force-loading + # Default: false + disable_protection: false + + # Override to disable/enable fake players like miners and auto-clickers globally. + # Default will check this setting for each team + # Default: "check" + # Valid values: "check", "deny", "allow" + fake_players: "check" + + # Minimap for clients connecting to this server will be disabled + # Default: false + force_disable_minimap: false + + # Control how force-loaded chunks work. + # NEVER: only allow chunk force-loading if the owning team has at least one online player. + # ALWAYS: always allow force-loading, even if no players are online. + # DEFAULT: allow force-loading IF the team has at least one player with the 'ftbchunks.chunk_load_offline' FTB Ranks permission. + # Default: "default" + # Valid values: "default", "always", "never" + force_load_mode: "default" + + # Hard limit for the number of chunks a team can claim, regardless of how many members. Default of 0 means no hard limit. + # Default: 0 + # Range: 0 ~ 2147483647 + hard_team_claim_limit: 0 + + # Hard limit for the number of chunks a team can force-load, regardless of how many members. Default of 0 means no hard limit. + # Default: 0 + # Range: 0 ~ 2147483647 + hard_team_force_limit: 0 + + # If true, "Location Visibility" team settings are ignored, and all players can see each other anywhere on the map. + # Default: false + location_mode_override: false + + # Interval in ticks to send updates to clients with long-range player tracking data. + # Lower values mean more frequent updates but more server load and network traffic; be careful with this, especially on busy servers. + # Setting this to 0 disables long-range tracking. + # Default: 20 + # Range: 0 ~ 2147483647 + long_range_tracker_interval: 20 + + # Max claimed chunks. + # You can override this with FTB Ranks 'ftbchunks.max_claimed' permission + # Default: 500 + # Range: -∞ ~ +∞ + max_claimed_chunks: 50000 + + # Max force loaded chunks. + # You can override this with FTB Ranks 'ftbchunks.max_force_loaded' permission + # Default: 25 + # Range: -∞ ~ +∞ + max_force_loaded_chunks: 2500 + + # Maximum time (in real-world days) where if no player in a team logs in, the team automatically loses their claims. + # Prevents chunks being claimed indefinitely by teams who no longer play. + # Default of 0 means no automatic loss of claims. + # Default: 0.0 + # Range: 0.0 ~ 3650.0 + max_idle_days_before_unclaim: 0.0d + + # Maximum time (in real-world days) where if no player in a team logs in, any forceloaded chunks owned by the team are no longer forceloaded. + # Prevents chunks being forceloaded indefinitely by teams who no longer play. + # Default of 0 means no automatic loss of forceloading. + # Default: 0.0 + # Range: 0.0 ~ 3650.0 + max_idle_days_before_unforce: 0.0d + + # Maximum time in days to keep logs of prevented fakeplayer access to a team's claims. + # Default: 7 + # Range: 1 ~ 2147483647 + max_prevented_log_age: 7 + + # Requires you to claim chunks in order to edit and interact with blocks + # Default: false + no_wilderness: false + + # Dimension ID's where the no_wilderness rule is enforced - building is only allowed in claimed chunks. If this is non-empty, it overrides the 'no_wilderness' setting. + # Default: [] + no_wilderness_dimensions: [ ] + + # Method by which party claim & force-load limits are calculated. + # LARGEST: use the limits of the member with the largest limits + # SUM: add up all the members' limits + # OWNER: use the party owner's limits only + # AVERAGE: use the average of all members' limits. + # Default: "largest" + # Valid values: "largest", "owner", "sum", "average" + party_limit_mode: "largest" + + # When true, standard FTB Chunk explosion protection is applied in protected chunks when the source of the explosion cannot be determined + # (Ghast fireballs are a common case - vanilla supplies a null entity source) + # Default: true + protect_unknown_explosions: true + + # Should PvP combat be allowed in claimed chunks? Default is ALWAYS; NEVER prevents it in all claimed chunks; PER_TEAM allows teams to decide if PvP is allowed in their claims + # Default: "always" + # Valid values: "always", "never", "per_team" + pvp_mode: "always" + + # If true, the player must have the 'ftbchunks_mapping' Game stage to be able to use the map and minimap. + # Requires KubeJS and/or Gamestages to be installed. + # Default: false + require_game_stage: false +} + diff --git a/defaultconfigs/ftbultimine/ftbultimine-client.snbt b/defaultconfigs/ftbultimine/ftbultimine-client.snbt new file mode 100644 index 0000000..628f3f1 --- /dev/null +++ b/defaultconfigs/ftbultimine/ftbultimine-client.snbt @@ -0,0 +1,26 @@ +# Default config file that will be copied to local\ftbultimine-client.snbt if it doesn't exist! +# Just copy any values you wish to override in here! + +{ + # Maximum number of blocks the white outline should be rendered for + # Keep in mind this may get *very* laggy for large amounts of blocks! + # Default: 256 + # Range: 0 ~ 2147483647 + render_outline: 512 + + # When holding the Ultimine key, must the player also be sneaking to show the shapes menu? + # Default: true + require_sneak_for_menu: true + + # When displaying the shape selection menu by holding the Ultimine key + # and sneaking at the same time, the number of shape names to display + # above and below the selected shape + # Default: 2 + # Range: 1 ~ 5 + shape_menu_context_lines: 2 + + # Manual x offset of FTB Ultimine overlay, required for some modpacks + # Default: -1 + # Range: -∞ ~ +∞ + x_offset: -1 +} diff --git a/defaultconfigs/ftbultimine/ftbultimine-server.snbt b/defaultconfigs/ftbultimine/ftbultimine-server.snbt new file mode 100644 index 0000000..c04daba --- /dev/null +++ b/defaultconfigs/ftbultimine/ftbultimine-server.snbt @@ -0,0 +1,65 @@ +# Default config file that will be copied to saves\新的世界 (1)\serverconfig\ftbultimine-server.snbt if it doesn't exist! +# Just copy any values you wish to override in here! + +{ + # This is an advanced option, that you better leave alone This will stop ultimining on first block that it can't mine, rather than skipping it. + # Default: false + cancel_on_block_break_fail: false + + # Hunger multiplied for each block mined with ultimine + # Default: 20.0 + # Range: 0.0 ~ 10000.0 + exhaustion_per_block: 20.0d + + # Amount of experience taken per block mined (fractional values allowed) + # Default: 0.0 + # Range: 0.0 ~ 20000.0 + experience_per_block: 0.0d + + # Max amount of blocks that can be ultimined at once + # Default: 64 + # Range: 0 ~ 32768 + max_blocks: 512 + + # These tags will be considered the same block when checking for blocks to Ultimine in shapeless mining mode + # Default: ["minecraft:base_stone_overworld", "c:*_ores", "forge:ores/*"] + merge_tags: [ + "minecraft:base_stone_overworld" + "c:*_ores" + "forge:ores/*" + ] + + # These tags will be considered the same block when checking for blocks to Ultimine in shaped mining modes + # Default: ["*"] + merge_tags_shaped: ["*"] + + # This will stop mining if tool reaches X durability. It's possible it won't work with special tool types. + # Default: 0 + # Range: 0 ~ 100 + prevent_tool_break: 0 + + # Require a damageable tool, or an item in the ftbultimine:tools tag, to ultimine. + # Default: false + require_tool: false + + # Right-click with an axe with the Ultimine key held to strip multiple logs and scrape/unwax copper blocks + # Default: true + right_click_axe: true + + # Right-click crops with the Ultimine key held to harvest multiple crop blocks + # Default: true + right_click_harvesting: true + + # Right-click with a hoe with the Ultimine key held to till multiple grass/dirt blocks into farmland + # Default: true + right_click_hoe: true + + # Right-click with a shovel with the Ultimine key held to flatten multiple grass/dirt blocks into dirt paths + # Default: true + right_click_shovel: true + + # Cooldown in ticks between successive uses of the ultimine feature + # Default: 0 + # Range: 0 ~ 9223372036854775807 + ultimine_cooldown: 0L +} diff --git a/local/.gitignore b/local/.gitignore deleted file mode 100644 index 95b0866..0000000 --- a/local/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -ftbchunks/** -ftbquests/** -kubejs/** -ftblibrary-client.snbt -ftbultimine-client.snbt - -!ftbchunks/client-config.snbt \ No newline at end of file