| Marker | Name | memo |
|---|---|---|
| Red Brackets | LockedSlot | from vanilla. |
| Green Brackets | UnlockedToolbeltSlot | MoveAll/etc can move items from Toolbelt. |
| Orange Icon | ItemClassLock | By Item class. |
%APPDATA%\7DaysToDie\Saves\[Map]\[Save]\Player\[PlayerID]_TywConfig\[ModName])[Folder of 7dtd exe]\Mods\[ModName]\)
| Header | At | Example | Function |
|---|---|---|---|
| [none] | Label | Unsorted | Simple label. Does nothing. |
| [none] | File | resourceSewingKit | UnlocalizedName(ItemClassName) exact matching without header. |
| @ | Both | @Sewing Kit | Localized name exact matching. |
| / | Both | /ammo | Regex ItemClassName matching from head(/^ammo/). Partial match. |
| = | Both | =Ammo | Include PatternFile(Ammo.txt) |
| ! | Both | !ammoGasCan !/modArmor !@Localized Name |
Negate match. Matched item is not QuickStacked. |
| # | Label | #Reserved | Ignore this chest from QuickStack/restocking. |
| Middle | At | Example | Function |
|---|---|---|---|
| # | Both | /modDye # dye | All text after ‘#’ consider as comment. |
| $ | Both | /food.+$IsIngredient == true | ConditionalExpression |
| % | Label | /modGunMelee %2 /modGun %1 /modMelee /mod %-1 |
Container priority. Orderby descending. default=0. |
<ITEM_PATTERN>$<ATTR>[:<PARAM>] [<OP> <VALUE>]| Attribute | Type | memo |
|---|---|---|
| IsIngredient | bool | Has recipe which use this. |
| HasRecipe | bool | Can craft with recipe. |
| Quality | int | |
| PercentUsesLeft | float | 0.0-1.0 |
| Prop:propName | Property tag value. |
==, !=, <=, >=, < , >| string Operators | function |
|---|---|
| ^= | StartsWith |
| $= | EndsWith |
| *= | Contains |
| ~= | Contains(CSV) |
| type | value example |
|---|---|
| bool | true, false |
| int | 0,1,2,-1,-2 |
| float | 0.1, 3f |
| string | “foo”, bar |
PatternFiles\[basename].txt# All mods(Attachments)
/mod
# All ammo but gas can
!ammoGasCan
/ammo
# Seeds
/treePlanted
/planted.*1$
/DFseed
# All you can do is eat it
/food.+$IsIngredient == false
# Melee items which have longshaft
/melee.+$Prop:Tags ~= longshaft
[NUM](,num,...) <ItemClassName>| NUM | Amount | memo |
|---|---|---|
| [empty] | StackMax | Empty means 1 full stack(StackMax) |
| 1 < NUM <= StackMax | NUM | Exact integer number till StackMax |
| 0.0s < NUM <= 1.0s | NUM*StackMax | Less than equal 1.0 |
| 2s, 3s, … | n*StackMax | Interger greater than 2 |
| -1 | ClassLocked. Not restocked nor QuickStacked |