Paste #6112: Untitled Paste

Date: 2014/07/02 13:27:06 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


'Test Script for gathering':
    type: interact

    steps:
        '1':
            click trigger:
                script:
                - engage
                - chat "Can you get me 5 burnt logs"
                - flag gathering_burnt_logs
                - zap step:2
                - disengage
        '2':
            click trigger:
                script:
                - engage
                - if "<player.inventory.contains[i@burnt log].qty[5]>" && "<flag.p:gathering_burnt_logs>" 
                  {
                  - give i@diamond qty:5}                  
                  else {
                  - chat "Please bring me back burnt logs for your reward."
                  }
                - disengage
        '3':
            click trigger:
                script:
                - engage
                - chat "Thank you for the burnt logs from before."
                - disengage
"burntlog":
  type: item
  material: 17
  display name: "<&c>Burnt Log"
  lore:
  - Still Warm

'BurntLogWorld':
  type: world
  events:
    on player left clicks log with air in TestCube:
   #- replace log with 0
    - give "item:burntlog" qty:1


'WorldLoads':
  type: world
  events:
    on server start:
    - note cu@0,0,0,world|1,1,1,world as:TestCube