Paste #14632: shzrtr

Date: 2015/03/21 19:16:09 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


#########################################
#   Custom Item Script                  #
#                                       #
#   Ersteller: BloodEko                 #
#                                       #
#########################################
#  Rohlinge                             #
#########################################
#item6                                  
#    type: item
#    material: ITEM
#    display name: NAME DES ITEM
#    lore:
#    - Texte texte texte
#########################################
schwert: 
  type: world 
  debug: false
  events:
    on entity damaged:
    - if <context.damager.item_in_hand.scriptname||null> == item1 { 
      - narrate 'Fine' 
      - playeffect <e@entity.location> LARGE_EXPLODE
      - adjust <context.entity> walk_speed:0.0
      - wait 5s
      - adjust <context.entity> walk_speed:0.2
      }
    - if <context.damager.item_in_hand.scriptname||null> == item2 {
      - narrate Fine2
      - announce <context.final_damage>
      - playeffect <entity.location> LARGE_EXPLODE
      - heal <context.final_damage> <context.damager>
      }
    - if <context.damager.item_in_hand.scriptname||null> == item3 {
      - narrate Fine3
      - flag 
      - playeffect <entity.location> LARGE_EXPLODE
      - scoreboard add obj:Timer lines:Zeit score:3 viewers:<context.player>
      - wait 1s
      - scoreboard add obj:Timer lines:Zeit score:2 viewers:<context.player>
      - wait 1s
      - scoreboard add obj:Timer lines:Zeit score:1 viewers:<context.player>
      - wait 1s
      - hurt <40.0> <context.entity>
      - scoreboard remove viewers:<context.player>
      }
    - if <context.damager.item_in_hand.scriptname||null> == item4 {
      - narrate Fine 4
      - cast BLINDNESS duration:10s <context.entity>
      - announce " Casting Blindness 10s"
      }
    - if <context.damager.item_in_hand.scriptname||null> == item5 {
      - narrate Fine5
      - cast SPEED duration:6s power:3 <context.player>
      - announce 'JA !'
      }
#    - if <context.damager.item_in_hand.scriptname||null> == NAME_DES_ITEMSCIPT {
#      - cast NAME_DES_TRANKEFFEKT duration:6s power:3 <context.player>
#      } 

    on entity shoots bow:
    - if <context.entity.item_in_hand.scriptname||null> == item6 {
      - flag <context.entity> shooter
      }

    on entity shoots block
    - if !<context.shooter.has_flag[shooter]> queue clear
    - flag <context.shooter> shooter:!
    - teleport <context.shooter> <context.location>

item1: 
    type: item 
    material: paper 
    display name: Ein dreckiges Stueck Papier 
    lore: 
    - Explosion mit Festhalten
    - <red>Legendaeres Schwert

item2:
    type: item
    material : paper
    display name: Custom Item 2
    lore:
    - Gibt leben zur<ü>ck
    - <blue> Eine Lore

item3:
    type: item
    material : paper
    display name : Custom Item 3
    lore:
    - Verz<&uoml>gert den Tod.
    - <green> G<ü>ne Lore !

item4:
    type: item
    material: paper
    display name: Custom Item 4
    lore:
    - Blendet den Gegner
    - Irgendeine Lore

item5:
    type: item
    material: paper
    display name: Custom Item 5
    lore:
    - Vergiftet den Gegner

item6:
    type: item
    material: bow
    display name: Superbogen
    lore:
    - Bogen teleportiert