CivMC / FactoryMod

Configurable factories for automating item production - Built for Paper 1.16.5
Other
0 stars 11 forks source link

Items named in anvils cannot be wordbanked #38

Open MrJeremyFisher opened 1 year ago

MrJeremyFisher commented 1 year ago

Naming an item in an anvil prevents it from being wordbanked unless the existing name is cleared. I believe this is a side effect of a desire to make wordbanks permanent as expressed by admins in the past.

drekamor commented 1 year ago

I'm not sure it would be possible to avoid this. They're no ways to distinct a wordbank from a renamed item

MrJeremyFisher commented 1 year ago

It wouldn't be backwards compatible but wordbanking an item could add something to its data container that signifies it's been wordbanked. Another option that could work for backwards compatibility is checking if the name is coloured.

drekamor commented 1 year ago

I also though about checking if it has a colour, I didn't know you can't use formatting codes in an anvil though so discarded that idea

drekamor commented 1 year ago

https://github.com/CivMC/FactoryMod/pull/39