Modding:Basic Modding Examples: Difference between revisions

From Vintage Story Wiki
m
quotes
m (add json syntax highlighting)
m (quotes)
Line 33: Line 33:
Line 8-11 should contain these lines:
Line 8-11 should contain these lines:
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
sleepEfficiencyByType: {
"sleepEfficiencyByType": {
"bed-wood-*": 0.70833333,
"bed-wood-*": 0.70833333,
"bed-hay-*": 0.58333333,
"bed-hay-*": 0.58333333,
Line 42: Line 42:
<!--T:12-->
<!--T:12-->
The <code>sleepEfficiency</code> attribute is specific to the bed. In this case a value of 1 means the player can sleep half the day. The hay bed has a value of 0.58333333, which means the player can sleep for 12 * 0.58333333 = ~7 in-game hours. Change the value to anything between 0...1 and start the game or leave and re-enter your singleplayer world. Next time you sleep in the bed you will be skipping that amount of time.
The <code>sleepEfficiency</code> attribute is specific to the bed. In this case a value of 1 means the player can sleep half the day. The hay bed has a value of 0.58333333, which means the player can sleep for 12 * 0.58333333 = ~7 in-game hours. Change the value to anything between 0...1 and start the game or leave and re-enter your singleplayer world. Next time you sleep in the bed you will be skipping that amount of time.


== Making wolves less dangerous == <!--T:13-->
== Making wolves less dangerous == <!--T:13-->
Confirmedusers
27

edits