View Issue Details

IDProjectCategoryView StatusLast Update
0000112Medieval EngineersBugpublic2023-01-26 16:57
Reportershad Assigned Toequinox  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.7.2Product Build8CBFD2 
Target Version0.7.4 (unreleased)Fixed in Version0.7.4 (unreleased) 
Summary0000112: BrokenItem not working with TimedDurabilityBehaviorDefinition for durable items
Description

The BrokenItem definitions is supposed to spawn a SerializableDefinitionId in the player's inventory as soon as the original item breaks aka the durability goes to 0. This works fine with all tool behaviors except for TimedDurabilityBehaviorDefinition. In vanilla, this behavior is only used for the torch.

Steps To Reproduce
  • Create a small test mod or edit the vanilla torch item definitions and lower its durability and add a BrokenItem to the HandItemDefinition, i.e.:
  <Definition xsi:type="MyObjectBuilder_HandItemDefinition" Merge="Merge">
    <Id Type="HandItem" Subtype="Torch" />
    <MaxDurability>10</MaxDurability>
    <BrokenItem Type="InventoryItem" Subtype="IngotCopper" />
  </Definition>
  • Start a survival SP game
  • Activate Creative Tools
  • Spawn and equip a torch
  • Wait until it breaks/vanishes and see that there is no broken item spawned in your inventory
Additional Information

Not an issue in vanilla, as there is no BrokenItem defined for the torch, but it would be very useful for mods.

TagsInventory

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-08-11 13:06 shad New Issue
2021-08-11 13:06 shad Tag Attached: Inventory
2021-09-09 21:01 equinox Steps to Reproduce Updated
2021-09-09 21:01 equinox Steps to Reproduce Updated
2021-09-09 21:02 equinox Steps to Reproduce Updated
2021-09-09 21:02 equinox Steps to Reproduce Updated
2021-09-09 21:06 equinox Steps to Reproduce Updated
2021-09-09 21:06 equinox Steps to Reproduce Updated
2021-09-09 21:10 equinox Steps to Reproduce Updated
2021-09-09 21:11 equinox Steps to Reproduce Updated
2021-09-09 21:11 equinox Steps to Reproduce Updated
2021-09-09 21:23 equinox Steps to Reproduce Updated
2022-01-29 21:38 equinox Target Version => 0.7.4 (unreleased)
2022-11-21 22:34 equinox Assigned To => equinox
2022-11-21 22:34 equinox Status new => in progress
2023-01-26 16:57 equinox Status in progress => resolved
2023-01-26 16:57 equinox Resolution open => fixed
2023-01-26 16:57 equinox Fixed in Version => 0.7.4 (unreleased)