- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register








The script repo is an archive of historical scripts. For modern scripts, or to post your own, please use the Scripts forum section.





Staff Pick: BedHome


By Berufeng
Created: 2015/12/19 13:34:37 UTC-08:00 (8 years and 135 days ago)
Edited: 2016/01/06 21:50:36 UTC-08:00 (8 years and 117 days ago)
Likes: 0

Staff pick as of: 2015/12/24 16:09:28 UTC-08:00 (8 years and 130 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 script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
2700

BedHome:
    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