Page 1 of 1

Ride The Chickens

Posted: March 28th, 2019, 6:47 am
by mcmonkey
Morphan famously made this script: https://one.denizenscript.com/denizen/repo/entry/111

However it's not really fully functional on modern Minecraft, likely due to changes in how mob AI works.

I made a variant of it which uses modern Denizen syntax and makes use the "move" mechanism to function with modern Minecraft!

Note that by default, per the original script's design, you can't dismount - pressing LSHIFT will make you go faster, rather that dismount. To dismount you have to kill the chicken (walk it into something dangerous, like fire)!

Raw code:

Code: Select all

RideAllTheChickens:
  type: world
  debug: false
  events:
    on player right clicks chicken:
    - if <context.entity.has_passenger>:
        - stop
    - mount <player>|<context.entity> <context.entity.location>
    - adjust <context.entity> has_ai:false
    - wait 1t
    - actionbar "Press LSHIFT for TURBO SPEEEED"
    on player steers chicken:
    - define looking <player.location.direction.vector.with_y[0].div[3]>
    - define forward <[looking].mul[<context.forward>]>
    - define sideways <[looking].rotate_around_y[<element[90].to_radians>].mul[<context.sideways>]>
    - define speed 1
    - define upward <player.flag[RideAllTheChickens.JumpingVelocity]||0>
    - flag player RideAllTheChickens.JumpingVelocity:<[upward].sub[0.06]>
    - if <[upward]> <= 0 && <context.entity.location.sub[0,0.01,0].material.is_solid>:
        - flag player RideAllTheChickens.JumpingVelocity:0
        - define upward 0
        - if <context.jump>:
            - flag player RideAllTheChickens.JumpingVelocity:0.5
    - if <context.dismount>:
        - determine passively cancelled
        - define speed 10
    - define speed <tern[<context.dismount>]:10||1>
    - define velocity <[forward].add[<[sideways]>].mul[<[speed]>].add[0,<[upward]>,0]>
    - adjust <context.entity> move:<[velocity]>
    - if <[velocity].vector_length> > 0.01:
        - look <context.entity> <context.entity.eye_location.add[<[velocity]>]>
Haste link: https://one.denizenscript.com/haste/64120

Re: Ride The Chickens

Posted: December 4th, 2019, 8:26 pm
by mcmonkey
Updated to more modern syntax + fixed looking direction bork.

Re: Ride The Chickens

Posted: December 19th, 2019, 2:06 pm
by jose_95
Made chickens act like zelda chickens, now to watch people accidentally right click them >:D