dajokaman759
New member
Hello, I was making a silly little mod for our private server to allow us to drink gasoline which would buff move speed significantly for like 3 minutes and a bit of hunger and thirst but I cannot seem to get it to display the food stats that shows how much hunger, thirst and move speed it provides.
Heres the items.xml I did for it so far.

Heres the items.xml I did for it so far.
Code:
<configs>
<append xpath="/items">
<item name="drinkDrinkableGas">
<property name="Extends" value="drinkJarRedTea"/>
<property name="Tags" value="drinks"/>
<property name = "DisplayType" value = "drinkDrinkableGas" />
<property name="HoldType" value="3"/>
<property name="Meshfile" value="@:Other/Items/Food/bottled_waterPrefab.prefab"/>
<property name="DropMeshfile" value="@:Other/Items/Misc/sack_droppedPrefab.prefab"/>
<property name="Material" value="Mglass"/>
<property name="Stacknumber" value="25"/>
<property name="EconomicValue" value="50"/>
<property name="CraftingIngredientTime" value="10"/>
<property class="Action0">
<property name="Class" value="Eat"/>
<property name="Delay" value="1"/>
<property name="Sound_start" value="player_drinking"/>
</property>
<property name="Group" value="Food/Cooking,CFDrink/Cooking"/>
<effect_group tiered="false" name="Drink Tier 0">
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="30"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodHealthAmount" operation="add" value="10"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$waterAmountAdd" operation="add" value="50"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables,GasPegasus"/>
<display_value name="dRunSpeed" value="200"/>
<display_value name="dDuration" value="500"/>
<display_value name="dStaminaRegen" value=".25"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="GasPegasus" duration="300"/>
</effect_group>
<effect_group tiered="false">
<requirement name="HasBuff" buff="buffIsOnFire"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffExtinguishFire"/>
</effect_group>
</item>
</append>
</configs>