<entitymappings>
	
<!--
	templates:
	
	<entitymapping name="">
		<entitymatch>
			<case equals="">
				<action type="display-model">" />
			</case>
		</entitymatch>
	</entitymapping>
	
	<autoentitymapping name="" />
	
	<autoentitymapping name="" modelname="" />
	
	<nomodel name="" />

-->	
	

	
<!-- environment -->	
<!-- A simple case. We want the model "turnip" to be shown for the entity of type "turnip" -->
	<entitymapping name="turnip">
		<entitymatch>
			<case>
				<caseparam type="equals">turnip</caseparam>
				<action type="display-model">turnip</action>
			</case>
		</entitymatch>
	</entitymapping>
	
<!-- For convenience we also provide the "autoentitymapping" element, which maps a single model to an entity type of the same name. The result of this will be the same structure as the turnip. -->
	<autoentitymapping name="acorn" />
	
<!-- The autoentitymapping element also has an optional "modelname" attribute, which allows you to select a different model to map to the entity type. -->
	<autoentitymapping name="carrot" />
	
	<entitymapping name="fern">
		<entitymatch>
			<case>
				<caseparam type="equals">fern</caseparam>
				<action type="display-model">fern</action>
			</case>
		</entitymatch>
	</entitymapping>	
	<autoentitymapping name="flower" modelname="camelia" />
	
	
	<entitymapping name="boulder">
		<entitymatch>
			<case>
				<caseparam type="equals">boulder</caseparam>
				<action type="display-model">graniteA</action>
				<attributematch attribute="style" >
					<case>
						<caseparam type="equals">a</caseparam>
						<action type="display-model">graniteA</action>
					</case>
					<case>
						<caseparam type="equals">b</caseparam>
						<action type="display-model">graniteB</action>
					</case>
					<case>
						<caseparam type="equals">c</caseparam>
						<action type="display-model">graniteC</action>
					</case>
					<case>
						<caseparam type="equals">d</caseparam>
						<action type="display-model">graniteD</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>	
	<autoentitymapping name="stone" modelname="boulder" />
	<!-- We want the model "boulder" to be used for the entity "boulder". However, there are four different boulder meshes, which the model defines as four different parts. Depending on attribute "style" a different part will be shown. We assume that "style" is one of "a", "b", "c" or "d". Since the parts in the model are defined to belong to the same group (not shown in this file), only one part will be shown at the same time. -->
<!--	<entitymapping name="boulder">
		<entitymatch>
			<case>
				<caseparam type="equals">boulder</caseparam>
				<action type="display-model">boulder</action>
				<attributematch attribute="style" >
					<case>
						<caseparam type="equals">a</caseparam>
						<action type="display-part">boulders_A</action>
					</case>
					<case>
						<caseparam type="equals">b</caseparam>
						<action type="display-part">boulders_B</action>
					</case>
					<case>
						<caseparam type="equals">c</caseparam>
						<action type="display-part">boulders_C</action>
					</case>
					<case>
						<caseparam type="equals">d</caseparam>
						<action type="display-part">boulders_D</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>-->
	
	<!-- An alternative to the previous boulder mapping is to instead have each boulder mesh in its own model file. The mapping would then be like this. -->
	<!--	<entitymapping name="boulder">
		<entitymatch>
			<case equals="boulder">
				<attributematch attribute="style" >
					<case equals="a">
						<action type="display-model">boulderA" />
					</case>
					<case equals="b">
						<action type="display-model">boulderB" />
					</case>
					<case equals="c">
						<action type="display-model">boulderkC" />
					</case>
					<case equals="d">
						<action type="display-model">boulderD" />
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>
	-->
	
	<autoentitymapping name="fire" />
	<entitymapping name="ocean">
		<entitymatch>
			<case>
				<caseparam type="equals">ocean</caseparam>
				<action type="display-ocean" />
			</case>
		</entitymatch>
	</entitymapping>
				
	<autoentitymapping name="lumber" />
	<entitymapping name="board">
		<entitymatch>
			<case>
				<caseparam type="equals">board</caseparam>
				<action type="display-model">board</action>
				<action type="display-part">long</action>
				<attributematch attribute="style" >
					<case>
						<caseparam type="equals">long</caseparam>
						<action type="display-part">long</action>
					</case>
					<case>
						<caseparam type="equals">short</caseparam>
						<action type="display-part">short</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>	
	<autoentitymapping name="twobyfour" />
	
	<entitymapping name="mushroom">
		<entitymatch>
			<case>
				<caseparam type="equals">mushroom</caseparam>
				<action type="display-model">amanita</action>
				<attributematch attribute="style">
					<case>
						<caseparam type="equals">stocky</caseparam>
						<action type="display-model">amanita</action>
					</case>
					<case>
						<caseparam type="equals">pointy</caseparam>
						<action type="display-model">galerina</action>
					</case>
				</attributematch>
				<!-- The parts are identical for both types of meshes. -->
				<attributematch attribute="species">
					<case>
						<caseparam type="equals">amanita</caseparam>
						<action type="display-part">amanita</action>
					</case>
					<case>
						<caseparam type="equals">galerina</caseparam>
						<action type="display-part">galerina</action>
					</case>
					<case>
						<caseparam type="equals">blue_moon</caseparam>
						<action type="display-part">blue_moon</action>
					</case>
					<case>
						<caseparam type="equals">silkfoot</caseparam>
						<action type="display-part">silkfoot</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>	
	
	
	<autoentitymapping name="apple" />
	<autoentitymapping name="pile" />
	<autoentitymapping name="grass" />
	
<!-- furniture-->
	<autoentitymapping name="chair" />
	<autoentitymapping name="door" />
	<autoentitymapping name="long_table" modelname="longtable" />
	<autoentitymapping name="shelf_table" />
	<autoentitymapping name="simple_shelf" />
	<autoentitymapping name="stool" />
	<autoentitymapping name="bed" />
	<autoentitymapping name="table" modelname="simple_table" />
	<autoentitymapping name="chest" />
	
<!-- items -->
	<autoentitymapping name="barrel" />
	<autoentitymapping name="coin" />
	<autoentitymapping name="torch" />
	<autoentitymapping name="deed" />
	<autoentitymapping name="bottle" />
	<entitymapping name="bowls">
		<entitymatch>
			<case>
				<caseparam type="equals">bowl</caseparam>
				<action type="display-model">bowls</action>
				<attributematch attribute="style">
					<case>
						<caseparam type="equals">flat</caseparam>
						<action type="display-part">flat</action>
					</case>
					<case>
						<caseparam type="equals">medium</caseparam>
						<action type="display-part">medium</action>
					</case>
					<case>
						<caseparam type="equals">high</caseparam>
						<action type="display-part">high</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>
	<entitymapping name="signpost">
		<entitymatch>
			<case>
				<caseparam type="equals">signpost</caseparam>
				<action type="display-model">signpost</action>
				<attributematch attribute="direction">
					<case>
						<caseparam type="equals">left</caseparam>
						<action type="display-model">signpost_left</action>
					</case>
					<case>
						<caseparam type="equals">right</caseparam>
						<action type="display-model">signpost_right</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>				
	
	<!-- This will only work if the trousers and shirt has the same parts defined -->
	<entitymapping name="clothes">
		<entitymatch>
			<case>
				<caseparam type="equals">shirt</caseparam>
				<caseparam type="equals">trousers</caseparam>
				<entitymatch>
					<case>
						<caseparam type="equals">shirt</caseparam>
						<action type="display-model">shirt</action>
					</case>
					<case>
						<caseparam type="equals">trousers</caseparam>
						<action type="display-model">trousers</action>
					</case>
				</entitymatch>
				<attributematch attribute="style">
					<case>
						<caseparam type="equals">burlap</caseparam>
						<action type="display-part">clothes/burlap</action>
						<attributematch attribute="colour">
							<case>
								<caseparam type="equals">grey</caseparam>
								<attributematch attribute="trimcolour">
									<case>
										<caseparam type="equals">blue</caseparam>
										<action type="display-part">clothes/burlap/grey_blue_trims</action>
									</case>
									<case>
										<caseparam type="equals">red</caseparam>
										<action type="display-part">clothes/burlap/grey_red_trims</action>
									</case>
									<case>
										<caseparam type="equals">yellow</caseparam>
										<action type="display-part">clothes/burlap/grey_yellow_trims</action>
									</case>
									<case>
										<caseparam type="equals">green</caseparam>
										<action type="display-part">clothes/burlap/grey_green_trims</action>
									</case>
								</attributematch>
							</case>
							<case>
								<caseparam type="equals">red</caseparam>
								<action type="display-part">clothes/burlap/red</action>
							</case>
							<case>
								<caseparam type="equals">yellow</caseparam>
								<action type="display-part">clothes/burlap/yellow</action>
							</case>
							<case>
								<caseparam type="equals">green</caseparam>
								<action type="display-part">clothes/burlap/green</action>
							</case>
						</attributematch>
					</case>
					<case>
						<caseparam type="equals">ragged</caseparam>
						<action type="display-part">clothes/ragged</action>
					</case>
					<case>
						<caseparam type="equals">dark_rags</caseparam>
						<action type="display-part">clothes/dark_rags</action>
					</case>
					<case>
						<caseparam type="equals">sun</caseparam>
						<action type="display-part">clothes/sun</action>
					</case>
					<case>
						<caseparam type="equals">fine</caseparam>
						<action type="display-part">clothes/fine</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>
	
	<!-- Use the shirt model as a placeholder -->
	<entitymapping name="cloak">
		<entitymatch>
			<case>
				<caseparam type="equals">cloak</caseparam>
				<action type="display-model">shirt</action>
			</case>
		</entitymatch>
	</entitymapping>

	<autoentitymapping name="boots" />
	<entitymapping name="farmers_cap">
		<entitymatch>
			<case>
				<caseparam type="equals">farmers_cap</caseparam>
				<caseparam type="equals">hat</caseparam>
				<action type="display-model">farmers_cap</action>
			</case>
		</entitymatch>
	</entitymapping>
	<autoentitymapping name="wood" />

<!-- outdoor structures -->
	<autoentitymapping name="palisade" />
	<autoentitymapping name="palissade_unit" modelname="palisade_unit" />
	<autoentitymapping name="palissade_entry" modelname="palisade_entry" />
	<autoentitymapping name="palissade_circle" modelname="palisade_circle" />
	<autoentitymapping name="palisade_earth" />
	<entitymapping name="stone_palisade">
		<entitymatch>
			<case>
				<caseparam type="equals">stone_palisade</caseparam>
				<action type="display-model">stone_palisade</action>
				<attributematch attribute="style" >
					<case>
						<caseparam type="equals">whole</caseparam>
						<action type="display-part">whole</action>
					</case>
					<case>
						<caseparam type="equals">brokenA</caseparam>
						<action type="display-part">brokenA</action>
					</case>
					<case>
						<caseparam type="equals">brokenB</caseparam>
						<action type="display-part">brokenB</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>	
	
	
	<autoentitymapping name="stake" />
	<autoentitymapping name="sty" />
	<entitymapping name="stall">
		<entitymatch>
			<case>
				<caseparam type="equals">stall</caseparam>
				<action type="display-model">marketstall_canvasA</action>
				<attributematch attribute="style" >
					<case>
						<caseparam type="equals">B</caseparam>
						<action type="display-model">marketstall_canvasB</action>
					</case>
					<case>
						<caseparam type="equals">C</caseparam>
						<action type="display-model">marketstall_canvasC</action>
					</case>
				</attributematch>
				<attributematch attribute="fabric" >
					<case>
						<caseparam type="equals">blue_green</caseparam>
						<action type="display-part">canvas_blue_green</action>
					</case>
					<case>
						<caseparam type="equals">plain</caseparam>
						<action type="display-part">canvas</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>	
	<autoentitymapping name="tent" />
	<autoentitymapping name="jetty" />
	<entitymapping name="campfire">
		<entitymatch>
			<case>
				<caseparam type="equals">campfire</caseparam>
				<action type="display-model">campfireB</action>
			</case>
		</entitymatch>
	</entitymapping>	
	<autoentitymapping name="choppingblock" />
	<entitymapping name="gravestone">
		<entitymatch>
			<case>
				<caseparam type="equals">gravestone</caseparam>
				<action type="display-model">tombstone</action>
				<action type="display-part">a</action>
				<attributematch attribute="style" >
					<case>
						<caseparam type="equals">simple</caseparam>
						<action type="display-part">a</action>
					</case>
					<case>
						<caseparam type="equals">rounded</caseparam>
						<action type="display-part">b</action>
					</case>
					<case>
						<caseparam type="equals">stylish</caseparam>
						<action type="display-part">c</action>
					</case>
					<case>
						<caseparam type="equals">cross</caseparam>
						<action type="display-part">cross_a</action>
					</case>
					<case>
						<caseparam type="equals">cross broken</caseparam>
						<action type="display-part">cross_b</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>	
	<autoentitymapping name="statue" modelname="cg_statue"/>
	<autoentitymapping name="pedestal" modelname="cg_pedestal"/>


	
<!-- buildings -->
	<autoentitymapping name="castlefoundation" />
	<autoentitymapping name="castle_outer_wall" />
	<autoentitymapping name="armory" />
	<entitymapping name="bailey">
		<entitymatch>
			<case>
				<caseparam type="equals">bailey1</caseparam>
				<action type="display-model">bailey1</action>
			</case>
			<case>
				<caseparam type="equals">bailey2</caseparam>
				<action type="display-model">bailey2</action>
			</case>
		</entitymatch>
	</entitymapping>	
	<autoentitymapping name="curtain_wall" />
	<autoentitymapping name="don_jon" modelname="cg_don_jon" />
	<autoentitymapping name="gateway" modelname="cg_gateway" />
	<autoentitymapping name="keep" />
	
	<autoentitymapping name="concrete_stairs" />
	<autoentitymapping name="castle_house_ruin" modelname="cg_house_ruin" />
	<autoentitymapping name="castle_house_a" modelname="cg_house_A" />
	<autoentitymapping name="castle_house_b" modelname="cg_house_B" />
	<autoentitymapping name="castle_house_c" modelname="cg_houseC" />
	<autoentitymapping name="castle_house_d" modelname="cg_house_D" />
	<autoentitymapping name="castle_don_jon" modelname="cg_don_jon" />
	<autoentitymapping name="castle_inn" modelname="cg_inn" />
	<autoentitymapping name="castle_smithy" modelname="cg_smithy" />
	<entitymapping name="castle_house">
		<entitymatch>
			<case>
				<caseparam type="equals">castle_house</caseparam>
				<action type="display-model">cg_house</action>
				<attributematch attribute="roof" >
					<case>
						<caseparam type="equals">shingle</caseparam>
						<action type="display-part">roof_shingle</action>
					</case>
					<case>
						<caseparam type="equals">straw</caseparam>
						<action type="display-part">roof_straw</action>
					</case>
					<case>
						<caseparam type="equals">shale</caseparam>
						<action type="display-part">roof_shale</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>	
	<autoentitymapping name="castle_wall_run" modelname="cg_wall_run" />
	<autoentitymapping name="castle_wall_gate" modelname="cg_wall_gate" />
	<autoentitymapping name="castle_wall_stairs" modelname="cg_wall_stairs" />
	<autoentitymapping name="castle_wall_corner" modelname="cg_wall_corner" />
	<autoentitymapping name="curtain_wall_corner" modelname="cg_curtainwall_corner" />
	<autoentitymapping name="curtain_wall_run" modelname="cg_curtainwall_run" />
	<entitymapping name="waterwell">
		<entitymatch>
			<case>
				<caseparam type="equals">waterwell</caseparam>
				<action type="display-model">cg_well</action>
				<attributematch attribute="variant" >
					<case>
						<caseparam type="equals">a</caseparam>
						<action type="display-model">cg_well</action>
					</case>
					<case>
						<caseparam type="equals">b</caseparam>
						<action type="display-model">waterwell</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>	
	
	<autoentitymapping name="cg_house_A" />
	
	
	
	<autoentitymapping name="inn" modelname="cg_inn" />
	<autoentitymapping name="well" modelname="cg_well" />
	<autoentitymapping name="outerwall" />
	<entitymapping name="mausoleum">
		<entitymatch>
			<case>
				<caseparam type="equals">mausoleum</caseparam>
				<action type="display-model">temple</action>
			</case>
		</entitymatch>
	</entitymapping> 
	<autoentitymapping name="tower" />
	<autoentitymapping name="gallows" />

	<autoentitymapping name="butcher_house" />
	<autoentitymapping name="house3" />
	
<!-- tools -->	
	<autoentitymapping name="trowel" />
	<entitymapping name="axe">
		<entitymatch>
			<case>
				<caseparam type="equals">axe</caseparam>
				<action type="display-model">hatchet</action>
			</case>
		</entitymatch>
	</entitymapping> 
	<!-- autoentitymapping name="axe" / -->
	<autoentitymapping name="hammer" />
	<autoentitymapping name="scythe" />
	<autoentitymapping name="bucksaw" />
	<autoentitymapping name="fishingrod" modelname="fishing_rod" />
	<autoentitymapping name="hook" modelname="fishing_hook" />
	<autoentitymapping name="lure" modelname="fishing_lure" />
	<autoentitymapping name="sieve" />
	<entitymapping name="tinderbox">
		<entitymatch>
			<case>
				<caseparam type="equals">tinderbox</caseparam>
				<action type="display-model">tinderboxA</action>
			</case>
		</entitymatch>
	</entitymapping>
	<autoentitymapping name="pickaxe" />
	<entitymapping name="pole">
		<entitymatch>
			<case>
				<caseparam type="equals">pole</caseparam>
				<action type="display-model">lumber</action>
			</case>
		</entitymatch>
	</entitymapping> 
	<entitymapping name="spade">
		<entitymatch>
			<case>
				<caseparam type="equals">shovel</caseparam>
				<action type="display-model">spade</action>
			</case>
		</entitymatch>
	</entitymapping> 
	<entitymapping name="sword">
		<entitymatch>
			<case>
				<caseparam type="equals">sword</caseparam>
				<action type="display-model">sword</action>
			</case>
		</entitymatch>
	</entitymapping> 
	<entitymapping name="arrow">
		<entitymatch>
			<case>
				<caseparam type="equals">arrow</caseparam>
				<action type="display-model">arrow</action>
			</case>
		</entitymatch>
	</entitymapping> 	
	
<!-- vehicles -->	
	<autoentitymapping name="boat" />

	<entitymapping name="cart">
		<entitymatch>
			<case>
				<caseparam type="equals">cart</caseparam>
				<action type="display-model">cart</action>
				<attributematch attribute="style" >
					<case>
						<caseparam type="equals">1</caseparam>
						<action type="display-part">1</action>
					</case>
					<case>
						<caseparam type="equals">2</caseparam>
						<action type="display-part">2</action>
					</case>
					<case>
						<caseparam type="equals">3</caseparam>
						<action type="display-part">3</action>
					</case>
					<case>
						<caseparam type="equals">4</caseparam>
						<action type="display-part">4</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>	
	
<!-- trees -->	
	
	<entitymapping name="fir">
		<entitymatch>
			<case>
				<caseparam type="equals">fir</caseparam>
				<action type="display-model">pineA</action>
				<attributematch attribute="style" >
					<case>
						<caseparam type="equals">gnarly</caseparam>
						<action type="display-model">pineA</action>
					</case>
					<case>
						<caseparam type="equals">knotted</caseparam>
						<action type="display-model">pineB</action>
					</case>
					<case>
						<caseparam type="equals">weathered</caseparam>
						<action type="display-model">pineC</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>
	
	<autoentitymapping name="leaf" />
	<entitymapping name="shrub">
		<entitymatch>
			<case>
				<caseparam type="equals">shrub</caseparam>
				<action type="display-model">shrubB</action>
				<attributematch attribute="species" >
					<case>
						<caseparam type="equals">magnolia</caseparam>
						<action type="display-model">shrubB</action>
					</case>
					<case>
						<caseparam type="equals">oakleaf</caseparam>
						<action type="display-model">shrubA</action>
					</case>
					<case>
						<caseparam type="equals">wormwood</caseparam>
						<action type="display-model">bush</action>
						<action type="display-part">brown</action>
					</case>
					<case>
						<caseparam type="equals">willow</caseparam>
						<action type="display-model">bush</action>
						<action type="display-part">green</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping> 	

	
	
	<!-- We'll use jayrs new oak for now -->
	<entitymapping name="oak">
		<entitymatch>
			<case>
				<caseparam type="equals">oak</caseparam>
				<action type="display-model">oak_mk1</action>
			</case>
		</entitymatch>
	</entitymapping> 	
	
	<entitymapping name="birch">
		<entitymatch>
			<case>
				<caseparam type="equals">birch</caseparam>
				<action type="display-model">birchA</action>
				<attributematch attribute="style" >
					<case>
						<caseparam type="equals">gnarly</caseparam>
						<action type="display-model">birchA</action>
					</case>
					<case>
						<caseparam type="equals">weathered</caseparam>
						<action type="display-model">birchB</action>
					</case>
					<case>
						<caseparam type="equals">straight</caseparam>
						<action type="display-model">birchC</action>
					</case>
					<case>
						<caseparam type="equals">bent</caseparam>
						<action type="display-model">birchD</action>
					</case>
				</attributematch>
				<attributematch attribute="leavesize" >
					<case>
						<caseparam type="equals">large</caseparam>
						<action type="display-part">large_leaves</action>
					</case>
					<case>
						<caseparam type="equals">small</caseparam>
						<action type="display-part">small_leaves</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping> 	
	
	
	<!-- We have three different types of oaks: large, young and saplings. The size (which we for simplicity assumes is a float) determines which of these we should show. Furthermore, the "style" attribute which variant of oak we should show (just as with the boulder).
		 -->
<!--	<entitymapping name="oak">
		<entitymatch>
			<case equals="oak">
				<action type="display-model">oak</action>
				<attributematch type="function" attribute="height">
					<case lesser="3">
						<action type="display-model">oak_sapling</action>
						<attributematch attribute="style" >
							<case equals="gnarly">
								<action type="display-part">A</action>
							</case>
							<case equals="knotted">
								<action type="display-part">B</action>
							</case>
							<case equals="weathered">
								<action type="display-part">C</action>
							</case>
						</attributematch>
					</case>
					<case greaterequals="3" lesserequals="6">
						<action type="display-model">oak_young</action>
						<attributematch attribute="style" >
							<case equals="gnarly">
								<action type="display-part">A</action>
							</case>
							<case equals="knotted">
								<action type="display-part">B</action>
							</case>
							<case equals="weathered">
								<action type="display-part">C</action>
							</case>
						</attributematch>
					</case>
					<case greater="6">
						<action type="display-model">oak</action>
						<attributematch attribute="style" >
							<case equals="gnarly">
								<action type="display-part">A</action>
							</case>
							<case equals="knotted">
								<action type="display-part">B</action>
							</case>
							<case equals="weathered">
								<action type="display-part">C</action>
							</case>
						</attributematch>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>-->
	
<!-- 	<autoentitymapping name="birch" /> -->

	
	<!-- We'll use the "male" model for the entities of type "settler" or "butcher". Depending on what kind of entity is outfitted to the torso we'll show a shirt part. The shirts all belongs to the same group in the model, so only one will be shown at the same time.
		-->
	
	<entitymapping name="human">
		<entitymatch>
			<case>
				<caseparam type="equals">settler</caseparam>
				<caseparam type="equals">merchant</caseparam>
				<caseparam type="equals">mercenary</caseparam>
				<caseparam type="equals">marshall</caseparam>
				<caseparam type="equals">human</caseparam>
				<action type="display-model">male</action>
			</case>
		</entitymatch>
	</entitymapping>
	
	
<!--	<entitymapping name="human">
		<entitymatch>
			<case>
				<caseparam type="equals">settler</caseparam>
				<caseparam type="equals">merchant</caseparam>
				<caseparam type="equals">mercenary</caseparam>
				<caseparam type="equals">marshall</caseparam>
				<action type="display-model">male</action>
				<outfitmatch attachment="body">
					<case>
						<caseparam type="equals">shirt</caseparam>
						<action type="display-part">clothes/burlap</action>
						<attributematch attribute="style">
							<case>
								<caseparam type="equals">burlap</caseparam>
								<action type="display-part">clothes/burlap</action>
								<attributematch attribute="colour">
									<case>
										<caseparam type="equals">grey</caseparam>
										<attributematch attribute="trimcolour">
											<case>
												<caseparam type="equals">blue</caseparam>
												<action type="display-part">clothes/burlap/grey_blue_trims</action>
											</case>
											<case>
												<caseparam type="equals">red</caseparam>
												<action type="display-part">clothes/burlap/grey_red_trims</action>
											</case>
											<case>
												<caseparam type="equals">yellow</caseparam>
												<action type="display-part">clothes/burlap/grey_yellow_trims</action>
											</case>
											<case>
												<caseparam type="equals">green</caseparam>
												<action type="display-part">clothes/burlap/grey_green_trims</action>
											</case>
										</attributematch>
									</case>
									<case>
										<caseparam type="equals">red</caseparam>
										<action type="display-part">clothes/burlap/red</action>
									</case>
									<case>
										<caseparam type="equals">yellow</caseparam>
										<action type="display-part">clothes/burlap/yellow</action>
									</case>
									<case>
										<caseparam type="equals">green</caseparam>
										<action type="display-part">clothes/burlap/green</action>
									</case>
								</attributematch>
							</case>
							<case>
								<caseparam type="equals">ragged</caseparam>
								<action type="display-part">clothes/ragged</action>
							</case>
							<case>
								<caseparam type="equals">dark_rags</caseparam>
								<action type="display-part">clothes/dark_rags</action>
							</case>
							<case>
								<caseparam type="equals">sun</caseparam>
								<action type="display-part">clothes/sun</action>
							</case>
							<case>
								<caseparam type="equals">fine</caseparam>
								<action type="display-part">clothes/fine</action>
							</case>
						</attributematch>
					</case>
				</outfitmatch>
			</case>
		</entitymatch>
	</entitymapping> -->
	<autoentitymapping name="creator" />

	<autoentitymapping name="fish" />
	<autoentitymapping name="tuna" />
	<autoentitymapping name="pickerel" />
	<autoentitymapping name="bluegill" />
	<autoentitymapping name="bass" modelname="bass_lm" />
	<autoentitymapping name="dog" />
	<!-- use the spider mesh for the crab for now -->
	<entitymapping name="spider">
		<entitymatch>
			<case>
				<caseparam type="equals">crab</caseparam>
				<caseparam type="equals">spider</caseparam>
				<action type="display-model">spider</action>
				<!-- attributematch attribute="colour">
					<case>
						<caseparam type="equals">carrion</caseparam>
						<action type="display-part">body/carrion</action>
					</case>
					<case>
						<caseparam type="equals">emerald</caseparam>
						<action type="display-part">body/emerald</action>
					</case>
				</attributematch -->
			</case>
		</entitymatch>
	</entitymapping>	

	
	
	<autoentitymapping name="deer" />
	<autoentitymapping name="squirrel" />
	<entitymapping name="chicken">
		<entitymatch>
			<case>
				<caseparam type="equals">chicken</caseparam>
				<action type="display-model">chicken</action>
				<attributematch attribute="plumage">
					<case>
						<caseparam type="equals">red</caseparam>
						<action type="display-part">redchicken</action>
					</case>
					<case>
						<caseparam type="equals">grey</caseparam>
						<action type="display-part">greychicken</action>
					</case>
					<case>
						<caseparam type="equals">buzzard</caseparam>
						<action type="display-part">buzzard</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>		
	<autoentitymapping name="pig" />
	<autoentitymapping name="cow" />
	<autoentitymapping name="rabbit" />
	<autoentitymapping name="wolf" />
	<autoentitymapping name="bear" />
	<autoentitymapping name="donkey" />
	<autoentitymapping name="duck" />
	<autoentitymapping name="flying_bird" />
	<entitymapping name="skeleton">
		<entitymatch>
			<case>
				<caseparam type="equals">skeleton</caseparam>
				<caseparam type="equals">lych</caseparam>
				<action type="display-model">skeleton</action>
<!--				<entitymatch>
					<case equals="lych">
						<caseparam type="equals">lych</caseparam>
						<action type="display-part">Cape</action>
					</case>
				</entitymatch>-->
			</case>
		</entitymatch>
	</entitymapping>	
	<autoentitymapping name="arm" />
	<autoentitymapping name="skull" />
	<autoentitymapping name="shin" />
	<autoentitymapping name="pelvis" />
	<autoentitymapping name="ribcage" />
	<autoentitymapping name="thigh" />
<!--	<entitymapping name="goblin">
		<entitymatch>
			<case>
				<caseparam type="equals">goblin</caseparam>
				<action type="display-model">goblin</action>
			</case>
		</entitymatch>
	</entitymapping>	-->
	<entitymapping name="kobold">
		<entitymatch>
			<case>
				<caseparam type="equals">goblin</caseparam>
				<action type="display-model">kobold</action>
				<attributematch attribute="skincolour">
					<case>
						<caseparam type="equals">brown</caseparam>
						<action type="display-part">body/brown</action>
					</case>
					<case>
						<caseparam type="equals">green</caseparam>
						<action type="display-part">body/brown</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>		
	
	<autoentitymapping name="horse" />
	
<!-- edibled -->
	<autoentitymapping name="ham" />
	<autoentitymapping name="breadslice" />
	<autoentitymapping name="bread_cut" />
	<entitymapping name="bread">
		<entitymatch>
			<case>
				<caseparam type="equals">bread</caseparam>
				<caseparam type="equals">loaf</caseparam>
				<action type="display-model">bread</action>
				<!-- If someone has eaten off the bread show the cut version -->
				<attributematch attribute="status" >
					<case>
						<caseparam type="lesser">0.8</caseparam>
						<action type="display-model">bread_cut</action>
					</case>
				</attributematch>
			</case>
		</entitymatch>
	</entitymapping>	

	
	
	<autoentitymapping name="crate" />
	<autoentitymapping name="open_crate" />
	<autoentitymapping name="crate_lid" />
	<autoentitymapping name="crate_open" modelname="open_crate" />
	
	
	<autoentitymapping name="fence_pole" />
	<autoentitymapping name="fence_section" modelname="wooden_fence" />
	<autoentitymapping name="fence_gate" modelname="wooden_gate" />

	<entitymapping name="theodolite">
		<entitymatch>
			<case>
				<caseparam type="equals">theodolite</caseparam>
				<action type="display-model">placeholder</action>
			</case>
		</entitymatch>
	</entitymapping>
	
	<!--
		Show a placeholder for all instances of thing, except for those that we want to exclude by adding a nomodel element for.
		-->
	<autoentitymapping name="thing" modelname="placeholder" />
	<nomodel name="boundary" />
	<nomodel name="feature" /> <!-- This also encompasses areas, fields and paths --> 
	<nomodel name="ploughed_field" />
	<nomodel name="weather" />
	<nomodel name="world" />
	<nomodel name="wall" /> <!-- This is the invisble wall for the houses -->

</entitymappings>
