• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

weather survival and drinkin with your hands

Darkstardragon

New member
Anyone know how to shut off weather survival? Also, is there somewhere you can change it in xml so the player can no longer drink from water sources with their hands?

 
For the second one, look in items.xml for id 70 (handPlayer)

Code:
<item id="70" name="handPlayer"> <!-- handPlayer must remain on ID 70 -->
<property name="Extends" value="handMaster"/>
<property name="CreativeMode" value="None"/>
<property name="HoldType" value="0"/>
<property class="Action0">
	<property name="Delay" value="0.75"/>
	<property name="Range" value="2.5"/>
	<property name="DamageEntity" value="5"/>
	<property name="DamageBlock" value="1"/>
	<property name="Stamina_usage" value="3"/>
	<property name="DamageBonus.head" value="2"/>
	<property name="DamageBonus.organic" value="5"/>
	<property name="ToolCategory.harvestingTools" value="1.5" param1="1"/>
</property>
[color="#00FF00"]<property class="Action1"> <!-- UseAction -->
	<property name="Class" value="Eat"/>
	<property name="Delay" value="1"/>
	<property name="Use_time" value="..."/>
	<property name="Gain_health" value="0"/>
	<property name="Gain_stamina" value="5"/>
	<property name="Gain_food" value="0"/>
	<property name="Gain_water" value="15"/>
	<property name="Gain_sickness" value="15"/>
	<property name="Condition_raycast_block" value="826,1472"/>
	<property name="Sound_start" value="player_drinking"/>
	<property name="Buff" value="dysentery"/>
	<property name="Buff_chance" value="0.5"/>
</property>[/color]
<property class="Attributes">
	<property name="DismembermentBaseChance" value="-0.2,-0.2"/>
	<property name="DismembermentBonus" value="0,0"/>
</property>
<property name="ActionSkillGroup" value="Athletics"/>
<!--use_action class="LiftUpTerrain" delay="1" use_time="..." gain_health="-5"gain_stamina="-20" gain_food="0" gain_water="10" gain_sickness="15" condition_raycast_block="77,78,79,80" sound_start="player_drinking" /-->
</item>
The part in green is what is done on right clicking with an item. Action0 is left click action, Action1 is right click action. You can simply remove the whole Action1 section to stop the player being able to drink from water sources.

 
Back
Top