Skip to content

<ClearAll> in item variant clears new ItemComponent #16266

@Regalis11

Description

@Regalis11

Discussed in #16260

Originally posted by A2ur3 June 27, 2025

Disclaimers

  • I have searched the issue tracker to check if the issue has already been reported.
  • My issue happened while using mods.

What happened?

<Item identifier="ew_spear" variantof="spear" subcategory="EuropaWar" nonplayerteaminteractable="true" hideinmenus="true">
  <ClearAll>
    <PreferredContainer />
    <Price />
    <Fabricate />
  </ClearAll>
  <ItemComponent>
    <StatusEffect type="OnNotContained" target="This" delay="5" stackable="false">
      <Remove />
    </StatusEffect>
  </ItemComponent>
</Item>

the item won't remove itself after 5 seconds
removing <ClearAll> works

Reproduction steps

  1. showitemxml dirtybomb_showofstrength

Bug prevalence

Just once

Single player or multiplayer?

Single player

-

No response

Version

v1.9.7.0 (Summer Update 2025)

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingCodeProgramming taskModdingModding-related feature request or issue, or a bug that only occurs with modsTicketThe issue has been converted into an issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions