Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- if Line 1 of attacker's tool's lore contains "リス地設定":
- execute console command "/spawnpoint %attacker%"
- if Line 2 of attacker's tool's lore contains "HP回復":
- set {_a} to Line 2 of attacker's tool's lore
- numpick(Line 2 of attacker's tool's lore)
- message "%{_re}%" to attacker
- set {_num} to {_re}
- set {_num1} to {_num} * 20
- set {_num2} to {_num1} / 100
- set {_num3} to damage * {_num2}
- add {_num3} to attacker's health
- if Line 3 of attacker's tool's lore contains "放火":
- execute console command "execute %attacker% ~ ~ ~ /setblock ~ ~ ~ fire 0 keep"
- if Line 4 of attacker's tool's lore contains "爆発":
- set {_a} to Line 4 of attacker's tool's lore
- numpick({_a})
- set {_num} to {_re}
- make a safe explosion of power {_num}
- set {isexplo.%attacker%} to true
- if Line 6 of attacker's tool's lore contains "ウィザー":
- execute console command "/effect %victim% wither 10 1"
- every 2 ticks:
- loop all players:
- set {_num1} to 0
- if Line 5 of loop-player's leggings's lore contains "矢殺し":
- set {_a} to Line 5 of loop-player's leggings's lore
- numpick({_a})
- set {_num} to {_re}
- {power.%loop-player%} is greater than or equal to 2
- remove 2 from {power.%loop-player%}
- loop entities in radius {_num1} of loop-player's location:
- loop-entity-1 is an arrow
- kill the loop-entity-1
- on damage:
- if {isexplo.%victim%} is set:
- cancel event
- clear {isexplo.%victim%}
- command /setlore <number> <text>:
- permission:skript.admin
- trigger:
- set line arg-1 of player's tool's lore to arg-2
- on right click on a sign:
- player's tool is not air
- if line 1 is "LoreSet":
- line 2 is set
- line 4 is set
- line 3 is set
- set {_line} to line 2
- evaluate "set line %line 2% of player's tool's lore to ""%line 3%"""
- set event-block to air
- function numpick(t: text) :: number:
- set {_text} to {_t}
- set {_args::*} to {_text} split at ""
- set {_count} to 1
- set {_re} to 0
- set {_b} to 1
- while {_args::%{_count}%} is set:
- set {_num} to {_args::%{_count}%} parsed as number
- if {_num} is set:
- add {_num} * {_b} to {_re}
- set {_b} to {_b} * 10
- clear {_num}
- add 1 to {_count}
- return {_re}
Add Comment
Please, Sign In to add comment