Translations:Modding:Content Tutorial Simple Recipe/47/en

From Vintage Story Wiki
Revision as of 13:13, 28 March 2024 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

When it comes to creating recipes, you do not want to have to create 9 seperate recipes where each one accepts a different hammer, so you can use a wildcard. A wildcard allows a modder to group all these objects together using an asterisk ( * ) in its code property. By using "hammer-*", the game allows any object who's code begins with "hammer-" to be valid for this recipe. Note that you should still include the hyphen in the code, as using "hammer*" will result in being able to use any hammer and also any hammerhead items.