Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-------------------------------------------------------
- # Ecrire en couleur sur les panneaux
- #-------------------------------------------------------
- on sign change:
- replace "$" in line 1 with "§"
- replace "$" in line 2 with "§"
- replace "$" in line 3 with "§"
- replace "$" in line 4 with "§"
- #-------------------------------------------------------
- # Faire nager les chevaux
- #-------------------------------------------------------
- every 0.6 seconds:
- loop all horses:
- block below loop-entity is water:
- push the loop-entity up at speed 0.5
- else:
- block at loop-entity is water:
- push the loop-entity up at speed 0.5
- #-------------------------------------------------------
- # S'asseoir sur les escaliers
- #-------------------------------------------------------
- command /chair:
- trigger:
- set {_block} to targeted block
- spawn 1 arrow above {_block}
- set {chair::%spawned entity%} to true
- set block above targeted block to wooden stairs
- while spawned entity exists:
- teleport spawned entity above {_block}
- wait 1 tick
- on damage:
- {chair::%victim%} is true
- cancel event
- on right click:
- clicked block is wooden stairs
- loop entities in radius 2 around clicked block:
- {chair::%loop-entity%} is set
- make player ride loop-entity
- while loop-entity exists:
- if player is sneaking:
- stop
- teleport player to loop-entity
- wait 1 tick
- #-------------------------------------------------------
- # Système wireless (redstone sans fil)
- #-------------------------------------------------------
- on rightclick on button:
- loop blocks in radius 5 around event-block:
- loop-block is sign
- line 1 of loop-block is "[rt]"
- set {red.%player%.last} to line 2 of loop-block
- set {red.%player%.carry} to true
- if {red.%player%.carry} is true:
- delete {red.%player%.carry}
- loop blocks in radius 50 around event-block:
- loop-block is sign
- line 1 of loop-block is "[rr]"
- line 2 of loop-block is {red.%player%.last}
- if line 3 of loop-block is "1" or "":
- if {red.%location of loop-block%.enabled} is not set:
- if the block under the block in front of the loop-block is air:
- set block under the block in front of the loop-block to stone
- set block in front of loop-block to active redstone torch
- set {red.%location of loop-block%.enabled} to true
- else:
- set block in front of loop-block to air
- delete {red.%location of loop-block%.enabled}
- if line 3 of loop-block is "2":
- if {red.%location of loop-block%.enabled} is not set:
- if the block under the block 2 blocks in front of the loop-block is air:
- set block under the block 2 blocks in front of the loop-block to stone
- set block 2 blocks in front of loop-block to active redstone torch
- set {red.%location of loop-block%.enabled} to true
- else:
- set block 2 blocks in front of loop-block to air
- delete {red.%location of loop-block%.enabled}
- if line 3 of loop-block is "3":
- if {red.%location of loop-block%.enabled} is not set:
- if the block under the block 3 blocks in front of the loop-block is air:
- set block under the block 3 blocks in front of the loop-block to stone
- set block 3 blocks in front of loop-block to active redstone torch
- set {red.%location of loop-block%.enabled} to true
- else:
- set block 3 blocks in front of loop-block to air
- delete {red.%location of loop-block%.enabled}
- #----------------------------------------------------------------------
- # Se téléporter à l'endroit que l'on pointe avec une boussole
- #----------------------------------------------------------------------
- aliases:
- # blocks without collision as of Minecraft 1.5 (excluding fire, nether portal & end portal)
- nonsolid = 0, 6, 27, 28, 30, 31, 32, 37, 38, 39, 40, 50, 55, 59, 63, 64, 65, 66, 68, 69, 70, 71, 72, 75, 76, 77, 78:0, 83, 85:4-7, 104, 105, 106, 111, 115, 131, 132, 141, 142, 143, 147, 148, 157
- on rightclick with compass:
- player has permission "skript.admin"
- loop blocks above targeted block:
- loop-block is nonsolid
- block above loop-block is nonsolid
- teleport player to loop-block
- stop trigger
- #----------------------------------------------------------------------
- # Calculatrice
- #----------------------------------------------------------------------
- command /calc <number> <text> <number>:
- description: §bCalculatrice (c'est explicite non ?)
- usage:§b/calc §6valeur (+ - * / ^) valeur
- executable by: players
- aliases: /c
- trigger:
- set {_a} to arg 1
- set {_b} to arg 3
- set {_result} to 0
- if arg 2 is "+":
- set {_result} to {_a} + {_b}
- message "<light green>%{_result}%"
- if arg 2 is "-":
- set {_result} to {_a} - {_b}
- message "<light green>%{_result}%"
- if arg 2 is "*":
- set {_result} to {_a} * {_b}
- message "<light green>%{_result}%"
- if arg 2 is "/":
- set {_result} to {_a} / {_b}
- message "<light green>%{_result}%"
- if arg 2 is "^":
- set {_result} to {_a} ^ {_b}
- message "<light green>%{_result}%"
Advertisement
Add Comment
Please, Sign In to add comment