- 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


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2019/12/21 23:57:25 UTC-08:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2300
horse_stick:
  type: item
  material: stick
  display name<&8>Horse Stick
  
horse_inspect_handler:
  type: world
  events:
    on player right clicks horse with horse_stick bukkit_priority:LOWEST:
    - if !<player.has_flag[messageTimeout]>:
      - narrate "Right Clicked"
      - define jumpBaseVal:<context.entity.jump_strength>
      - define jumpCubedVal:<[jumpBaseVal].mul[<[jumpBaseVal]>].mul[<[jumpBaseVal]>]>
      - define jumpSquaredVal:<[jumpBaseVal].mul[<[jumpBaseVal]>]>
      - narrate "Jump <[-0.1817584952].mul[<[jumpCubedVal]>].add[3.689713992].mul[<[jumpSquaredVal]>].add[2.128599134].mul[<[jumpBaseVal]>]sub[0.343930367]>"
      - narrate "Speed <context.entity.speed>"
      - narrate "Health <context.entity.health_max.round_to_precision[<#.#>]>"
      - narrate "Tamed <context.entity.is_tamed||null>"
      - narrate "Owner <context.entity.owner.name||none>"
      - narrate "Breed <context.entity.can_breed||none>"
      - flag player messageTimeout duration:10t
      - determine cancelled



RawRaw



Pastes made: 78234