Date: 2023/02/26 01:52:27 UTC-08:00
Type: Denizen 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
32
33
34
35
36
37
TaserG1:
type: item
material: netherite_shovel
display name: <&f>Taser
lore:
- <n><gray>Zap!
- <empty>
- <&f>Ranged Damage: +2
- <empty>
- <green>★☆☆☆☆
- <green><bold>Uncommon Weapon
flags:
rangedamage: 2
weapon: taser
mechanisms:
hides:
- ATTRIBUTES
- UNBREAKABLE
- ITEM_DATA
unbreakable: true
attribute_modifiers:
generic_attack_damage:
1:
operation: add_number
amount: 5
slot: hand
id: 10000000-1000-1000-1000-100000000000
TaserAbility:
type: world
events:
on player clicks block:
- if <player.item_in_hand.advanced_matches[TaserG1]>:
- define playerloc at:<player.location>
- define hit at:<player.eye_location.ray_trace[range=2;ignore=<player>;fluids=true;nonsolids=true]||null>
- if <[hit]> != null:
- playeffect effect:flame offset:0 at:<[playerloc].points_between[<[hit].forward[2]>].distance[0.2]>