- 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: Ride The Chickens


By Morphan1
Created: 2016/09/15 15:45:49 UTC-07:00 (8 years and 99 days ago)
Edited: 2016/11/29 11:16:29 UTC-08:00 (8 years and 24 days ago)
Likes: 2

Staff pick as of: 2016/09/15 18:31:27 UTC-07:00 (8 years and 99 days ago)
Denizen Version: 0.9.8-SNAPSHOT (dev build 7) - NO EARLIER
Script Version: 2
Description:

THIS SUNDAY SUNDAY SUNDAY
EXPERIENCE THE THRILL OF THE ANNUAL CHICKEN RACE
ARE YOU READY FOR BLOOD?
THERE'S GONNA BE FEATHERS FLYING AS THE CLUCKS OF THE CHICKENS INTENSIFY
IN THE END, THERE CAN BE ONLY ONE
AAARRREEE YOOOUUU READDYYYYDYYYYYDDYDYYYY??!!??!?!?

MOUNT YOUR CHICKEN!!!!
RIGHT-CLICK IT!!!!!!!!!
YOU CAN CONTROL IT!!
IT REALLY MOVES AROUND!!!

WANT A LITTLE MORE KICK IN YOUR REAR??
HOW'S THIS FOR A SLICE OF FRIED CHICKEN:::
YOU CAN'T DISMOUNT!!!!!!!!!
IF YOU EVEN TRY YOU'LL JUST GO FASTER

IMPRESS YOUR FRIENDS
WIN THE RACE
SUUUUUUNDAAAAAAAAAAAAYYYYYYYYYYYYYYYYYYYYYYYYYY

<--SCRIPT-TRACKER-->
PUBLIC_DATA=CHICKENS_RIDDEN,TOTAL_DISTANCE
TAGS=CHICKENS,RIDING,RIDE,CAPSLOCK,SUNDAY,IMPRESSIVE,FUN,LOL,GG,RACE,TURBO,CONTROL,REALLY,USEFUL
<--!SCRIPT-TRACKER-->



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
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
5900

RideAllTheChickens:
  type: world
  debug: false
  events:
    on player right clicks chicken:
    - mount <player>|<context.entity> <context.entity.location>
    - adjust <context.entity> has_ai:false
    - if !<context.entity.flag[RideAllTheChickens.WasRidden]||false> {
      - flag server RideAllTheChickens.Ridden:++
      - flag <context.entity> RideAllTheChickens.WasRidden
      }
    - wait 1t
    - actionbar "Press LSHIFT for TURBO SPEEEED"
    on player steers chicken:
    - if <context.jump> {
      - flag player RideAllTheChickens.ShouldJump:true
      }
    - flag player RideAllTheChickens.JumpCooldown:--
    - flag player RideAllTheChickens.TickCooldown:--
    - if <player.flag[RideAllTheChickens.TickCooldown]||0> > 0 {
      - flag player RideAllTheChickens.Forward:+:<context.forward>
      - flag player RideAllTheChickens.Sideways:+:<context.sideways>
      - if <context.dismount> {
        - determine cancelled
        }
      - queue clear
      }
    - flag player RideAllTheChickens.TickCooldown:5
    - define dividing <tern[<context.entity.is_on_ground>]:8||64>
    - if <context.dismount> {
      - define dividing <def[dividing].div[10]>
      - determine passively cancelled
      }
    - define forward <context.forward.add[<player.flag[RideAllTheChickens.Forward]||0>].div[<def[dividing]>]>
    - define sideways <context.sideways.add[<player.flag[RideAllTheChickens.Sideways]||0>].div[<def[dividing]>]>
    - define looking <player.location.direction.vector.sub[0,<player.location.direction.vector.y>,0]>
    - define velocity <def[looking].mul[<def[forward]>].add[<def[looking].rotate_around_y[<el@90.to_radians>].mul[<def[sideways]>]>]>
    - flag player RideAllTheChickens.Forward:0
    - flag player RideAllTheChickens.Sideways:0
    - if <player.flag[RideAllTheChickens.ShouldJump]||false> {
      - if <context.entity.is_on_ground> && <player.flag[RideAllTheChickens.JumpCooldown]||0> <= 0 {
        - define velocity <def[velocity].add[0,0.5,0]>
        - flag player RideAllTheChickens.JumpCooldown:10
        }
      - flag player RideAllTheChickens.ShouldJump:false
      }
    - define length <def[velocity].vector_length>
    - if <def[length]> > 0.01 {
      - look <context.entity> <context.entity.location.add[<def[velocity]>]>
      - adjust <context.entity> velocity:<context.entity.velocity.add[<def[velocity]>]>
      - flag server RideAllTheChickens.TotalDistance:+:<def[length]>
      }
    on system time hourly:
    - webget "http://stats.denizenscript.com/tracker?script=111&version=2&chickens_ridden=<server.flag[RideAllTheChickens.Ridden].round||0>&total_distance=<server.flag[RideAllTheChickens.TotalDistance].round_down||0>"
    - flag server RideAllTheChickens.Ridden:0
    - flag server RideAllTheChickens.TotalDistance:0







View History