- 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.





Temporary Torches


By Gleavie09
Created: 2016/11/18 01:29:04 UTC-08:00 (8 years and 36 days ago)
Edited: 2016/11/18 01:30:59 UTC-08:00 (8 years and 36 days ago)
Likes: 0

Denizen Version: 1.0.1
Script Version: 1.0
Description:

Very simple script for servers that like to add an exploration element. Instead of having one person explore a cave and light the shit out of it, you can now allow all of your users to explore them.

Simply load the script and you're good to go. I've added in a bypass for users that have the "builder" flag, so that structures can be built without the extinguish timer.

As a little bonus I've added in the extinguish sound at the end of the wait timer to add some authenticity.


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
2200

##################
#  Temp Torches  #
##################
temp_torches:
  type: world
  debug: false
  events:
    on player places torch:
      - if <player.has_flag[builder]> {
        - queue clear
        }
      - else {
      - narrate "<&e>Your torch will burn out in 5 minutes."
      - wait 5m
      - if <context.location.material.name.is[==].to[torch]> {
        - modifyblock <context.location> air
        - playsound location:<context.location> sound:block.fire.extinguish volume:0.5 custom
        }
        } 







View History