Jump to content

A good nights sleep


Guest Nyteshade12134

Recommended Posts

Guest Nyteshade12134

Revisiting Carlzilla's original idea (https://7daystodie.com/forums/showthread.php?36802-More-useful-beds-and-bedrolls) updated for Alpha 16.4, tested and working.

 

First add the following lines to these blocks:

 

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

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

<block id="466" name="mattressFlat">

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

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

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

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

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

 

Next, add these buffs in your buffs.xml at the end before "</buffs>":

 

<buff id="Sleeping" stack="reset" duration="4" name_key="Sleeping" description_key="Sleeping on a matress slowly regenerates health, and stamina." tooltip_key="You're resting on a matress." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">

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

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

</buff>

 

<buff id="Sleeping2" stack="reset" duration="4" name_key="Sleeping" description_key="Sleeping in an old bed slowly regenerates health, and stamina, as well as keeps you warm" tooltip_key="You're resting in your bed." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">

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

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

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

</buff>

 

<buff id="Sleeping3" stack="reset" duration="4" name_key="Sleeping" description_key="Sleeping in a king size bed quickly regenerates health, and stamina, as well as keeps you warm" tooltip_key="You're resting in your bed." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">

<modify id="0" stat="health" amount="4" rate="3" />

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

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

</buff>

 

<buff id="Sleeping4" stack="reset" duration="7" name_key="Sleeping" description_key="Sleeping in a sleeping bag very slowly regenerates health, and stamina, as well as keeps you warm" tooltip_key="You're resting in your sleeping bag." actions="debuff(hungry);debuff(thirsty)" icon="ui_game_symbol_map_bed">

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

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

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

</buff>

 

Thats it, save your files and now when you walk on these items your character will heal and regain stamina at various rates. Some even keep you warm. Enjoy.

Link to comment
Share on other sites

Guest Nyteshade12134

When I noticed that the Flat mattress was not craftable, I decided to make these changes:

 

In BLOCKS add the following line to:

 

<block id="466" name="mattressFlat">

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

 

This will allow you to pick it up. You can then use it alone, OR

 

In RECIPES change the following to:

 

<recipe name="bed01" count="1">

<ingredient name="mattressFlat" count="1"/>

<ingredient name="spring" count="4"/>

<ingredient name="shortMetalPipe" count="10"/>

</recipe>

 

<recipe name="bed02" count="1">

<ingredient name="mattressFlat" count="1"/>

<ingredient name="wood" count="20"/>

<ingredient name="spring" count="10"/>

<ingredient name="shortMetalPipe" count="20"/>

</recipe>

 

This will allow the mattress to be used in creating the beds. So go find yourself a flat mattress and get yourselves a good nights sleep. Enjoy.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...