View difference between Paste ID: Ld8f5iR1 and hY6MFbkA
SHOW: | | - or go back to the newest paste.
1
# ------------------------------------------ #
2
# ============== AUTOR / ZASADY ============ #
3
# ------------------------------------------ #
4
5
#Autorem skryptu jest KaVoGaming.
6
7
#Nie Wolno Ci sie podszywac pod autora!
8
9
# ------------------------------------------------ #
10
# ============== Ustawienia generalne ============ #
11
# ------------------------------------------------ #
12
options:
13
    xMin: -100   #Minimalny teleport dla X
14
    xMax: 4000   #Maksymalny teleport dla X
15
    zMin: -100   #Minimalny teleport dla Z
16
    zMax: 4000   #Maksymalny teleport dla Z
17
    yMin: 70     #Minimalny teleport dla Y
18
    yMax: 120    #Maksymalny teleport dla Y
19
    world: world   #Swiat w ktorym to ma byc wykonywane. (domyslnie jest world: world)
20
#--------------------------------------#
21
# ======== Bloki / MSG / PEX ========= #
22
#--------------------------------------#    
23-
    blok1: gold block   #Blok 1 na ktorym moze byc losowy teleport
23+
    blok1: end stone    #Blok na ktorym moze byc losowy teleport
24-
    blok2: end stone    #Blok 2 na ktorym moze byc losowy teleport
24+
25
#--------------------------------------#
26
# ======= Efekty / Sila / Czas ======= #
27
#--------------------------------------#  
28
    #Szybkosc
29
    efekt1: speed
30
    sila1: 3
31
    czas1: 40
32
    #Mdlosci
33
    efekt2: nausea
34
    sila2: 7
35
    czas2: 15
36
37
#--------------------------------------#
38
# =======-    KOD SKRYPTU     -======= #
39
#--------------------------------------#  
40
41
command /ltpautor:
42
    trigger:
43
        send "&l----------&9LTP &6&lv1.0&f----------"
44
        send "          &6Skrypt napisany dla &lMPCForum.pl &6Przez KaVoGaming"
45
        send "          &cNie wolno ci podszywac sie pod Autora Skryptu"
46
        send "&l----------&9LTP &6&lv1.0&f----------"
47
48
on rightclick on stone button:
49
    block behind target block is {@blok1}:
50-
    block behind target block is {@blok1} or {@blok2}:
50+
51
            set {_targetx} to a random integer between {@xMin} and {@xMax}
52
            set {_targetz} to a random integer between {@zMin} and {@zMax}
53
            execute console command "/tppos %player% %{_targetx}% {@yMin} %{_targetz}%" 			
54
            apply {@efekt1} {@sila1} to the player for {@czas1} seconds
55
            apply {@efekt2} {@sila2} to the player for {@czas2} seconds
56
            stop