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


By xodz
Created: 2015/06/16 15:46:28 UTC-07:00 (9 years and 191 days ago)
Edited: 2015/06/16 15:46:28 UTC-07:00 (9 years and 191 days ago)
Likes: 0

Staff pick as of: 2015/06/17 17:24:41 UTC-07:00 (9 years and 190 days ago)
Denizen Version: version: 0.9.6-SNAPSHOT (build 171)
Script Version: 1
Description:

Simple script that protects you from fall damage for 5 seconds after teleporting.

Damage type and duration easily configurable.

Thanks for Talamar1 for assistance


Download script | View raw script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
1600

Teleport Safe:
  type: world
  debug: false
  events:
    on player teleports:
    - flag player nodamage duration:15s

    on player damaged by fall:
    - if <player.has_flag[nodamage]> {
       - narrate "You were shielded from damage while transporting back into the realm"
       - determine cancelled
      }

      






View History