Jump to content

More useful beds and bedrolls.


Carlzilla

Recommended Posts

I thought it was silly that there was no benefit to spending the night at home in your bed. It's a good time to recover from the day, and rest your zed-beaten head. So I created this mod which makes spending the night in your bed (or any bed that you might come across) a better option than huddling in the corner.

 

Buffs.xml additions (just add these to the end of your buffs.xml file, before the </buffs> tag):

<buff id="CZsleeping" stack="reset" duration="10" name_key="Sleeping" description_key="Sleeping in a sleeping bag slowly regenerates health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in your sleeping bag." actions="increment(@wellness, .05, 10, 0, 0)" icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="25" rate="10" />
	<modify id="1" stat="stamina" amount="50" rate="10" />
	<modify id="2" stat="coretemp" modifyValue="15"/>
</buff>

<buff id="CZsleeping01" stack="reset" duration="10" mutex="CZsleeping" name_key="Sleeping" description_key="Sleeping in a bed moderately regenerates health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in your bed." actions="increment(@wellness, .1, 10, 0, 0)" icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="10" rate="2" />
	<modify id="1" stat="stamina" amount="10" rate="1" />
	<modify id="2" stat="coretemp" modifyValue="20"/>
</buff>

<buff id="CZsleeping02" stack="reset" duration="10" mutex="CZsleeping,CZsleeping01" name_key="Sleeping" description_key="Sleeping in a comfy bed quickly regenerates health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in your comfy bed." actions="increment(@wellness, .15, 10, 0, 0)" icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="10" rate="1" />
	<modify id="1" stat="stamina" amount="20" rate="1" />
	<modify id="2" stat="coretemp" modifyValue="20"/>
</buff>

 

 

Blocks.xml changes (You will need to find and change each of the following blocks in the blocks.xml file):

 <block id="421" name="bedRoll01_1">
   <property name="Class" value="SleepingBag" />
   <property name="Material" value="cloth" />
   <property name="Shape" value="Ext3dModel" />
   <property name="Mesh" value="models" />
<property name="FuelValue" value="6" />
   <property name="Model" value="CampingGear/bedroll01_1" param1="main_mesh" />
   <property name="RotationAllowed" value="pivotOnFloor" />
   <property name="SiblingBlock" value="bedRoll01_2" />
   <property name="SiblingDirection" value="0,0,-1" />
   <property name="IsTerrainDecoration" value="true" />
<property name="BuffsWhenWalkedOn" value="CZsleeping"/>
   <property name="CanPickup" value="true" />
   <drop event="Destroy" name="cloth" count="1,3" />
   <property name="Group" value="Building,Basics" />
<property name="DescriptionKey" value="sleepingBagDesc"/>
 </block>
 <block id="422" name="bedRoll01_2">
   <property name="Class" value="SiblingRemove" />
   <property name="Material" value="cloth" />
   <property name="Shape" value="Ext3dModel" />
   <property name="Mesh" value="models" />
   <property name="Model" value="CampingGear/bedroll01_2" param1="main_mesh" />	
   <property name="SiblingBlock" value="bedRoll01_1" />
   <property name="SiblingDirection" value="0,0,1" />
   <property name="IsTerrainDecoration" value="true" />
   <property name="IsDeveloper" value="true" />
   <drop event="Destroy" name="cloth" count="1,3" />
<property name="DescriptionKey" value="sleepingBagDesc"/>
<property name="BuffsWhenWalkedOn" value="CZsleeping"/>
 </block>

 <block id="463" name="bed01">
   <property name="Class" value="SleepingBag" />
   <property name="Material" value="furniture" />
   <property name="Shape" value="Ext3dModel" />
   <property name="Mesh" value="models" />
   <property name="Model" value="Furniture/bed01" param1="main_mesh" />
   <property name="Place" value="TowardsPlacerInverted" />
   <property name="FuelValue" value="6" />
   <drop event="Destroy" count="0" />
   <property name="CanPickup" value="false" />
   <property name="Group" value="Building" />
<property name="MultiBlockDim" value="1,1,2" />
<property name="RotationAllowed" value="pivotOnFloor" />	
<property name="BuffsWhenWalkedOn" value="CZsleeping01" />
<drop event="Harvest" name="shortMetalPipe" count="2" tool_category="Disassemble" /> 
<drop event="Harvest" name="scrapIron" count="2" tool_category="Disassemble" />
<drop event="Harvest" name="spring" count="5" prob="0.5" tool_category="Disassemble" />
<drop event="Harvest" name="cotton" count="5" tool_category="Disassemble" />
   <drop event="Destroy" name="scrapIron" count="1" />	
 </block>

 <block id="1467" name="bed02">
<property name="Class" value="SleepingBag" />
   <property name="Material" value="furniture" />
   <property name="Shape" value="Ext3dModel" />
   <property name="Mesh" value="models" />
   <property name="Model" value="Furniture/bed02" param1="main_mesh" />
<property name="BuffsWhenWalkedOn" value="CZsleeping02"/>
<property name="MultiBlockDim" value="2,1,2" />
<property name="Group" value="Building" />
<drop event="Harvest" name="shortMetalPipe" count="4" tool_category="Disassemble" /> 
<drop event="Harvest" name="scrapIron" count="2" tool_category="Disassemble" />
<drop event="Harvest" name="spring" count="10" prob="0.5" tool_category="Disassemble" />
<drop event="Harvest" name="cotton" count="10" tool_category="Disassemble" />
   <drop event="Destroy" name="scrapIron" count="2" />			
 </block>

 

For those of you who just want already edited buffs.xml and blocks.xml files:

http://www.mediafire.com/download/vk2v6k87013cn6s/sleeping_in_beds.rar

Link to comment
Share on other sites

I adjusted the buffs, I was gaining wellness a bit too fast from the comfy bed...

 

Here's the new code:

Buffs.xml additions (just add these to the end of your buffs.xml file, before the </buffs> tag):

<buff id="CZsleeping" stack="reset" duration="10" mutex="CZsleeping02,CZsleeping01" name_key="Sleeping" description_key="Sleeping in a sleeping bag slowly regenerates health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in your sleeping bag." actions="increment(@wellness, .05, 10, 0, 0)" icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="25" rate="10" />
	<modify id="1" stat="stamina" amount="50" rate="10" />
	<modify id="2" stat="coretemp" modifyValue="15"/>
</buff>

<buff id="CZsleeping01" stack="reset" duration="10" mutex="CZsleeping,CZSleeping02" name_key="Sleeping" description_key="Sleeping in a bed moderately regenerates health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in your bed." actions="increment(@wellness, .075, 10, 0, 0)" icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="10" rate="2" />
	<modify id="1" stat="stamina" amount="10" rate="1" />
	<modify id="2" stat="coretemp" modifyValue="20"/>
</buff>

<buff id="CZsleeping02" stack="reset" duration="10" mutex="CZsleeping,CZsleeping01" name_key="Sleeping" description_key="Sleeping in a comfy bed quickly regenerates health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in your comfy bed." actions="increment(@wellness, .1, 10, 0, 0)" icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="10" rate="1" />
	<modify id="1" stat="stamina" amount="20" rate="1" />
	<modify id="2" stat="coretemp" modifyValue="20"/>
</buff>

 

Blocks.xml changes (You will need to find and change each of the following blocks in the blocks.xml file):

<block id="422" name="bedRoll01_2">
   <property name="Class" value="SiblingRemove" />
   <property name="Material" value="cloth" />
   <property name="Shape" value="Ext3dModel" />
   <property name="Mesh" value="models" />
   <property name="Model" value="CampingGear/bedroll01_2" param1="main_mesh" />	
   <property name="SiblingBlock" value="bedRoll01_1" />
   <property name="SiblingDirection" value="0,0,1" />
   <property name="IsTerrainDecoration" value="true" />
   <property name="IsDeveloper" value="true" />
   <drop event="Destroy" name="cloth" count="1,3" />
<property name="DescriptionKey" value="sleepingBagDesc"/>
<property name="BuffsWhenWalkedOn" value="CZsleeping"/>
 </block>

 <block id="463" name="bed01">
   <property name="Class" value="SleepingBag" />
   <property name="Material" value="furniture" />
   <property name="Shape" value="Ext3dModel" />
   <property name="Mesh" value="models" />
   <property name="Model" value="Furniture/bed01" param1="main_mesh" />
   <property name="Place" value="TowardsPlacerInverted" />
   <property name="FuelValue" value="6" />
   <drop event="Destroy" count="0" />
   <property name="CanPickup" value="false" />
   <property name="Group" value="Building" />
<property name="MultiBlockDim" value="1,1,2" />
<property name="RotationAllowed" value="pivotOnFloor" />	
<property name="BuffsWhenWalkedOn" value="CZsleeping01" />
<drop event="Harvest" name="shortMetalPipe" count="2" tool_category="Disassemble" /> 
<drop event="Harvest" name="scrapIron" count="2" tool_category="Disassemble" />
<drop event="Harvest" name="spring" count="5" prob="0.5" tool_category="Disassemble" />
<drop event="Harvest" name="cotton" count="5" tool_category="Disassemble" />
   <drop event="Destroy" name="scrapIron" count="1" />	
 </block>

 <block id="1467" name="bed02">
<property name="Class" value="SleepingBag" />
   <property name="Material" value="furniture" />
   <property name="Shape" value="Ext3dModel" />
   <property name="Mesh" value="models" />
   <property name="Model" value="Furniture/bed02" param1="main_mesh" />
<property name="BuffsWhenWalkedOn" value="CZsleeping02"/>
<property name="MultiBlockDim" value="2,1,2" />
<property name="Group" value="Building" />
<drop event="Harvest" name="shortMetalPipe" count="4" tool_category="Disassemble" /> 
<drop event="Harvest" name="scrapIron" count="2" tool_category="Disassemble" />
<drop event="Harvest" name="spring" count="10" prob="0.5" tool_category="Disassemble" />
<drop event="Harvest" name="cotton" count="10" tool_category="Disassemble" />
   <drop event="Destroy" name="scrapIron" count="2" />			
 </block>

Link to comment
Share on other sites

What I had been using since A12:

 

	<buff id="hungry" notificationClass="FoodBuffNotification" buffif="+starve > 1" mutex="hungry2,SleepingBagEffect,SleepingBedEffect" debuffif="+full > 1" name_key="hungry" actions="increment(@wellness, -0.5, 150, 0, 0)" description_key="hungryDesc" tooltip_key="hungryTooltip" icon="ui_game_symbol_hunger"/>
<buff id="hungry2" notificationClass="FoodBuffNotification" buffif="+starve > 1200" debuffif="+full > 1" mutex="SleepingBagEffect,SleepingBedEffect" name_key="hungry2" actions="increment(@wellness, -0.5, 30, 0, 0);debuff(hungry);damage(1,7,0,0)" description_key="hungry2Desc" tooltip_key="hungry2Tooltip" icon="ui_game_symbol_hunger">
	<modify id="0" stat="stamina" amount="-3" rate="1"/>
	<modify id="1" stat="health" amount="-1" rate="1"/>
</buff>

<buff id="thirsty" notificationClass="WaterBuffNotification" buffif="+thirst > 1" mutex="thirsty2,SleepingBagEffect,SleepingBedEffect" debuffif="+hydrated > 5" name_key="thirsty" actions="increment(@wellness, -0.1, 30, 0, 0)" description_key="thirstyDesc" tooltip_key="thirstyTooltip" icon="ui_game_symbol_thirst" cures="bottledWater"/>
<buff id="thirsty2" notificationClass="WaterBuffNotification" buffif="+thirst > 600" debuffif="+hydrated > 5" mutex="SleepingBagEffect,SleepingBedEffect" name_key="thirsty2" actions="increment(@wellness, -0.5, 15, 0, 0);debuff(thirsty);damage(1,7,0,0)" description_key="thirsty2Desc" tooltip_key="thirsty2Tooltip" icon="ui_game_symbol_thirst" cures="bottledWater">
	<modify id="0" stat="stamina" amount="-3" rate="1"/>
	<modify id="1" stat="health" amount="-1" rate="1"/>
	</buff>

<buff id="SleepingBagBuff" duration="1" actions="setvar(bedroll, 10)" /> <!-- trigger -->
<buff id="SleepingBagEffect" name_key="sleepingAwesome" description_key="Home. Ain't no place like it. You are immune to the effects of hunger and thirst. (you will still get hungry)" tooltip_key="Home. Ain't no place like it. You are immune to the effects of hunger and thirst. (you will still get hungry)" buffif="bedroll greater 0" debuffif="bedroll less 1" duration="0"
          actions="increment(bedroll, -3, 2, 0, 0);debuff(hungry);debuff(thirsty);debuff(hungry2);debuff(thirsty2)"
          icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="1" rate="30" />
	<modify id="0" stat="stamina" amount="1" rate="3" />
	</buff>

<buff id="SleepingBed" duration="1" actions="setvar(bigbed, 10)" /> <!-- trigger -->
<buff id="SleepingBedEffect" name_key="sleepingAwesome" description_key="Home. Ain't no place like it. You are immune to the effects of hunger and thirst. (you will still get hungry)" tooltip_key="Home. Ain't no place like it. You are immune to the effects of hunger and thirst. (you will still get hungry)" buffif="bigbed greater 0" debuffif="bigbed less 1" duration="0"
          actions="increment(bigbed, -3, 2, 0, 0);debuff(hungry);debuff(thirsty);debuff(hungry2);debuff(thirsty2)"
          icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="1" rate="5" />
	<modify id="0" stat="stamina" amount="1" rate="3" />
	</buff>

 

Assign the trigger buffs to the desired blocks like in the OP example. =)

 

This grants you the ability to... you know... not die or lose wellness from AFK crafting. Anyone who builds big knows how annoying this is.

Link to comment
Share on other sites

What I had been using since A12:

 

	<buff id="hungry" notificationClass="FoodBuffNotification" buffif="+starve > 1" mutex="hungry2,SleepingBagEffect,SleepingBedEffect" debuffif="+full > 1" name_key="hungry" actions="increment(@wellness, -0.5, 150, 0, 0)" description_key="hungryDesc" tooltip_key="hungryTooltip" icon="ui_game_symbol_hunger"/>
<buff id="hungry2" notificationClass="FoodBuffNotification" buffif="+starve > 1200" debuffif="+full > 1" mutex="SleepingBagEffect,SleepingBedEffect" name_key="hungry2" actions="increment(@wellness, -0.5, 30, 0, 0);debuff(hungry);damage(1,7,0,0)" description_key="hungry2Desc" tooltip_key="hungry2Tooltip" icon="ui_game_symbol_hunger">
	<modify id="0" stat="stamina" amount="-3" rate="1"/>
	<modify id="1" stat="health" amount="-1" rate="1"/>
</buff>

<buff id="thirsty" notificationClass="WaterBuffNotification" buffif="+thirst > 1" mutex="thirsty2,SleepingBagEffect,SleepingBedEffect" debuffif="+hydrated > 5" name_key="thirsty" actions="increment(@wellness, -0.1, 30, 0, 0)" description_key="thirstyDesc" tooltip_key="thirstyTooltip" icon="ui_game_symbol_thirst" cures="bottledWater"/>
<buff id="thirsty2" notificationClass="WaterBuffNotification" buffif="+thirst > 600" debuffif="+hydrated > 5" mutex="SleepingBagEffect,SleepingBedEffect" name_key="thirsty2" actions="increment(@wellness, -0.5, 15, 0, 0);debuff(thirsty);damage(1,7,0,0)" description_key="thirsty2Desc" tooltip_key="thirsty2Tooltip" icon="ui_game_symbol_thirst" cures="bottledWater">
	<modify id="0" stat="stamina" amount="-3" rate="1"/>
	<modify id="1" stat="health" amount="-1" rate="1"/>
	</buff>

<buff id="SleepingBagBuff" duration="1" actions="setvar(bedroll, 10)" /> <!-- trigger -->
<buff id="SleepingBagEffect" name_key="sleepingAwesome" description_key="Home. Ain't no place like it. You are immune to the effects of hunger and thirst. (you will still get hungry)" tooltip_key="Home. Ain't no place like it. You are immune to the effects of hunger and thirst. (you will still get hungry)" buffif="bedroll greater 0" debuffif="bedroll less 1" duration="0"
          actions="increment(bedroll, -3, 2, 0, 0);debuff(hungry);debuff(thirsty);debuff(hungry2);debuff(thirsty2)"
          icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="1" rate="30" />
	<modify id="0" stat="stamina" amount="1" rate="3" />
	</buff>

<buff id="SleepingBed" duration="1" actions="setvar(bigbed, 10)" /> <!-- trigger -->
<buff id="SleepingBedEffect" name_key="sleepingAwesome" description_key="Home. Ain't no place like it. You are immune to the effects of hunger and thirst. (you will still get hungry)" tooltip_key="Home. Ain't no place like it. You are immune to the effects of hunger and thirst. (you will still get hungry)" buffif="bigbed greater 0" debuffif="bigbed less 1" duration="0"
          actions="increment(bigbed, -3, 2, 0, 0);debuff(hungry);debuff(thirsty);debuff(hungry2);debuff(thirsty2)"
          icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="1" rate="5" />
	<modify id="0" stat="stamina" amount="1" rate="3" />
	</buff>

 

Assign the trigger buffs to the desired blocks like in the OP example. =)

 

This grants you the ability to... you know... not die or lose wellness from AFK crafting. Anyone who builds big knows how annoying this is.

 

Good thinking about debuffing the thirst and hunger effects. Didn't even think of it. I guess I wasn't expecting the user to be AFK for an extended period...just throughout the night.

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
Any chance of getting an update for A14?

Update for Alpha 14.6

Change for buffs.xml is still the same

 

U online need update the blocks.xml

 

I only added on bedroll - u can for sure get into it and also add on bed1_*, etc...

 

 

<block id="1562" name="bedroll">

<property name="DescriptionKey" value="bedGroupDesc"/>

<property name="Class" value="SleepingBag" />

<property name="Material" value="plants" />

<property name="StabilitySupport" value="false" />

<property name="MaxDamage" value="100"/>

<property name="Shape" value="Ext3dModel" />

<property name="Mesh" value="models" />

<property name="Model" value="CampingGear/bedroll_02" param1="main_mesh" />

<property name="MultiBlockDim" value="1,1,2" />

<property name="Place" value="TowardsPlacerInverted" />

<property name="RotationAllowed" value="pivotOnFloor" />

<property name="FuelValue" value="6" />

<property name="CanPickup" value="true" />

<!-- A15

<property name="BuffsWhenWalkedOn" value="sleepingBagTrigger"/>

-->

<property name="IsTerrainDecoration" value="true" />

<property name="Group" value="Basics,Building" />

<property class="RepairItems"> <property name="yuccaFibers" value="10" /> </property>

<drop event="Destroy" name="yuccaFibers" count="1,3" />

<property name="BuffsWhenWalkedOn" value="CZsleeping"/>

</block>

 

 

Link to comment
Share on other sites

Here are the changes you'd need to make to your blocks.xml file to make this work in 14.6

 

                          <block id="463" name="bed01">
			 <property name="DescriptionKey" value="bedGroupDesc"/>
			 <property name="Class" value="SleepingBag" />
			<property name="Material" value="Mmetal_weak" />
			 <property name="Shape" value="Ext3dModel" />
				<property name="Mesh" value="models" />
			<property name="Model" value="Furniture/bed01" param1="main_mesh" />
			 <property name="MultiBlockDim" value="1,1,2" />
			<property name="RotationAllowed" value="pivotOnFloor" />
			<property name="Place" value="TowardsPlacerInverted" />
			 <property name="FuelValue" value="6" />
				<property name="BuffsWhenWalkedOn" value="CZsleeping01"/>
			<property name="Group" value="Building" />
				<property name="DowngradeBlock" value="bed01Frame" />
				<drop event="Harvest" name="shortMetalPipe" count="2" tool_category="Disassemble" />
			<drop event="Harvest" name="scrapIron" count="2" tool_category="Disassemble" />
			<drop event="Harvest" name="spring" count="5" prob="0.5" tool_category="Disassemble" />
				<drop event="Harvest" name="plantedCotton3Harvest" count="5" tool_category="Disassemble" />
			<drop event="Harvest" name="cloth" count="3" />
			 <drop event="Destroy" name="scrapIron" count="1" />
			 <property name="Group" value="Building,Decor/Miscellaneous" />
		</block>


		<block id="1467" name="bed02">
			<property name="DescriptionKey" value="bedGroupDesc"/>
			<property name="Class" value="SleepingBag" />
			<property name="Material" value="furniture" />
			<property name="Shape" value="Ext3dModel" />
			<property name="Mesh" value="models" />
			<property name="Model" value="Furniture/bed02" param1="main_mesh" />
			<property name="MultiBlockDim" value="2,1,2" />
			<property name="BuffsWhenWalkedOn" value="CZsleeping02"/>
			<property name="Group" value="Building" />
			<drop event="Harvest" name="shortMetalPipe" count="4" tool_category="Disassemble" />
			<drop event="Harvest" name="scrapIron" count="2" tool_category="Disassemble" />
			<drop event="Harvest" name="spring" count="10" prob="0.5" tool_category="Disassemble" />
			<drop event="Harvest" name="plantedCotton3Harvest" count="10" tool_category="Disassemble" />
			<drop event="Destroy" name="scrapIron" count="2" />
			<property name="Group" value="Building,Decor/Miscellaneous" />
		</block>

		<block id="1562" name="bedroll">
			<property name="DescriptionKey" value="bedGroupDesc"/>
			<property name="Class" value="SleepingBag" />
			<property name="Material" value="plants" />
			<property name="StabilitySupport" value="false" />
			<property name="MaxDamage" value="100"/>
			<property name="Shape" value="Ext3dModel" />
			<property name="Mesh" value="models" />
			<property name="Model" value="CampingGear/bedroll_02" param1="main_mesh" />
			<property name="MultiBlockDim" value="1,1,2" />
			<property name="Place" value="TowardsPlacerInverted" />
			<property name="RotationAllowed" value="pivotOnFloor" />
			<property name="FuelValue" value="6" />
			<property name="CanPickup" value="true" />
			<property name="BuffsWhenWalkedOn" value="CZsleeping"/>
			<property name="IsTerrainDecoration" value="true" />
			<property name="Group" value="Basics,Building" />
			<property class="RepairItems"> <property name="yuccaFibers" value="10" /> </property>
			<drop event="Destroy" name="yuccaFibers" count="1,3" />
		</block>

 

Basically search for blocks 463, 1467, and 1562 and paste the new block over the old one. If you can't do that, or have no idea what I'm talking about, use the SDX version. No support will be given on how to update your files outside of what I just typed. There are no needed changes in the Buffs.xml file to make this compatible with 14.6, so you can use the buffs posted in the 2nd post of this thread.

Link to comment
Share on other sites

If you do, I recommend using setvalue instead, the way in this older version of the mod allows you to overheat pretty easily, especially if you've got a fire going sort of close to the sleeping bag.

 

in the new SDX version of the mod, I use setvalue="70" on the bag, setvalue="75" on the small bed and setvalue="77" on the large bed.

Link to comment
Share on other sites

I use setvalue="70" on the bag, setvalue="75" on the small bed and setvalue="77" on the large bed.

 

What is the default "setvalue" for just normal walking around? Like - is 70 an increase from the base value of ... 50? Not sure if that's even a sensible question.

Link to comment
Share on other sites

I think, normally, the coretemp is determined by some mathematical function. This overrides that function and just sets the value to a specific number. It is not effected by anything else in the environment, so even if your bag is right next to a forge, your core temp will remain at 70. I know this isn't super realistic or anything, but it keeps you from overheating extremely quickly in most environments, especially in small starter bases where you probably have a campfire or forge sort of close to where your sleeping bag is.

Link to comment
Share on other sites

So here's the latest version:

Find and replace the following in BLOCKS.XML

<block id="463" name="bed01">
			<property name="DescriptionKey" value="bedGroupDesc"/>
			<property name="Class" value="SleepingBag" />
			<property name="Material" value="Mmetal_weak" />
			<property name="Shape" value="Ext3dModel" />
			<property name="Mesh" value="models" />
			<property name="Model" value="Furniture/bed01" param1="main_mesh" />
			<property name="MultiBlockDim" value="1,1,2" />
			<property name="RotationAllowed" value="pivotOnFloor" />
			<property name="Place" value="TowardsPlacerInverted" />
			<property name="FuelValue" value="6" />
			<property name="BuffsWhenWalkedOn" value="CZsleeping01"/>
			<property name="Group" value="Building" />
			<property name="DowngradeBlock" value="bed01Frame" />
			<drop event="Harvest" name="shortMetalPipe" count="2" tool_category="Disassemble" />
			<drop event="Harvest" name="scrapIron" count="2" tool_category="Disassemble" />
			<drop event="Harvest" name="spring" count="5" prob="0.5" tool_category="Disassemble" />
			<drop event="Harvest" name="plantedCotton3Harvest" count="5" tool_category="Disassemble" />
			<drop event="Harvest" name="cloth" count="3" />
			<drop event="Destroy" name="scrapIron" count="1" />
			<property name="Group" value="Building,Decor/Miscellaneous" />
		</block>

	        <block id="1467" name="bed02">
			<property name="DescriptionKey" value="bedGroupDesc"/>
			<property name="Class" value="SleepingBag" />
			<property name="Material" value="furniture" />
			<property name="Shape" value="Ext3dModel" />
			<property name="Mesh" value="models" />
			<property name="Model" value="Furniture/bed02" param1="main_mesh" />
			<property name="MultiBlockDim" value="2,1,2" />
			<property name="BuffsWhenWalkedOn" value="CZsleeping02"/>
			<property name="Group" value="Building" />
			<drop event="Harvest" name="shortMetalPipe" count="4" tool_category="Disassemble" />
			<drop event="Harvest" name="scrapIron" count="2" tool_category="Disassemble" />
			<drop event="Harvest" name="spring" count="10" prob="0.5" tool_category="Disassemble" />
			<drop event="Harvest" name="plantedCotton3Harvest" count="10" tool_category="Disassemble" />
			<drop event="Destroy" name="scrapIron" count="2" />
			<property name="Group" value="Building,Decor/Miscellaneous" />
		</block>

		<block id="1562" name="bedroll">
			<property name="DescriptionKey" value="bedGroupDesc"/>
			<property name="Class" value="SleepingBag" />
			<property name="Material" value="plants" />
			<property name="StabilitySupport" value="false" />
			<property name="MaxDamage" value="100"/>
			<property name="Shape" value="Ext3dModel" />
			<property name="Mesh" value="models" />
			<property name="Model" value="CampingGear/bedroll_02" param1="main_mesh" />
			<property name="MultiBlockDim" value="1,1,2" />
			<property name="Place" value="TowardsPlacerInverted" />
			<property name="RotationAllowed" value="pivotOnFloor" />
			<property name="FuelValue" value="6" />
			<property name="CanPickup" value="true" />
			<property name="BuffsWhenWalkedOn" value="CZsleeping"/>
			<property name="IsTerrainDecoration" value="true" />
			<property name="Group" value="Basics,Building" />
			<property class="RepairItems"> <property name="yuccaFibers" value="10" /> </property>
			<drop event="Destroy" name="yuccaFibers" count="1,3" />
		</block>

 

Then add the following to your BUFFS.XML file.

<buff id="CZsleeping" stack="reset" duration="11" mutex="CZsleeping01,CZsleeping02" name_key="Sleeping" description_key="Sleeping in a sleeping bag slowly regenerates health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in a sleeping bag." actions="increment(@wellness, .05, 10, 0, 0);debuff(hungry);debuff(thirsty);increment(rest, .064, 1, 0, 0);max(rest, 8)" icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="25" rate="10" />
	<modify id="0" stat="stamina" amount="50" rate="10" />
	<modify id="0" stat="coretemp" setValue="70" />
</buff>

<buff id="CZsleeping01" stack="reset" duration="10" mutex="CZsleeping,CZsleeping02" name_key="Sleeping" description_key="Sleeping in a bed moderately regenerates health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in a bed." actions="increment(@wellness, .075, 10, 0, 0);debuff(hungry);debuff(thirsty);increment(rest, .075, 1, 0, 0);max(rest, 8)" icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="10" rate="2" />
	<modify id="0" stat="stamina" amount="10" rate="1" />
	<modify id="0" stat="coretemp" setValue="75" />
</buff>

<buff id="CZsleeping02" stack="reset" duration="10" mutex="CZsleeping,CZsleeping01" name_key="Sleeping" description_key="Sleeping in a comfy bed quickly regenerates health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in a comfy bed." actions="increment(@wellness, .1, 10, 0, 0);debuff(hungry);debuff(thirsty);increment(rest, .09, 1, 0, 0);max(rest, 8)" icon="ui_game_symbol_map_bed">
	<modify id="0" stat="health" amount="10" rate="1" />
	<modify id="0" stat="stamina" amount="20" rate="1" />
	<modify id="0" stat="coretemp" setValue="77" />
</buff>

<buff id="NaturalTiredness" buffif="rest greater 0" debuffif="rest less -4" actions="increment(rest, -0.5, 125, 0, 0);min(rest, -5)" />

<buff id="WellRested" buffif="rest greater 7" debuffif="rest less 3" icon="ui_game_symbol_map_bed" name_key="Well Rested" description_key="wellrestedDesc" tooltip_key="You're feeling rested.">
	<modify id="0" stat="stamina" amount="1" rate="2" />
	<modify id="1" stat="speedmodifier" setValue="1.25" />"
</buff>

<buff id="Tired" buffif="rest less 0" debuffif="rest greater -1" mutex="Exhausted" icon="ui_game_symbol_map_bed" name_key="Tired" description_key="You're starting to get tired." tooltip_key="You're feeling a bit tired.">
	<modify id="1" stat="speedmodifier" setValue="0.8" />"
</buff>

<buff id="Exhausted" buffif="rest less -3" debuffif="rest greater -4" icon="ui_game_symbol_map_bed" name_key="Exhausted" description_key="You are exhausted. Find a bed soon." tooltip_key="You're exhausted." actions="debuff(Tired)">
	<modify id="1" stat="speedmodifier" setValue="0.5" />"
	<modify id="2" stat="stamina" amount="-1" rate="2" />
</buff>

 

Lastly, you need to find the hungry and thirsty buffs in your BUFFS.XML file and replace them with these

<buff id="thirsty" notificationClass="WaterBuffNotification" buffif="+thirst > 1" mutex="thirsty2,CZsleeping,CZsleeping01,CZsleeping02" debuffif="+hydrated > 5" name_key="thirsty" actions="increment(@wellness, -0.1, 30, 0, 0)" description_key="thirstyDesc" tooltip_key="thirstyTooltip" icon="ui_game_symbol_thirst" cures="bottledWater" />

<buff id="hungry" notificationClass="FoodBuffNotification" buffif="+starve > 1" mutex="hungry2,CZsleeping,CZsleeping01,CZsleeping02" debuffif="+full > 1" name_key="hungry" actions="increment(@wellness, -0.5, 150, 0, 0)" description_key="hungryDesc" tooltip_key="hungryTooltip" icon="ui_game_symbol_hunger" />

Link to comment
Share on other sites

  • 4 months later...
Guest Nyteshade12134

Updated for version 14.7

 

Modifications for BLOCKS.XML

 

Block #463

 

<block id="463" name="bed01">

<property name="DescriptionKey" value="bedGroupDesc"/>

<property name="Class" value="SleepingBag" />

<property name="Material" value="Mmetal_weak" />

<property name="Shape" value="Ext3dModel" />

<property name="Mesh" value="models" />

<property name="Model" value="Furniture/bed01" param1="main_mesh" />

<property name="MultiBlockDim" value="1,1,2" />

<property name="RotationAllowed" value="pivotOnFloor" />

<property name="Place" value="TowardsPlacerInverted" />

<property name="FuelValue" value="6" />

<property name="BuffsWhenWalkedOn" value="CZsleeping01"/>

<property class="RepairItems">

<property name="cloth" value="20" />

<property name="plantedCotton3Harvest" value="20" />

<property name="spring" value="10" />

<property name="shortMetalPipe" value="10" />

</property>

<property name="DowngradeBlock" value="bed01Frame" />

<drop event="Harvest" name="shortMetalPipe" count="4" tool_category="Disassemble" />

<drop event="Harvest" name="scrapIron" count="4" tool_category="Disassemble" />

<drop event="Harvest" name="spring" count="4" tool_category="Disassemble" />

<drop event="Harvest" name="plantedCotton3Harvest" count="8" tool_category="Disassemble" />

<drop event="Harvest" name="cloth" count="8" />

<drop event="Destroy" name="scrapIron" count="1" />

<property name="Group" value="Building,Decor/Miscellaneous" />

</block>

 

Block #1467

 

<block id="1467" name="bed02">

<property name="DescriptionKey" value="bedGroupDesc"/>

<property name="Class" value="SleepingBag" />

<property name="Material" value="furniture" />

<property name="Shape" value="Ext3dModel" />

<property name="Mesh" value="models" />

<property name="Model" value="Furniture/bed02" param1="main_mesh" />

<property name="MultiBlockDim" value="2,1,2" />

<property name="BuffsWhenWalkedOn" value="CZsleeping02"/>

<property name="Group" value="Building" />

<property class="RepairItems">

<property name="cloth" value="40" />

<property name="plantedCotton3Harvest" value="40" />

<property name="spring" value="20" />

<property name="wood" value="20" />

<property name="shortMetalPipe" value="10" />

</property>

<drop event="Harvest" name="cloth" count="16" />

<drop event="Harvest" name="plantedCotton3Harvest" count="16" tool_category="Disassemble" />

<drop event="Harvest" name="spring" count="8" tool_category="Disassemble" />

<drop event="Harvest" name="wood" count="8" />

<drop event="Harvest" name="shortMetalPipe" count="4" tool_category="Disassemble" />

<drop event="Harvest" name="scrapIron" count="2" tool_category="Disassemble" />

<drop event="Destroy" name="scrapIron" count="2" />

<property name="Group" value="Building,Decor/Miscellaneous" />

</block>

 

Block #1562

 

<block id="1562" name="bedroll">

<property name="DescriptionKey" value="bedGroupDesc"/>

<property name="Class" value="SleepingBag" />

<property name="Material" value="plants" />

<property name="StabilitySupport" value="false" />

<property name="MaxDamage" value="100"/>

<property name="Shape" value="Ext3dModel" />

<property name="Mesh" value="models" />

<property name="Model" value="CampingGear/bedroll_02" param1="main_mesh" />

<property name="MultiBlockDim" value="1,1,2" />

<property name="Place" value="TowardsPlacerInverted" />

<property name="RotationAllowed" value="pivotOnFloor" />

<property name="FuelValue" value="6" />

<property name="CanPickup" value="true" />

<property name="BuffsWhenWalkedOn" value="CZsleeping"/>

<property name="IsTerrainDecoration" value="true" />

<property name="Group" value="Basics,Building" />

<property class="RepairItems"> <property name="yuccaFibers" value="10" /> </property>

<drop event="Destroy" name="yuccaFibers" count="1,3" />

</block>

 

Modifications for BUFFS.XML

 

At the very bottom before "</buffs>" add the following code:

 

<buff id="CZsleeping" stack="reset" duration="11" mutex="CZsleeping01,CZsleeping02" name_key="Sleeping" description_key="Sleeping in a sleeping bag slowly regenerates

 

health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in a sleeping bag." actions="increment(@wellness, .05, 10, 0, 0);debuff

 

(hungry);debuff(thirsty);increment(rest, .064, 1, 0, 0);max(rest, 8)" icon="ui_game_symbol_map_bed">

<modify id="0" stat="health" amount="25" rate="10" />

<modify id="0" stat="stamina" amount="50" rate="10" />

<modify id="0" stat="coretemp" setValue="70" />

</buff>

 

<buff id="CZsleeping01" stack="reset" duration="10" mutex="CZsleeping,CZsleeping02" name_key="Sleeping" description_key="Sleeping in a bed moderately regenerates

 

health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in a bed." actions="increment(@wellness, .075, 10, 0, 0);debuff(hungry);debuff

 

(thirsty);increment(rest, .075, 1, 0, 0);max(rest, 8)" icon="ui_game_symbol_map_bed">

<modify id="0" stat="health" amount="10" rate="2" />

<modify id="0" stat="stamina" amount="10" rate="1" />

<modify id="0" stat="coretemp" setValue="75" />

</buff>

 

<buff id="CZsleeping02" stack="reset" duration="10" mutex="CZsleeping,CZsleeping01" name_key="Sleeping" description_key="Sleeping in a comfy bed quickly regenerates

 

health, stamina, and wellness, as well as warms you up." tooltip_key="You're resting in a comfy bed." actions="increment(@wellness, .1, 10, 0, 0);debuff

 

(hungry);debuff(thirsty);increment(rest, .09, 1, 0, 0);max(rest, 8)" icon="ui_game_symbol_map_bed">

<modify id="0" stat="health" amount="10" rate="1" />

<modify id="0" stat="stamina" amount="20" rate="1" />

<modify id="0" stat="coretemp" setValue="77" />

</buff>

 

<buff id="NaturalTiredness" buffif="rest greater 0" debuffif="rest less -4" actions="increment(rest, -0.5, 125, 0, 0);min(rest, -5)" />

</buff>

 

<buff id="WellRested" buffif="rest greater 7" debuffif="rest less 3" icon="ui_game_symbol_map_bed" name_key="Well Rested" description_key="wellrestedDesc"

 

tooltip_key="You're feeling rested.">

<modify id="0" stat="stamina" amount="1" rate="2" />

<modify id="1" stat="speedmodifier" setValue="1.25" />"

</buff>

 

<buff id="Tired" buffif="rest less 0" debuffif="rest greater -1" mutex="Exhausted" icon="ui_game_symbol_map_bed" name_key="Tired" description_key="You're starting to

 

get tired." tooltip_key="You're feeling a bit tired.">

<modify id="1" stat="speedmodifier" setValue="0.8" />"

</buff>

 

<buff id="Exhausted" buffif="rest less -3" debuffif="rest greater -4" icon="ui_game_symbol_map_bed" name_key="Exhausted" description_key="You are exhausted. Find a bed

 

soon." tooltip_key="You're exhausted." actions="debuff(Tired)">

<modify id="1" stat="speedmodifier" setValue="0.5" />"

<modify id="2" stat="stamina" amount="-1" rate="2" />

</buff>

 

FINALLY, modify the HUNGRY and THIRSTY buffs to the following:

 

<buff id="hungry" mutex="hungry2,CZsleeping,CZsleeping01,CZsleeping02" buffif="+starve > 1" debuffif="+full > 1" actions="increment(@wellness, -0.5, 150, 0, 0)"

 

notificationClass="FoodBuffNotification" icon="ui_game_symbol_hunger" name_key="hungry" description_key="hungryDesc" tooltip_key="hungryTooltip"

 

cures="shamSandwich,corn,canBeef,grilledMeat,baconAndEggs"/>

<buff id="hungry2" buffif="+starve > 1200" debuffif="+full > 1" actions="increment(@wellness, -0.5, 30, 0, 0);debuff(hungry);damage(0,7,0,0)"

 

notificationClass="FoodBuffNotification" icon="ui_game_symbol_hunger" name_key="hungry2" description_key="hungry2Desc" tooltip_key="hungry2Tooltip"

 

cures="shamSandwich,corn,canBeef,grilledMeat,baconAndEggs">

<modify id="0" stat="stamina" amount="-3" rate="1"/>

<modify id="1" stat="health" amount="-1" rate="1"/>

</buff>

 

<buff id="thirsty" mutex="thirsty2,CZsleeping,CZsleeping01,CZsleeping02" buffif="+thirst > 1" debuffif="+hydrated > 5" actions="increment(@wellness, -0.1, 30, 0, 0)"

 

notificationClass="WaterBuffNotification" icon="ui_game_symbol_thirst" name_key="thirsty" description_key="thirstyDesc" tooltip_key="thirstyTooltip"

 

cures="canMurkyWater,canBoiledWater,bottledWater,goldenRodTea,redTea"/>

<buff id="thirsty2" notificationClass="WaterBuffNotification" buffif="+thirst > 600" debuffif="+hydrated > 5" actions="increment(@wellness, -0.5, 15, 0, 0);debuff

 

(thirsty);damage(0,7,0,0)" icon="ui_game_symbol_thirst" name_key="thirsty2" description_key="thirsty2Desc" tooltip_key="thirsty2Tooltip"

 

cures="canMurkyWater,canBoiledWater,bottledWater,goldenRodTea,redTea">

<modify id="0" stat="stamina" amount="-3" rate="1"/>

<modify id="1" stat="health" amount="-1" rate="1"/>

</buff>

 

This is as of Version 14.7. Happy modding.

Link to comment
Share on other sites

  • 4 weeks later...
  • 5 weeks later...
  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...