server-dev #9

Merged
leon merged 35 commits from server-dev into Server 2024-04-07 23:13:13 +02:00
3 changed files with 2104 additions and 0 deletions
Showing only changes of commit 94288f7314 - Show all commits

1897
config/quark-common.toml Normal file

File diff suppressed because it is too large Load Diff

75
config/tdnf2.json5 Normal file
View File

@ -0,0 +1,75 @@
{
// When do trees break? (NO_SUPPORT, LOG_BREAK, or USE_TOOL)
"fallCondition": "LOG_BREAK",
// Leaves decay instantly. Ignored (leaves decay) when keepLogsIntact is true.
"fastLeafDecay": true,
// Log blocks move to the ground instead of dropping as items. Can be laggy. Leaves alwasy break when true.
"keepLogsIntact": false,
// Render falling logs? (Affects client side only.) Can be laggy.
"renderFallingLogs": false,
// Falling logs break leaves and other plants on the way down.
"fallingLogsBreakPlants": false,
// Falling logs break glass and other fragile blocks.
"fallingLogsBreakFragile": false,
// Players can sneak (or not sneak) to disable mod for building. (SNEAKING, NOT_SNEAKING, or ALWAYS)
"activeWhen": "NOT_SNEAKING",
// Break large fungal wart blocks and Shroomlamps
"breakFungalLeaves": true,
// Place dropped items directly into player inventory. (Good for skyblock)
"directDeposit": false,
// Apply fortune from axe used to fell a tree. (If an axe was used.)
"applyFortune": true,
// Remove durability from an axe used to fell a tree. (If an axe was used.)
"consumeDurability": true,
// Tools take durability loss from leaves as well as logs.
"leafDurability": false,
// Don't break tools when using durability.
"protectTools": true,
// Don't break blocks placed by players.
"protectPlacedBlocks": true,
// Players gain hunger from felling trees, as if they had broken each log.
"applyHunger": true,
// Players gain hunger from leaves in addition to logs.
"leafHunger": false,
// Max logs that can be broken by non-player mechanics like pistons, fire and TNT.
"nonPlayerLogLimit": 64,
// Logs that can be broken by a player without using a tool.
"playerBaseLogLimit": 8,
// Additional logs that can be broken when player uses a tool, per tier of tool. Set zero to disable.
"toolTierLogBonus": 8,
// When true, log breaking limit is multiplied by Efficency enchantment level.
"enableEfficiencyLogMultiplier": true,
// Consolidate item drops into stacks to prevent lag.
"stackDrops": true,
// Play particles and sounds? Number is max effects per second. 0-20
"effectsPerSecond": 4,
// Maximum number of concurrent breaking tasks in each world. 1-256
"maxJobsPerWorld": 16,
// Max log/leaf blocks to break per second, per tree. 1 - 2560
"maxBreaksPerSecond": 640,
// Max percentage of each server tick that can be used by TDNF in each world. 1 - 5
"tickBudget": 1,
// Max number of active falling block entities. 1 - 64
"maxFallingBlocks": 16,
// Tree cutting jobs will be abandoned if they take longer than this number of seconds. Use larger values if breaking speed is slow. 20-1800
"jobTimeoutSeconds": 360,
// IDs of modded blocks to be handled the same as Minecraft big mushrooms. Not strictly needed if the block is in the LOGS tag or is a subtype of MushroomBlock.
"moddedMushroomBlocks": [
"byg:weeping_milkcap_mushroom_block",
"byg:green_mushroom_block",
"byg:soul_shroom_stem",
"byg:death_cap_mushroom_block"
],
// IDs of modded blocks to handle the same as vanilla Warped/Crimson stems. Activates dropping of wart blocks / shroomlights.
"moddedFungusLogs": [
"cinderscapes:umbral_stem",
"byg:sythian_stems"
],
// IDs of modded blocks to handle the same as vanilla Warped/Crimson wart blocks and shroomlights.
"moddedFungusLeaves": [
"cinderscapes:umbral_flesh_block",
"cinderscapes:umbral_wart_block",
"byg:sythian_wart_block",
"byg:shulkren_wart_block"
]
}

132
config/vtweaks-common.toml Normal file
View File

@ -0,0 +1,132 @@
[block]
#Allows the player to re-light certain blocks like Candles and Campfires (defined by the block using the `lit` blockstate) using torches or other items in the tag `vtweaks:ignition_item`
enableTorchLighting = true
enableCropTweaks = true
#Allows for uneaten cake to drop on break
enableCakeDrop = true
[block.chopdown]
#Trees fall down (like, actually not just like lumbering). Credit to Ternsip's impl (https://www.curseforge.com/minecraft/mc-mods/chopdown)
enableTreeChopDown = false
#The number of logs above the one broken to trigger the chopdown effect
#Range: > 1
chopDownLogRequirement = 3
#The radius that this tweak will use to attempt to find leaves. Set this to a large number to detect larger trees (may cause lag)
#Range: > 1
chopdownSearchRadius = 64
#If set to true, ChopDown will only work when the player is using the right tool for the log
requiresRightTool = false
[client]
#If enabled, all bees will always be half-sized. Does not affect breeding or hitboxes
enableSmallBees = true
#Enable colored particles for challenger mobs (dependent on particle setting as well)
enableChallengerMobParticles = true
[entity]
#If set to "OWNER", this will prevent owners of pets from attacking their own pet. If set to "ALL", this prevents all players from attacking anyone's pet
#Allowed Values: DISABLED, OWNER, ALL
enablePetFriendlyFireTweak = "OWNER"
#Allows any vtweaks:clear_glass, or glow ink sac, to be activated on an item frame while sneaking to make the item frame transparent or glowing respectively.
enableItemFrameTweak = false
#When any Creeper (or entity with EntityType tag #forge:creepers) explodes, all blocks destroyed will plop back into place after a few seconds!
ungriefCreepers = true
#Allows chicken feathers to be plucked w/ shears
enableFeatherPlucking = true
#The amount of time (in Milliseconds) between plucks. Defaults to 10 minutes.
#Range: 1 ~ 9223372036854775807
featurePluckingCooldown = 600000
[entity.challengers]
#A data-driven way to make some special mobs with abilities, effects, specialized loot and more!
enableChallengerMobs = true
#This controls the overall chance for V-Tweaks to attempt converting a monster to a Challenger.
#This chance is applied before any Challenger Mob weights or entity filters.
#Range: 0.0 ~ 1.0
challengerMobGlobalChance = 0.25
[entity.trader]
#If enabled, any valuable tools / items lost forever via Cactus, Lava, Void, etc. might be found by the next Wandering Trader and put up for sale!
#Valuable items are determined by the vtweaks:valuable tag and, if the item can be enchanted and the config option wanderingTraderRecoverySaveUnenchantedGear is set to true, is enchanted.
wanderingTraderRecoveryEnabled = true
#Whether or not to show a silly message when interacting with a trader that has that player's items
enableFlavorText = true
#Determines if a destroyed #vtweaks:valuable should still be saved if it *can* be enchanted but isn't
saveUnenchantedGear = false
#The maximum number of a player's lost items will be sold by a Wandering Trader each visit
#Range: > 1
numItemsToRestore = 5
#The minimum amount of emeralds a recovered item should cost
#Range: 1 ~ 128
minEmeraldCost = 24
#The maximum amount of emeralds a recovered item should cost
#Range: 1 ~ 128
maxEmeraldCost = 92
#The chance that a given Wandering Trader will offer lost valuables for sale
#Range: 0.0 ~ 1.0
chanceToSellValuable = 1.0
[item]
[item.tooltips]
#Show tool durability on item hover
#Allowed Values: NEVER, WITH_SHIFT, ALWAYS
durabilityTooltipSetting = "WITH_SHIFT"
[item.tooltips.food]
#Show food hunger & saturation on item hover
#Allowed Values: NEVER, WITH_SHIFT, ALWAYS
foodTooltipSetting = "WITH_SHIFT"
#Modifies the number of hunger & saturation points rendered (specifically for Hunger Strike).
#The original hunger value is multiplied by this value, so 42x means 2 times as much hunger/saturation will render, and 0.5 means half as much hunger/saturation will render.
#Range: 0.0 ~ 3.4028234663852886E38
foodTooltipMultiplier = 1.0
#Modifies the color of a tooltip for a food that gives no effects on consumption.
#Uses HEX Web Colors which you can pick from here: https://dv2ls.com/colpic
foodTooltipColor = "#00AA00"
#Modifies the color of a tooltip for a food that gives buffs on consumption.
#Uses HEX Web Colors which you can pick from here: https://dv2ls.com/colpic
foodTooltipPositiveColor = "#AA00AA"
#Modifies the color of a tooltip for a food that gives debuffs on consumption.
#Uses HEX Web Colors which you can pick from here: https://dv2ls.com/colpic
foodTooltipNegativeColor = "#AA0000"
#Modifies the color of the saturation tooltip.
#Uses HEX Web Colors which you can pick from here: https://dv2ls.com/colpic
foodTooltipSaturationColor = "#AA0000"
#If a food has a custom color, use that color instead of the defined color regardless of the buffs/debuffs the food gives
useOriginalFoodTooltipColor = true
[player]
#Feather Falling IV or above directs 100% of fall damage to boots
enableFeatherFallTweak = true
#Prevents any drops dropped by the player on death from despawning
enablePlayerDeathDropSafety = false
[recipes]
#Makes all anvil tool repairs always cost 1 level of XP
enableCheapAnvilRepair = true
#Allows you to throw things into specific fluids to convert them - by default this is just Concrete Powder this feature can be extended using Data Packs.
enableFluidConversionRecipes = true
[world]
#Disables thunder storms, fixing glitched lighting from thunder and other side-effects
enableStormTweak = false
[world.peacefulsurface]
#Prevents mobs from spawning above sea level unless it's a new moon
enablePeacefulSurface = true
#The lowest Y-level which mobs will be prevented from spawning
#Range: > -2147483648
peacefulSurfaceMinY = 60
#Peaceful Surface will only apply on nights whose moon phases are contained in this list (by default, all nights except for New Moons are going to be peaceful).
#Options can include: FULL, WANING_GIBBOUS, LAST_QUARTER, WANING_CRESCENT, NEW, WAXING_CRESCENT, FIRST_QUARTER, WAXING_GIBBOUS
moonPhasesToApplyTo = ["FULL", "WANING_GIBBOUS", "LAST_QUARTER", "WANING_CRESCENT", "WAXING_CRESCENT", "FIRST_QUARTER", "WAXING_GIBBOUS"]
#All changes made here require a game restart.
[mixins]
#If enabled, this tweak prevents cactus from destroying items that run into it
enableCactusItemProtection = false
#If enabled, allows splash potions of water to behave the same as throwing an item in water via V-Tweaks' Fluid Conversion Recipes
enableSplashPotionTweak = true