editor
72
edits
Ninjanomnom (talk | contribs) (Microblock chiseling is no longer controlled from the chisel) |
Ninjanomnom (talk | contribs) (Updates bed example to current version) |
||
Line 17: | Line 17: | ||
== Changing sleep duration in beds == | == Changing sleep duration in beds == | ||
Beds in the Vanilla game are pretty limited, as they let you only sleep 3-5.5 hours every night. More often than not players prefer to skip the whole night. To achieve that open the file <code>assets/blocktypes/wood | Beds in the Vanilla game are pretty limited, as they let you only sleep 3-5.5 hours every night. More often than not players prefer to skip the whole night. To achieve that open the file <code>assets/survival/blocktypes/wood/bed.json</code> | ||
Line | Line 8-11 should contain these lines: | ||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> | ||
sleepEfficiencyByType: { | |||
"bed-wood-*" | "bed-wood-*": 0.70833333, | ||
"bed-hay-*" | "bed-hay-*": 0.58333333, | ||
"bed-woodaged-*" | "bed-woodaged-*": 0.79166666 | ||
}, | }, | ||
</syntaxhighlight> | </syntaxhighlight> | ||
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. | 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. | ||