#modded items that share ids with gamedata items

7 messages · Page 1 of 1 (latest)

turbid sail
#

making an item with the same id as one from gamedata will make the item appear in the debug menu beside the gamedata version, but always spawn the gamedata version, which remains unaffected by the modded item's code.
there are two ways i can think of handling this

  • give a linter error stating the modded item will be unspawnable
  • allow the modded item to override the gamedata item (i want this one pls 👉👈)
graceful wraith
#

issue with overriding the gamedata item is that if multiple mods tried overriding the same item, what would happen

turbid sail
#

yea i was thinking about that after :/

#

maybe introduce a mod order (highest mod gets dibs on their items) for the player to configure but that makes modding more complex for everyone

edgy knoll
turbid sail