- 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: Skeletal Cleaver


By darthriddle
Created: 2015/04/03 16:51:44 UTC-07:00 (9 years and 265 days ago)
Edited: 2015/04/03 16:51:44 UTC-07:00 (9 years and 265 days ago)
Likes: 1

Staff pick as of: 2015/04/08 18:41:49 UTC-07:00 (9 years and 260 days ago)
Denizen Version: 0.9.6
Script Version: 1.0
Description:

Legend says deep within Kinorb Mountain a sword was forged from the bones of the Necromancer Edreivok Bonecall by the wizards of light. This sword was called Skeletal Cleaver and any hero who held it would be protected from the stares and anger of the Skeletal warriors.

You can change the recipe as you see fit. Just place this script in your Denizen/Scripts folder or sub folder of your choice.
Denizen/Scripts/YourFolder
And reload your scripts to activate.

Darth
Twitter: #darth_riddle


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
28
29
30
31
3100

skeletal_cleaver:
    type: item
    debug: true
    material: gold_sword
    enchantments:
    - LOOT_BONUS_MOBS:3
    display name: Skeletal Cleaver
    lore:
    - <&a>Forged from a
    - <&a>nercomancers bones
    - <&a>Skeletons do not
    - <&a>target holder
    recipe:
    - i@air|i@bone|i@air
    - i@bone|i@redstone_block|i@bone
    - i@air|i@bone|i@air
skeletal_cleaver_world:
    type: world
    debug: true
    events:
        on player picks up skeletal_cleaver:
          - narrate "<player.name><&2>! You picked up <&9>Skeletal Cleaver"
          - playsound <player> sound:wither_idle pitch:0.1
        on skeleton targets:
        - if <context.target.item_in_hand.scriptname.is[==].to[skeletal_cleaver]||false> determine cancelled
        on skeleton damages player:
        - if <context.entity.item_in_hand.scriptname.is[==].to[skeletal_cleaver]||false> {
          - attack <c.damager> target:cancel
          - determine cancelled
          }





View History