Confirmedusers
261
edits
m (Alphabetize list) |
(Document loadFromPropertiesCombine) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The world properties are stored in the <code>assets/survival/worldproperties</code> folder. They are used to help fill in the [[Modding:Registry_Object_JSON_Parsing#Enumerating_variants|variantgroups]] field. Instead of directly specifying every state in the variant group, the states can be loaded from a world property through the <code>loadFromProperties</code> key. The states from multiple world properties can be added with the <code>loadFromPropertiesCombine</code> key, which takes an array of strings. The <code>states</code> key can still be optionally added to the variant group to specify additional states. | |||
For example, the following creates a variant group named orientation. It contains 5 states. <code>north</code>, <code>east</code>, <code>south</code>, and <code>west</code> are loaded from the <code>abstract/horizontalorientation</code> world property. <code>up</code> is added to the list of states. | |||
<syntaxhighlight lang="json"> | |||
variantgroups: [ | |||
{ code: "orientation", states: ["up"], loadFromProperties: "abstract/horizontalorientation" } | |||
], | |||
</syntaxhighlight> | |||
Unwanted variant states can be [[Modding:Registry_Object_JSON_Parsing#Filtering_out_variants|filtered]] out with the <code>skipVariants</code> property. Or all states that do not match an expression can be filtered out with the <code>allowedVariants</code> property. | |||
<table class="wikitable"> | <table class="wikitable"> | ||
<tr style="background-color: rgba(0,0,0,0.2);"> | <tr style="background-color: rgba(0,0,0,0.2);"> | ||
Line 10: | Line 21: | ||
<tr> | <tr> | ||
<td>abstract/coating</td> | <td>abstract/coating</td> | ||
<td style="font-style: italic;">n, e, s, w, u, d, ud, ns, ew, nd, ed, sd, wd, su, wu, nu, eu, es, sw, nw, ne, nwd, ned, esd, swd, nwu, neu, esu, swu, nsd, ewd, sud, wud, nud, eud, nsu, ewu, nes, esw, nsw, new, newd, nesd, eswd, nswd, eswu, nswu, newu, nesu, nesw, ewud, nsud, neud, esud, swud, nwud, neswd, neswu, newud, nesud, eswud, nswud, neswud</td> | <td style="font-style: italic;">n, e, s, w, u, d, ud, ns, ew, nd, ed, sd, wd, su, wu, nu, eu, es, sw, nw, ne, nwd, ned, esd, swd, nwu, neu, esu, swu, nsd, ewd, sud, wud, nud, eud, nsu, ewu, nes, esw, nsw, new, newd, nesd, eswd, nswd, eswu, nswu, newu, nesu, nesw, ewud, nsud, neud, esud, swud, nwud, neswd, neswu, newud, nesud, eswud, nswud, neswud</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>abstract/fertility</td> | <td>abstract/fertility</td> | ||
<td style="font-style: italic;">verylow, low, medium, high</td> | <td style="font-style: italic;">verylow, low, medium, compost, high</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 34: | Line 45: | ||
<tr> | <tr> | ||
<td>block/flower</td> | <td>block/flower</td> | ||
<td style="font-style: italic;">catmint, forgetmenot, edelweiss, heather, horsetail, orangemallow, wilddaisy, westerngorse, cowparsley, | <td style="font-style: italic;">catmint, cornflower, forgetmenot, edelweiss, heather, horsetail, orangemallow, wilddaisy, westerngorse, cowparsley, goldenpoppy, lilyofthevalley, woad, redtopgrass</td> | ||
</tr> | |||
<tr> | |||
<td>block/fruit</td> | |||
<td style="font-style: italic;">blueberry, cranberry, redcurrant, whitecurrant, blackcurrant, saguaro, pineapple, redapple, pinkapple, yellowapple, cherry, peach, pear, orange, mango, breadfruit, lychee, pomegranate</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 46: | Line 61: | ||
<tr> | <tr> | ||
<td>block/metal</td> | <td>block/metal</td> | ||
<td style="font-style: italic;">bismuth, bismuthbronze, blackbronze, brass, chromium, copper, gold, iron, lead, platinum, | <td style="font-style: italic;">bismuth, bismuthbronze, blackbronze, brass, chromium, copper, cupronickel, electrum, gold, iron, meteoriciron, lead, molybdochalkos, platinum, nickel, silver, stainlesssteel, steel, tin, tinbronze, titanium, uranium, zinc</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>block/mushroom</td> | <td>block/mushroom</td> | ||
<td style="font-style: italic;">flyagaric, | <td style="font-style: italic;">flyagaric, fieldmushroom, almondmushroom, bitterbolete, blacktrumpet, chanterelle, commonmorel, deathcap, devilstooth, devilbolete, earthball, elfinsaddle, golddropmilkcap, greencrackedrussula, indigomilkcap, jackolantern, kingbolete, lobster, orangeoakbolete, paddystraw, puffball, redwinecap, saffronmilkcap, violetwebcap, witchhat, beardedtooth, chickenofthewoods, dryadsaddle, pinkoyster, tinderhoof, whiteoyster, reishi, funeralbell, deerear, livermushroom, pinkbonnet, shiitake</td> | ||
</tr> | |||
<tr> | |||
<td>block/ore-gem-cut</td> | |||
<td style="font-style: italic;">diamond, emerald, peridot</td> | |||
</tr> | |||
<tr> | |||
<td>block/ore-gem-rough</td> | |||
<td style="font-style: italic;">diamond,emerald,olivine_peridot</td> | |||
</tr> | |||
<tr> | |||
<td>block/ore-graded</td> | |||
<td style="font-style: italic;">nativecopper,limonite,quartz_nativegold,galena,cassiterite,chromite,ilmenite,sphalerite,quartz_nativesilver,galena_nativesilver,bismuthinite,magnetite,hematite,malachite,pentlandite,uranium,wolframite,rhodochrosite</td> | |||
</tr> | |||
<tr> | |||
<td>block/ore-nugget</td> | |||
<td style="font-style: italic;">nativecopper,limonite,nativegold,galena,cassiterite,chromite,ilmenite,sphalerite,nativesilver,bismuthinite,magnetite,hematite,malachite,pentlandite,uranium,wolframite,rhodochrosite</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>block/ore</td> | <td>block/ore-ungraded</td> | ||
<td style="font-style: italic;">alum,lapislazuli,corundum,anthracite,borax,cinnabar,lignite,bituminouscoal,sylvite,quartz,olivine,sulfur,fluorite,graphite,kernite,phosphorite</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>block/painting</td> | <td>block/painting</td> | ||
<td style="font-style: italic;">howl,elk,underwater,prey,forestdawn,fishandtherain,bogfort,castleruin,cow,hunterintheforest,seraph,sleepingwolf,sunkenruin,traveler,oldvillage,lastday,sodhouse</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>block/rock</td> | <td>block/rock</td> | ||
<td style="font-style: italic;">andesite,chalk,chert,conglomerate,limestone,claystone,granite,sandstone,shale,basalt,peridotite,phyllite,slate,bauxite</td> | |||
</tr> | |||
<tr> | |||
<td>block/rockwithdeposit</td> | |||
<td style="font-style: italic;">andesite,chalk,chert,conglomerate,limestone,claystone,granite,sandstone,shale,basalt,peridotite,phyllite,slate,obsidian,kimberlite,scoria,tuff,bauxite,halite,suevite,whitemarble,redmarble,greenmarble</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>block/tallgrass</td> | <td>block/tallgrass</td> | ||
<td style="font-style: italic;">veryshort,short,mediumshort,medium,tall,verytall,eaten</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>block/ | <td>block/toolmetal</td> | ||
<td style="font-style: italic;">bismuth,bismuthbronze,blackbronze,brass,copper,gold,iron,meteoriciron,lead,molybdochalkos,silver,steel,tinbronze</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>block/ | <td>block/wood</td> | ||
<td style="font-style: italic;">birch,oak,maple,pine,acacia,kapok,baldcypress,larch,redwood,ebony,walnut,purpleheart</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
{{Navbox/modding|Vintage Story}} |