tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.ID.ItemID.Sets Class Reference

Static Public Attributes

static bool[] AlsoABuildingItem = Factory.CreateBoolSet(3031, 205, 1128, 207, 206, 3032, 849, 3620, 509, 851, 850, 3625, 510, 1071, 1543, 1072, 1544, 1100, 1545, 4820, 4872)
 
static bool[] AnimatesAsSoul = Factory.CreateBoolSet(575, 547, 520, 548, 521, 549, 3580, 3581)
 Use in conjunction with Main.RegisterItemAnimation to enable its animation in the world
 
static BannerEffect[] BannerStrength = Factory.CreateCustomSet(new BannerEffect(1f), (short)3838, DD2BannerEffect, (short)3845, DD2BannerEffect, (short)3837, DD2BannerEffect, (short)3844, DD2BannerEffect, (short)3843, DD2BannerEffect, (short)3839, DD2BannerEffect, (short)3840, DD2BannerEffect, (short)3842, DD2BannerEffect, (short)3841, DD2BannerEffect, (short)3846, DD2BannerEffect)
 
static float[] BonusAttackSpeedMultiplier = Factory.CreateFloatSet(1f, 1827f, 0.5f, 3013f, 0.25f, 3106f, 0.33f)
 
static bool[] BossBag
 Set for all boss bags. Causes bags to drop dev armor.
If your bag is pre-hardmode, don't forget to use the PreHardmodeLikeBossBag set in conjuction with this one. More...
 
static bool[] CanBePlacedOnWeaponRacks = Factory.CreateBoolSet(3196, 166, 235, 3115, 167, 2896, 3547, 580, 937, 4423, 4824, 4825, 4826, 4827, 4908, 4909, 4094, 4039, 4092, 4093, 4587, 4588, 4589, 4590, 4591, 4592, 4593, 4594, 4595, 4596, 4597, 4598, 905, 1326, 3225, 2303, 2299, 2290, 2317, 2305, 2304, 2313, 2318, 2312, 2306, 2308, 2319, 2314, 2302, 2315, 2307, 2310, 2301, 2298, 2316, 2309, 2321, 2297, 2300, 2311, 2420, 2438, 2437, 2436, 4401, 4402, 2475, 2476, 2450, 2477, 2478, 2451, 2479, 2480, 2452, 2453, 2481, 2454, 2482, 2483, 2455, 2456, 2457, 2458, 2459, 2460, 2484, 2472, 2461, 2462, 2463, 2485, 2464, 2465, 2486, 2466, 2467, 2468, 2487, 2469, 2488, 2470, 2471, 2473, 2474, 4393, 4394)
 
static ? bool[] CanBeQuickusedOnGamepad
 
static bool[] CanFishInLava = Factory.CreateBoolSet(2422)
 
static bool[] CanGetPrefixes = Factory.CreateBoolSet(true, 267, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 576, 1307, 1596, 1597, 1598, 1599, 1600, 1601, 1602, 1603, 1604, 1605, 1606, 1607, 1608, 1609, 1610)
 
static bool[] CatchingTool
 Set for catching tools (bug net-type items which can catch critters).
If you want your catching tool to be able to catch the Underworld's lava critters, don't forget to use the LavaproofCatchingTool set in conjunction with this one. More...
 
static bool[] ColorfulDyeValues = new bool[0]
 
static bool[] CommonCoin = Factory.CreateBoolSet(71, 72, 73, 74)
 
static bool[] Deprecated = Factory.CreateBoolSet(2783, 2785, 2782, 2773, 2775, 2772, 2778, 2780, 2777, 3463, 3465, 3462, 2881, 3847, 3848, 3849, 3850, 3851, 3850, 3861, 3862, 4010, 4058, 5013, 4722, 3978)
 
static Color[][] DrinkParticleColors
 
static bool[] ExoticPlantsForDyeTrade = Factory.CreateBoolSet(3385, 3386, 3387, 3388)
 
static int[] ExtractinatorMode = Factory.CreateIntSet(-1, 424, 0, 1103, 0, 3347, 3347)
 
static SetFactory Factory = new SetFactory(ItemLoader.ItemCount)
 
static FlowerPacketInfo[] flowerPacketInfo
 
static Color[][] FoodParticleColors
 
static ? bool[] ForceConsumption
 
static ? bool[] ForcesBreaksSleeping
 
static int[] GamepadExtraRange = Factory.CreateIntSet(0, 2797, 20, 3278, 4, 3285, 6, 3279, 8, 3280, 8, 3281, 9, 3262, 10, 3317, 10, 3282, 10, 3315, 10, 3316, 11, 3283, 12, 3290, 13, 3289, 11, 3284, 13, 3286, 13, 3287, 18, 3288, 18, 3291, 17, 3292, 18, 3389, 21)
 
static bool[] GamepadSmartQuickReach = Factory.CreateBoolSet(2798, 2797, 3030, 3262, 3278, 3279, 3280, 3281, 3282, 3283, 3284, 3285, 3286, 3287, 3288, 3289, 3290, 3291, 3292, 3315, 3316, 3317, 3389, 2798, 65, 1931, 3570, 2750, 3065, 3029, 4956, 5065, 1256, 1244, 3014, 113, 218, 495)
 
static bool[] GamepadWholeScreenUseRange = Factory.CreateBoolSet(1326, 1256, 1244, 3014, 113, 218, 495, 114, 496, 2796, 494, 3006, 65, 1931, 3570, 2750, 3065, 3029, 3030, 4381, 4956, 5065, 1309, 2364, 2365, 2551, 2535, 2584, 1157, 2749, 1802, 2621, 3249, 3531, 3474, 2366, 1572, 3569, 3571, 4269, 4273, 4281, 5119, 3611, 1299, 1254)
 
static bool[] Glowsticks = Factory.CreateBoolSet(282, 286, 3002, 3112, 4776)
 
static bool[] gunProj = Factory.CreateBoolSet(3475, 3540, 3854, 3930)
 
static bool[] HasAProjectileThatHasAUsabilityCheck = Factory.CreateBoolSet(false, 4367, 4368, 4369, 4370, 4371, 4379, 4610, 4611, 4612, 4613, 4648, 4649, 4650, 4651, 4669, 4670, 4671, 4674, 4675, 4676, 4677, 4681, 4683, 4684)
 
static bool[] IgnoresEncumberingStone = Factory.CreateBoolSet(58, 184, 1734, 1735, 1867, 1868, 3453, 3454, 3455, 4143)
 
static bool[] IsAKite = Factory.CreateBoolSet(false, 4367, 4368, 4369, 4370, 4371, 4379, 4610, 4611, 4612, 4613, 4648, 4649, 4650, 4651, 4669, 4670, 4671, 4674, 4675, 4676, 4677, 4681, 4683, 4684)
 
static bool[] IsAMaterial = Factory.CreateBoolSet()
 
static bool[] IsAPickup = Factory.CreateBoolSet(58, 184, 1734, 1735, 1867, 1868, 3453, 3454, 3455)
 
static bool[] IsChainsaw = Factory.CreateBoolSet(387, 3098, 1232, 383, 384, 2778, 1197, 1190, 2783, 3463, 1204, 2773, 2342, 579)
 
static bool[] IsDrill = Factory.CreateBoolSet(388, 1231, 385, 386, 2779, 1196, 1189, 2784, 3464, 1203, 2774, 579)
 
static bool[] IsFishingCrate = Factory.CreateBoolSet(2334, 2335, 2336, 3203, 3204, 3205, 3206, 3207, 3208, 4405, 4407, 4877, 5002, 3979, 3980, 3981, 3982, 3983, 3984, 3985, 3986, 3987, 4406, 4408, 4878, 5003)
 Only checked for vanilla IDs, but encouraged to set it on your modded crates for potential cross-mod support
 
static bool[] IsFishingCrateHardmode = Factory.CreateBoolSet(3979, 3980, 3981, 3982, 3983, 3984, 3985, 3986, 3987, 4406, 4408, 4878, 5003)
 
static bool[] IsFood = Factory.CreateBoolSet(353, 357, 1787, 1911, 1912, 1919, 1920, 2266, 2267, 2268, 2425, 2426, 2427, 3195, 3532, 4009, 4010, 4011, 4012, 4013, 4014, 4015, 4016, 4017, 4018, 4019, 4020, 4021, 4022, 4023, 4024, 4025, 4026, 4027, 4028, 4029, 4030, 4031, 4032, 4033, 4034, 4035, 4036, 4037, 967, 969, 4282, 4283, 4284, 4285, 4286, 4287, 4288, 4289, 4290, 4291, 4292, 4293, 4294, 4295, 4296, 4297, 4403, 4411, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 5009, 5042, 5041, 5092, 5093)
 
static bool[] IsLavaBait = Factory.CreateBoolSet(4849, 4845, 4847)
 
static bool[] IsPaintScraper = Factory.CreateBoolSet(1100, 1545)
 
static bool[] ItemIconPulse = Factory.CreateBoolSet(520, 521, 575, 549, 548, 547, 3456, 3457, 3458, 3459, 3580, 3581)
 
static bool[] ItemNoGravity = Factory.CreateBoolSet(520, 521, 575, 549, 548, 547, 3453, 3454, 3455, 3456, 3457, 3458, 3459, 3580, 3581, 4143)
 
static int[] ItemsForStuffCannon
 
static int[] ItemSpawnDecaySpeed = Factory.CreateIntSet(1, 58, 4, 184, 4, 1867, 4, 1868, 4, 1734, 4, 1735, 4)
 
static bool[] ItemsThatAllowRepeatedRightClick = Factory.CreateBoolSet(false, 3384, 3858, 3852)
 
static List< int > ItemsThatAreProcessedAfterNormalContentSample
 
static bool[] ItemsThatCountAsBombsForDemolitionistToSpawn = Factory.CreateBoolSet(false, 168, 2586, 3116, 166, 235, 3115, 167, 2896, 3547, 3196, 4423, 1130, 1168, 4824, 4825, 4826, 4827, 4908, 4909)
 
static int[] KillsToBanner = Factory.CreateIntSet(50, 3838, 1000, 3845, 200, 3837, 500, 3844, 200, 3843, 50, 3839, 200, 3840, 100, 3842, 200, 3841, 100, 3846, 50, 2971, 200, 2982, 100, 2994, 100)
 
static bool[] LavaproofCatchingTool
 Set for catching tools which can catch the Underworld's lava critters.
Don't forget to use the CatchingTool set in conjunction with this one. More...
 
static int[] LockOnAimAbove = Factory.CreateIntSet(0, 1256, 15, 1244, 15, 3014, 15, 3569, 15, 3571, 15)
 
static ? float[] LockOnAimCompensation
 
static bool[] LockOnIgnoresCollision = Factory.CreateBoolSet(64, 3570, 1327, 3006, 1227, 788, 756, 1228, 65, 3065, 3473, 3051, 5065, 1309, 2364, 2365, 2551, 2535, 2584, 1157, 2749, 1802, 2621, 3249, 3531, 3474, 2366, 1572, 4269, 4273, 4281, 4607, 5069, 5114, 5119, 3014, 3569, 3571)
 
static bool[] NebulaPickup = Factory.CreateBoolSet(3453, 3454, 3455)
 
static bool[] NeverAppearsAsNewInInventory = Factory.CreateBoolSet(71, 72, 73, 74)
 
static int[] NewItemSpawnPriority = Factory.CreateIntSet(0, 2, 200, 3, 150, 61, 150, 836, 150, 409, 150, 593, 200, 664, 100, 834, 100, 833, 100, 835, 100, 169, 100, 370, 100, 1246, 100, 408, 100, 3271, 150, 3277, 150, 3339, 150, 3276, 150, 3272, 150, 3274, 150, 3275, 150, 3338, 150, 176, 100, 172, 200, 424, 50, 1103, 50, 3087, 100, 3066, 100)
 
static List< int > NonColorfulDyeItems
 
static bool[] PreHardmodeLikeBossBag
 Set for pre-hardmode boss bags, except it also contains the Queen Slime's Boss Bag. Affects the way dev armor drops function, making it only drop in special world seeds.
Don't forget to use the BossBag set in conjuction with this one. More...
 
static bool[] SingleUseInGamepad = Factory.CreateBoolSet(8, 427, 3004, 523, 433, 429, 974, 1333, 1245, 3114, 430, 3045, 428, 2274, 431, 432, 4383, 4384, 4385, 4386, 4387, 4388)
 
static bool[] SkipsInitialUseSound = Factory.CreateBoolSet(false, 2350, 4870)
 
static int[] SortingPriorityBossSpawns = Factory.CreateIntSet(-1, 43, 1, 560, 2, 70, 3, 1331, 3, 361, 4, 5120, 5, 1133, 5, 4988, 6, 544, 7, 556, 8, 557, 9, 2495, 10, 2673, 11, 602, 12, 1844, 13, 1958, 14, 1293, 15, 2767, 16, 4271, 16, 3601, 17, 1291, 18, 109, 19, 29, 20, 50, 21, 3199, 21, 3124, 22)
 
static int[] SortingPriorityExtractibles = Factory.CreateIntSet(-1, 997, 4, 3347, 3, 1103, 2, 424, 1)
 
static int[] SortingPriorityMaterials = Factory.CreateIntSet(-1, 3467, 100, 3460, 99, 3458, 98, 3456, 97, 3457, 96, 3459, 95, 3261, 94, 1508, 93, 1552, 92, 1006, 91, 947, 90, 1225, 89, 1198, 88, 1106, 87, 391, 86, 366, 85, 1191, 84, 1105, 83, 382, 82, 365, 81, 1184, 80, 1104, 79, 381, 78, 364, 77, 548, 76, 547, 75, 549, 74, 575, 73, 521, 72, 520, 71, 175, 70, 174, 69, 3380, 68, 1329, 67, 1257, 66, 880, 65, 86, 64, 57, 63, 56, 62, 117, 61, 116, 60, 706, 59, 702, 58, 19, 57, 13, 56, 705, 55, 701, 54, 21, 53, 14, 52, 704, 51, 700, 50, 22, 49, 11, 48, 703, 47, 699, 46, 20, 45, 12, 44, 999, 43, 182, 42, 178, 41, 179, 40, 177, 39, 180, 38, 181, 37)
 
static int[] SortingPriorityPainting = Factory.CreateIntSet(-1, 1543, 100, 1544, 99, 1545, 98, 1071, 97, 1072, 96, 1100, 95)
 
static int[] SortingPriorityRopes = Factory.CreateIntSet(-1, 965, 1, 85, 1, 210, 1, 3077, 1, 3078, 1)
 
static int[] SortingPriorityTerraforming = Factory.CreateIntSet(-1, 779, 100, 780, 99, 783, 98, 781, 97, 782, 96, 784, 95, 422, 94, 423, 93, 3477, 92, 66, 91, 67, 90, 2886, 89)
 
static int[] SortingPriorityWiring = Factory.CreateIntSet(-1, 510, 103, 3625, 102, 509, 101, 851, 100, 850, 99, 3612, 98, 849, 97, 4485, 96, 4484, 95, 583, 94, 584, 93, 585, 92, 538, 91, 513, 90, 3545, 90, 853, 89, 541, 88, 529, 88, 1151, 87, 852, 87, 543, 87, 542, 87, 3707, 87, 2492, 86, 530, 85, 581, 84, 582, 84, 1263, 83)
 
static bool[] Spears
 Set for easily defining weapons as spears.
Only used for vanilla spears to make sure they still scale with attack speed (though it's encouraged to set this for your spears as well, for cross-mod support).
More...
 
static int[] StaffMinionSlotsRequired = Factory.CreateIntSet(1)
 
static int[] TextureCopyLoad = Factory.CreateIntSet(-1, 3665, 48, 3666, 306, 3667, 328, 3668, 625, 3669, 626, 3670, 627, 3671, 680, 3672, 681, 3673, 831, 3674, 838, 3675, 914, 3676, 952, 3677, 1142, 3678, 1298, 3679, 1528, 3680, 1529, 3681, 1530, 3682, 1531, 3683, 1532, 3684, 2230, 3685, 2249, 3686, 2250, 3687, 2526, 3688, 2544, 3689, 2559, 3690, 2574, 3691, 2612, 3692, 2613, 3693, 2614, 3694, 2615, 3695, 2616, 3696, 2617, 3697, 2618, 3698, 2619, 3699, 2620, 3700, 2748, 3701, 2814, 3703, 3125, 3702, 3180, 3704, 3181, 3705, 3665, 3706, 3665, 4713, 4712)
 
static float[] ToolTipDamageMultiplier = Factory.CreateFloatSet(1f, 162f, 2f, 801f, 2f, 163f, 2f, 220f, 2f, 389f, 2f, 1259f, 2f, 4272f, 2f, 5011f, 2f, 5012f, 2f)
 
static bool[] Torches = Factory.CreateBoolSet(8, 427, 3004, 523, 433, 429, 974, 1333, 1245, 3114, 430, 3045, 428, 2274, 431, 432, 4383, 4384, 4385, 4386, 4387, 4388)
 
static bool[] TrapSigned = Factory.CreateBoolSet(false, 3665, 3666, 3667, 3668, 3669, 3670, 3671, 3672, 3673, 3674, 3675, 3676, 3677, 3678, 3679, 3680, 3681, 3682, 3683, 3684, 3685, 3686, 3687, 3688, 3689, 3690, 3691, 3692, 3693, 3694, 3695, 3696, 3697, 3698, 3699, 3700, 3701, 3703, 3702, 3704, 3705, 3706, 3886, 3887, 3950, 3976, 4164, 4185, 4206, 4227, 4266, 4268, 4585, 4713)
 
static bool[] UsesCursedByPlanteraTooltip = Factory.CreateBoolSet(false, 1533, 1534, 1535, 1536, 1537, 4714)
 
static bool[] WaterTorches = Factory.CreateBoolSet(523, 1333, 4384)
 
static short[] Workbenches
 
static bool[] Yoyo = Factory.CreateBoolSet(3262, 3278, 3279, 3280, 3281, 3282, 3283, 3284, 3285, 3286, 3287, 3288, 3289, 3290, 3291, 3292, 3315, 3316, 3317, 3389)
 

Member Data Documentation

◆ BossBag

bool [] Terraria.ID.ItemID.Sets.BossBag
static
Initial value:
= Factory.CreateBoolSet(
KingSlimeBossBag, EyeOfCthulhuBossBag, EaterOfWorldsBossBag, BrainOfCthulhuBossBag, QueenBeeBossBag,
SkeletronBossBag, WallOfFleshBossBag, DestroyerBossBag, TwinsBossBag, SkeletronPrimeBossBag,
PlanteraBossBag, GolemBossBag, FishronBossBag, CultistBossBag, MoonLordBossBag,
BossBagBetsy, FairyQueenBossBag, QueenSlimeBossBag, DeerclopsBossBag
)

Set for all boss bags. Causes bags to drop dev armor.
If your bag is pre-hardmode, don't forget to use the PreHardmodeLikeBossBag set in conjuction with this one.

◆ CanBeQuickusedOnGamepad

? bool [] Terraria.ID.ItemID.Sets.CanBeQuickusedOnGamepad
static
Initial value:
= Factory.CreateCustomSet<bool?>(null, new object[18] {
(short)50,
true,
(short)3199,
true,
(short)3124,
true,
(short)2350,
true,
(short)2351,
true,
(short)29,
true,
(short)109,
true,
(short)1291,
true,
(short)4870,
true
})

◆ CatchingTool

bool [] Terraria.ID.ItemID.Sets.CatchingTool
static
Initial value:
= Factory.CreateBoolSet(
BugNet,
GoldenBugNet,
FireproofBugNet
)

Set for catching tools (bug net-type items which can catch critters).
If you want your catching tool to be able to catch the Underworld's lava critters, don't forget to use the LavaproofCatchingTool set in conjunction with this one.

◆ ForceConsumption

? bool [] Terraria.ID.ItemID.Sets.ForceConsumption
static
Initial value:
= Factory.CreateCustomSet<bool?>(null, new object[12] {
(short)2350,
false,
(short)4870,
false,
(short)2351,
false,
(short)2756,
false,
(short)4343,
true,
(short)4344,
true
})

◆ ForcesBreaksSleeping

? bool [] Terraria.ID.ItemID.Sets.ForcesBreaksSleeping
static
Initial value:
= Factory.CreateCustomSet<bool?>(null, new object[6] {
(short)1991,
true,
(short)4821,
true,
(short)3183,
true
})

◆ ItemsThatAreProcessedAfterNormalContentSample

List<int> Terraria.ID.ItemID.Sets.ItemsThatAreProcessedAfterNormalContentSample
static
Initial value:
= new List<int> {
1533,
1534,
1535,
1536,
1537
}

◆ LavaproofCatchingTool

bool [] Terraria.ID.ItemID.Sets.LavaproofCatchingTool
static
Initial value:
= Factory.CreateBoolSet(
GoldenBugNet,
FireproofBugNet
)

Set for catching tools which can catch the Underworld's lava critters.
Don't forget to use the CatchingTool set in conjunction with this one.

◆ LockOnAimCompensation

? float [] Terraria.ID.ItemID.Sets.LockOnAimCompensation
static
Initial value:
= Factory.CreateCustomSet<float?>(null, new object[10] {
(short)1336,
0.2f,
(short)157,
0.29f,
(short)2590,
0.4f,
(short)3821,
0.4f,
(short)160,
0.4f
})

◆ NonColorfulDyeItems

List<int> Terraria.ID.ItemID.Sets.NonColorfulDyeItems
static
Initial value:
= new List<int> {
3599,
3530,
3534
}

◆ PreHardmodeLikeBossBag

bool [] Terraria.ID.ItemID.Sets.PreHardmodeLikeBossBag
static
Initial value:
= Factory.CreateBoolSet(
KingSlimeBossBag, EyeOfCthulhuBossBag, EaterOfWorldsBossBag, BrainOfCthulhuBossBag, QueenBeeBossBag,
SkeletronBossBag, WallOfFleshBossBag, QueenSlimeBossBag, DeerclopsBossBag
)

Set for pre-hardmode boss bags, except it also contains the Queen Slime's Boss Bag. Affects the way dev armor drops function, making it only drop in special world seeds.
Don't forget to use the BossBag set in conjuction with this one.

◆ Spears

bool [] Terraria.ID.ItemID.Sets.Spears
static
Initial value:
= Factory.CreateBoolSet(
Spear,
Trident,
Swordfish,
ThunderSpear,
TheRottedFork,
DarkLance,
CobaltNaginata,
PalladiumPike,
MythrilHalberd,
OrichalcumHalberd,
AdamantiteGlaive,
TitaniumTrident,
ObsidianSwordfish,
Gungnir,
MushroomSpear,
MonkStaffT2,
ChlorophytePartisan,
NorthPole
)

Set for easily defining weapons as spears.
Only used for vanilla spears to make sure they still scale with attack speed (though it's encouraged to set this for your spears as well, for cross-mod support).