Page 1 of 1

Custom furnace entity can't be smelted text

Posted: Thu Aug 10, 2023 3:48 am
by CaitSith2
TL;DR
Custom furnace prototype "can't smelt" localized text

What ?
A way to specify custom localized "can't be smelted" text for a given furnace prototype, for example, a crusher could say "<item> can't be crushed", or for an incinerator, "<item> can't be incinerated.", or for an air filtering machine, "<item> can't be used as an air filter."
Why ?
In the cases of various entities that are implemented as furnaces, it doesn't make sense in every case to say "<localised_item_name> can't be smelted".

Re: Custom furnace entity can't be smelted text

Posted: Thu Aug 10, 2023 11:07 am
by boskid
That makes a lot of sense. Added for 1.1.89.

Value to provide will be just a `string` which is used as a LocalisedString key. __1__ parameter is the localised name of the item that a player tries to insert to the source stack
Version: 1.1.89 wrote:Modding:
- Added FurnacePrototype::cant_insert_at_source_message_key. (108146)

Re: Custom furnace entity can't be smelted text

Posted: Thu Aug 10, 2023 11:30 am
by curiosity
This is a duplicate of viewtopic.php?f=28&t=2264, actually.