Staff Pick: BedHome
By
BerufengCreated: 2015/12/19 13:34:37 UTC-08:00 (9 years and 5 days ago)
Edited: 2016/01/06 21:50:36 UTC-08:00 (8 years and 352 days ago)
Likes: 0
Staff pick as of: 2015/12/24 16:09:28 UTC-08:00 (9 years and 0 days ago)
Denizen Version: Dev #423
Script Version: 1.0.1
Description:
A very simple script to allow players to type /bed to be teleported to their beds. Also allows their bed location to be changed at any time of day.
Download script |
View raw scriptBedHome:
type: command
name: bedhome
description: Returns you to your bed.
usage: /bedhome
aliases:
- bed
- home
script:
- if <player.bed_spawn||null> != null {
- teleport <player> <player.bed_spawn>
- wait 1t
- narrate "<&2>You have been teleported to your bed."
} else {
- narrate "<&2>No bed was found."
}
BedSet:
type: world
events:
on player right clicks bed_block:
- adjust <player> bed_spawn_location:<player.location.cursor_on>
- narrate "<&2>Your bed location has been set."
View History