- 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
Date2014/07/16 20:54:08 UTC-07:00
ByAnthony
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
35
36
37
38
39
40
41
42
4200
'SlingShotData':
  type: task
  debug: false
  
  arm1: l@298.0,107.0,-12.0,FairGrounds
  arm2: l@298.0,107.0,-2.0,FairGrounds
  base: l@298.0,32.0,-7.0,FairGrounds

'SlingShotCommands':
  type: world
  debug: true
  events:
    on slingshot command:
    - if !<player.has_permission[denizen.slingshot.admin]> queue stop
    - determine passively fulfilled
    - run locally <c.args.get[1]>
    - inject locally help

  create:
    - ^define arm1 <s@SlingShotData.constant[arm1]>
    - ^define arm2 <s@SlingShotData.constant[arm2]>
    - ^define base <s@SlingShotData.constant[base]>

    - ^spawn e@villager[velocity=0,0,0] <def[arm1].add[0.5,1,0.5]> save:arm1
    - ^mount <entry[arm1].spawned_entities.get[1].as_entity> <def[arm1].add[0.5,1,0.5]>
    - ^spawn e@villager[velocity=0,0,0] <def[arm2].add[0.5,1,0.5]> save:arm2
    - ^mount <entry[arm2].spawned_entities.get[1].as_entity> <def[arm2].add[0.5,1,0.5]>
    - ^spawn e@minecart <def[base].add[0.5,1,0.5]> save:minecart
    - ^narrate "<entry[minecart].spawned_entities.get[1]>"

    - ^leash <entry[minecart].spawned_entities.get[1].as_entity> holder:<entry[arm1].spawned_entities.get[1].as_entity>
    - ^narrate "<entry[minecart].spawned_entities.get[1].as_entity.is_leashed>"
    - ^leash <entry[minecart].spawned_entities.get[1].as_entity> holder:<entry[arm2].spawned_entities.get[1].as_entity>
    - ^narrate "<entry[minecart].spawned_entities.get[1].as_entity.is_leashed>"
    - ^narrate "Entities spawned..."

    - ^wait 30s
    - ^leash cancel <entry[minecart].spawned_entities.get[1].as_entity> holder:%arm1%
    - ^leash cancel <entry[minecart].spawned_entities.get[1].as_entity> holder:%arm2%
    - ^remove <entry[minecart].spawned_entities.get[1].as_entity>
    - ^narrate "Entities removed..."



RawRaw



Pastes made: 62778