- 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
Date2015/06/05 06:59:22 UTC-07:00
ByFortifier42
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
24
25
26
27
28
29
30
31
32
33
34
3400
Chocolate:
    type: item
    material: i@nether_brick_item
    display name: Chocolate Bar
    recipe:
        - i@sugar|i@sugar|i@sugar
        - i@cocoa_beans|i@cocoa_beans|i@cocoa_beans
        - i@sugar|i@sugar|i@sugar
    lore:
        - Gives you a sugar rush!
        - Allows you to run fast, break blocks fast!!
        - But then you crash and slow down a lot too...

Eat Chocolate:
    type: world
    events:
        on player right clicks with Chocolate:
            - if !<player.has_flag[Chocolate]> {
                - ^take iteminhand
                #- narrate "You ate a Chocolate Bar and gained a sugar rush!" targets:<player>
                - adjust <player> 'food_level:<player.food_level.add[3].min[20]>'
                - cast SPEED d:10 power:2 <player>
                - cast FAST_DIGGING d:10s <player>
                - cast JUMP d:5s <player>
                - wait 10s
                #- narrate "You crash from your sugar rush and slow down!"
                - cast SLOW d:4s <player>
                - cast SLOW_DIGGING d:4s <player>
                - flag player Chocolate d:14s
            }
            else {
                - narrate "You can't eat more chocolate yet!" targets:<player>
            }



RawRaw



Pastes made: 65641