You are browsing as a guest.
Login | Register
~ mcmonkey's simpler pastebin ~ Inspired by Hastebin ~ home page ~ Denizen help ~
click to use the normal pastebin instead ~ Click to make your own paste ~ click to duplicate and edit this paste


Title:
Type:
Date:
By:
Raw:
Other:
...
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
16700

Edit of P#61912 - Inspect script
Denizen Script
2019/11/10 12:24:58 UTC-08:00
Guest
Click here to view this paste as a raw text file | Or download the script


Inspect:
  type: world
  events:
    on player damages entity:
    - if <context.damager.item_in_hand.display> CONTAINS "Inspect target":
      - determine cancelled passively
      - narrate targets:<context.damager> "<&3>-----------------------------------------------------"
      - narrate targets:<context.damager> "<&e>Inspecting <&c><context.entity.name>:"
      - narrate targets:<context.damager> "<&c><&l>Health Info:"
      - narrate targets:<context.damager> "<&b><&9>Health<&a><context.entity.health.round_to[2]><&e>/<&2><context.entity.health_max.round_to[2]>"
      - narrate targets:<context.damager> "<&b><&9>Health Percentage<&a><context.entity.health_percentage>"
      - narrate targets:<context.damager> "<&b><&9>Health State<&a><context.entity.formatted_health.to_titlecase>"
      - narrate targets:<context.damager> "<&c><&l>Physical Info:"
      - narrate targets:<context.damager> "<&b><&9>Speed<&a><context.entity.speed>"
      - narrate targets:<context.damager> "<&c><&l>Combat Info:"
      - narrate targets:<context.damager> "<&b><&9>Melee attack damage<&a><context.entity.weapon_damage>"
      - narrate targets:<context.damager> "<&b><&9>Melee attack damage to you<&a><context.entity.weapon_damage[<context.damager>]>"
      - if <context.entity.type> == Player:
        - narrate targets:<context.damager> "<&b><&9>Melee attack speed<&a><context.entity.attack_cooldown_max_duration.formatted>"
      - narrate targets:<context.damager> "<&b><&9>Melee attack damage you'll deal<&a><context.damager.weapon_damage[<context.entity>]>"
      - narrate targets:<context.damager> "<&b><&9>Melee attack damage that will be absorbed<&a><context.damager.weapon_damage.sub[<context.damager.weapon_damage[<context.entity>]>]>"
      - narrate targets:<context.damager> "<&b><&9>Armor<&a><context.entity.armor_bonus>"
      - if <context.entity.equipment> != "li@i@air|i@air|i@air|i@air":
        - narrate targets:<context.damager> "<&c><&l>Equipment Info:"
      - if <context.entity.item_in_hand> != i@air:
        - if <context.entity.item_in_hand.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Main hand item<&a><context.entity.item_in_hand.material.name>"
        - if <context.entity.item_in_hand.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Main hand item<&a><context.entity.item_in_hand.display>"
        - if <context.entity.item_in_hand.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Main hand item durability<&a><context.entity.item_in_hand.durability><&e>/<&a><context.entity.item_in_hand.max_durability>"
        - if <context.entity.item_in_hand.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Main hand item enchantments<&a><context.entity.equipment.helmet.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.item_in_offhand> != i@air:
        - if <context.entity.item_in_offhand.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Off hand item<&a><context.entity.item_in_offhand.material.name>"
        - if <context.entity.item_in_offhand.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Off hand item<&a><context.entity.item_in_offhand.display>"
        - if <context.entity.item_in_offhand.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Off hand item durability<&a><context.entity.item_in_offhand.durability><&e>/<&a><context.entity.item_in_hand.max_durability>"
        - if <context.entity.item_in_offhand.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Off hand item enchantments<&a><context.entity.equipment.helmet.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.equipment.helmet> != i@air:
        - if <context.entity.equipment.helmet.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Helmet<&a><context.entity.equipment.helmet.material.name>"
        - if <context.entity.equipment.helmet.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Helmet<&a><context.entity.equipment.helmet.display>"
        - if <context.entity.equipment.helmet.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Helmet durability<&a><context.entity.equipment.helmet.durability><&e>/<&a><context.entity.equipment.helmet.max_durability>"
        - if <context.entity.equipment.helmet.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Helmet enchantments<&a><context.entity.equipment.helmet.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.equipment.chestplate> != i@air:
        - if <context.entity.equipment.Chestplate.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Chestplate<&a><context.entity.equipment.chestplate.material.name>"
        - if <context.entity.equipment.Chestplate.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Chestplate<&a><context.entity.equipment.chestplate.display>"
        - if <context.entity.equipment.chestplate.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Chestplate durability<&a><context.entity.equipment.chestplate.durability><&e>/<&a><context.entity.equipment.chestplate.max_durability>"
        - if <context.entity.equipment.chestplate.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Chestplate enchantments<&a><context.entity.equipment.chestplate.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.equipment.leggings> != i@air:
        - if <context.entity.equipment.Leggings.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Leggings<&a><context.entity.equipment.leggings.material.name>"
        - if <context.entity.equipment.Leggings.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Leggings<&a><context.entity.equipment.leggings.display>"
        - if <context.entity.equipment.leggings.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Leggings durability<&a><context.entity.equipment.helmet.durability><&e>/<&a><context.entity.equipment.leggings.max_durability>"
        - if <context.entity.equipment.leggings.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Leggings enchantments<&a><context.entity.equipment.leggings.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.equipment.boots> != i@air:
        - if <context.entity.equipment.Boots.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Boots<&a><context.entity.equipment.helmet.material.name>"
        - if <context.entity.equipment.Boots.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Boots<&a><context.entity.equipment.boots.display>"
        - if <context.entity.equipment.boots.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Boots durability<&a><context.entity.equipment.boots.durability><&e>/<&a><context.entity.equipment.boots.max_durability>"
        - if <context.entity.equipment.boots.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Boots enchantments<&a><context.entity.equipment.boots.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.has_effect>:
        - narrate targets:<context.damager> "<&c><&l>Potion Info:"
        - narrate targets:<context.damager> "<&5><&l>*<&5> Type Level Duration"
        - foreach <context.entity.list_effects> as:potions:
          - narrate "<&5><&a><[potions].split[,].get[1]> <&e><[potions].split[,].get[2]> <&a><duration[<[potions].split[,].get[3]>t].formatted>" targets:<context.damager>
      - narrate targets:<context.damager> "<&3>-----------------------------------------------------"
      - stop
    - if <context.damager.item_in_offhand.display> CONTAINS "Inspect target":
      - determine cancelled passively
      - narrate targets:<context.damager> "<&3>-----------------------------------------------------"
      - narrate targets:<context.damager> "<&e>Inspecting <&c><context.entity.name>:"
      - narrate targets:<context.damager> "<&c><&l>Health Info:"
      - narrate targets:<context.damager> "<&b><&9>Health<&a><context.entity.health.round_to[2]><&e>/<&2><context.entity.health_max.round_to[2]>"
      - narrate targets:<context.damager> "<&b><&9>Health Percentage<&a><context.entity.health_percentage>"
      - narrate targets:<context.damager> "<&b><&9>Health State<&a><context.entity.formatted_health.to_titlecase>"
      - narrate targets:<context.damager> "<&c><&l>Physical Info:"
      - narrate targets:<context.damager> "<&b><&9>Speed<&a><context.entity.speed>"
      - narrate targets:<context.damager> "<&c><&l>Combat Info:"
      - narrate targets:<context.damager> "<&b><&9>Melee attack damage<&a><context.entity.weapon_damage>"
      - narrate targets:<context.damager> "<&b><&9>Melee attack damage to you<&a><context.entity.weapon_damage[<context.damager>]>"
      - if <context.entity.type> == Player:
        - narrate targets:<context.damager> "<&b><&9>Melee attack speed<&a><context.entity.attack_cooldown_max_duration.formatted>"
      - narrate targets:<context.damager> "<&b><&9>Melee attack damage you'll deal<&a><context.damager.weapon_damage[<context.entity>]>"
      - narrate targets:<context.damager> "<&b><&9>Melee attack damage that will be absorbed<&a><context.damager.weapon_damage.sub[<context.damager.weapon_damage[<context.entity>]>]>"
      - narrate targets:<context.damager> "<&b><&9>Armor<&a><context.entity.armor_bonus>"
      - if <context.entity.equipment> != "li@i@air|i@air|i@air|i@air":
        - narrate targets:<context.damager> "<&c><&l>Equipment Info:"
      - if <context.entity.item_in_hand> != i@air:
        - if <context.entity.item_in_hand.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Main hand item<&a><context.entity.item_in_hand.material.name>"
        - if <context.entity.item_in_hand.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Main hand item<&a><context.entity.item_in_hand.display>"
        - if <context.entity.item_in_hand.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Main hand item durability<&a><context.entity.item_in_hand.durability><&e>/<&a><context.entity.item_in_hand.max_durability>"
        - if <context.entity.item_in_hand.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Main hand item enchantments<&a><context.entity.equipment.helmet.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.item_in_offhand> != i@air:
        - if <context.entity.item_in_offhand.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Off hand item<&a><context.entity.item_in_offhand.material.name>"
        - if <context.entity.item_in_offhand.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Off hand item<&a><context.entity.item_in_offhand.display>"
        - if <context.entity.item_in_offhand.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Off hand item durability<&a><context.entity.item_in_offhand.durability><&e>/<&a><context.entity.item_in_hand.max_durability>"
        - if <context.entity.item_in_offhand.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Off hand item enchantments<&a><context.entity.equipment.helmet.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.equipment.helmet> != i@air:
        - if <context.entity.equipment.helmet.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Helmet<&a><context.entity.equipment.helmet.material.name>"
        - if <context.entity.equipment.helmet.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Helmet<&a><context.entity.equipment.helmet.display>"
        - if <context.entity.equipment.helmet.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Helmet durability<&a><context.entity.equipment.helmet.durability><&e>/<&a><context.entity.equipment.helmet.max_durability>"
        - if <context.entity.equipment.helmet.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Helmet enchantments<&a><context.entity.equipment.helmet.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.equipment.chestplate> != i@air:
        - if <context.entity.equipment.Chestplate.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Chestplate<&a><context.entity.equipment.chestplate.material.name>"
        - if <context.entity.equipment.Chestplate.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Chestplate<&a><context.entity.equipment.chestplate.display>"
        - if <context.entity.equipment.chestplate.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Chestplate durability<&a><context.entity.equipment.chestplate.durability><&e>/<&a><context.entity.equipment.chestplate.max_durability>"
        - if <context.entity.equipment.chestplate.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Chestplate enchantments<&a><context.entity.equipment.chestplate.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.equipment.leggings> != i@air:
        - if <context.entity.equipment.Leggings.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Leggings<&a><context.entity.equipment.leggings.material.name>"
        - if <context.entity.equipment.Leggings.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Leggings<&a><context.entity.equipment.leggings.display>"
        - if <context.entity.equipment.leggings.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Leggings durability<&a><context.entity.equipment.helmet.durability><&e>/<&a><context.entity.equipment.leggings.max_durability>"
        - if <context.entity.equipment.leggings.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Leggings enchantments<&a><context.entity.equipment.leggings.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.equipment.boots> != i@air:
        - if <context.entity.equipment.Boots.has_display.not>:
          - narrate targets:<context.damager> "<&b><&b><&l>Boots<&a><context.entity.equipment.helmet.material.name>"
        - if <context.entity.equipment.Boots.has_display>:
          - narrate targets:<context.damager> "<&b><&b><&l>Boots<&a><context.entity.equipment.boots.display>"
        - if <context.entity.equipment.boots.max_durability> >= 0:
          - narrate targets:<context.damager> "<&b><&9>Boots durability<&a><context.entity.equipment.boots.durability><&e>/<&a><context.entity.equipment.boots.max_durability>"
        - if <context.entity.equipment.boots.enchantments> != li@:
          - narrate targets:<context.damager> "<&b><&9>Boots enchantments<&a><context.entity.equipment.boots.enchantments.with_levels.separated_by[<&e>|<&a>]>"
      - if <context.entity.has_effect>:
        - narrate targets:<context.damager> "<&c><&l>Potion Info:"
        - narrate targets:<context.damager> "<&5><&l>*<&5> Type Level Duration"
        - foreach <context.entity.list_effects> as:potions:
          - narrate "<&5><&a><[potions].split[,].get[1]> <&e><[potions].split[,].get[2]> <&a><duration[<[potions].split[,].get[3]>t].formatted>" targets:<context.damager>
      - narrate targets:<context.damager> "<&3>-----------------------------------------------------"
      - stop