SHARE
TWEET

Untitled

a guest Nov 18th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. on rightclick with nether star:
  3.     execute console command "/applyskill %player%"
  4.  
  5. command /skill:
  6.     trigger:
  7.         open chest with 5 row named "<green>ステータス振り" to player
  8.         wait 1 tick
  9.         format slot 7 of player with {level.%player%} of nether star named "<pink>残りポイント" to run ""
  10.         format slot 10 of player with iron sword named "&c攻撃力 Lv%{strL.%player%}%" to run "upskill 攻撃力 %player%"
  11.         format slot 12 of player with iron chestplate named "&3防御力 Lv%{defL.%player%}%" to run "upskill 防御力 %player%"
  12.         format slot 14 of player with blaze rod named "&a魔力 Lv%{magL.%player%}%" to run "upskill 魔力 %player%"
  13.         format slot 16 of player with emerald named "&a運 Lv%{lukL.%player%}%" to run "upskill 運 %player%"
  14.         format slot 28 of player with anvil named "&e器用 Lv%{kiyL.%player%}%" to run "upskill 器用 %player%"
  15.         format slot 30 of player with Pink Dye named "&b体力 Lv%{MAXHPL.%player%}%" to run "upskill 体力 %player%"
  16.         format slot 8 of player with barrier named "<red>キャンセル" to close
  17.        
  18. command /upskill <string> <player>:
  19.     permission:console
  20.     trigger:
  21.         if {level.%arg 2%} < 1:
  22.             message "&eスキルポイントが足りません!" to arg 2
  23.         {level.%arg 2%} > 0:   
  24.             add -1 to {level.%arg 2%}
  25.             remove 1 from {level.%player%}
  26.             if arg 1 is "攻撃力":
  27.                 add 1 to {strL.%arg 2%}
  28.                 add 3 to {str.%arg 2%}
  29.             if arg 1 is "防御力":
  30.                 add 1 to {defL.%arg 2%}
  31.                 add 1 to {def.%arg 2%}
  32.             if arg 1 is "魔力":
  33.                 add 1 to {mag.%arg 2%}
  34.                 add 1 to {magL.%arg 2%}
  35.             if arg 1 is "運":
  36.                 add 1 to {luk.%arg 2%}
  37.                 add 1 to {lukL.%arg 2%}
  38.             if arg 1 is "器用":
  39.                 add 1 to {kiy.%arg 2%}
  40.                 add 1 to {kiyL.%arg 2%}
  41.             if arg 1 is "体力":
  42.                 add 1 to {MAXHPL.%arg 2%}
  43.                 add 10 to {MAXhp.%arg 2%}
  44.  
  45.  
  46.  
  47. command /skillstatus:
  48.     trigger:
  49.         message "&a----------&e%player%のステータス&a----------"
  50.         message "&9Lv:%{Lv.%player%}%"
  51.         message "&c攻撃力:%{str.%player%}%"
  52.         message "&3防御力:%{def.%player%}%"
  53.         message "&5魔力:%{mag.%player%}%"
  54.         message "&a運:%{luk.%player%}%"
  55.         message "&e器用:%{kiy.%player%}%"
  56.         message "&d体力:%{hp.%player%}%/%{MAXhp.%player%}%"
  57.         message "&2EXP:%{EXP.%player%}%"
  58.         message "&2NextEXP:%{NextEXP.%player%}%"
  59.         message "&6お金:%{many.%player%}%"
  60.  
  61.  
  62. on join:
  63.     set {1.%player%} to -1
  64.     add 1 to {join.%player%}
  65.     if {join.%player%} is 1:
  66.         set {str.%player%} to 3
  67.         set {def.%player%} to 0
  68.         set {mag.%player%} to 1
  69.         set {luk.%player%} to 1
  70.         set {kiy.%player%} to 1
  71.         set {MAXHP.%player%} to 20
  72.         set {EXP.%player%} to 0
  73.         set {NextEXP.%player%} to 10
  74.         set {Lv.%player%} to 1
  75.         set {level.%player%} to 0
  76.         set {many.%entity%} to 10
  77. on damage of an entity:
  78.     cancel event
  79.     victim is a entity:
  80.         attacker is a entity:
  81.             set {armor.%attacker%} to 0
  82.             set {tool.%attacker%} to 0
  83.             if attacker's held item's name is "§3【聖剣】§6覚醒ぽんめカリバー":
  84.                 set {tool.%attacker%} to 9999
  85.             else if attacker's held item's name is "最初の棒":
  86.                 set {tool.%attacker%} to +10
  87.             else if attacker's held item's name contains "ガタガタ":
  88.                 add -2 to {tool.%attacker%}
  89.             else if attacker's held item's name contains "石の":
  90.                 add 3 to {tool.%attacker%}
  91.             else if attacker's held item's name contains "剣":
  92.                 add 5 to {tool.%attacker%}
  93.             else if victim's held item's lore contains "防御力+":
  94.                 add 5 to {armor.%victim%}
  95.             if {coll.%attacker%} is not 1:
  96.                 if {coll2.%attacker%} is not 1:
  97.                     set {_damage.%victim%} to ({str.%attacker%}-{def.%victim%}+{tool.%attacker%}-{armor.%victim%})
  98.                     execute victim command "/playsound entity.player.hurt master %victim%"
  99.                     if {_damage.%victim%} > 0:
  100.                         set {hp.%victim%} to {hp.%victim%}-{_damage.%victim%}
  101.                         if {hp.%victim%} < 1:
  102.                             set {EXPa.%attacker%} to {Lv.%attacker%}-{Lv.%victim%}
  103.                             if {EXPa.%attacker%} < 1:
  104.                                 add {EXP.%victim%} to {EXP.%attacker%}
  105.                                 add {many.%victim%} to {many.%attacker%}
  106.                             if {EXPa.%attacker%} > 1:
  107.                                 add {EXP.%victim%}/{EXPa%attacker%} to {EXP.%attacker%}
  108.                                 add {many.%victim%} to {many.%attacker%}
  109.                             set the health of victim to -1
  110.                         if {coll.%attacker%} is not 1:
  111.                             message "&e%{_damage.%victim%}%ダメージ与えた!" to attacker
  112.                             message "&e敵の残りHP&a%{hp.%victim%}%&e/&a%{MAXhp.%victim%}%" to attacker
  113.                         if {coll2.%victim%} is not 1:
  114.                             message "&c%{_damage.%victim%}%ダメージ与えられた!" to victim
  115.                             message "&c自分の残りHP&a%{hp.%victim%}%&c/&a%{MAXhp.%victim%}%" to victim
  116.                     else if {_damage.%victim%} < 1:
  117.                         message "&9あなたのレベルではこのモンスターにダメージを与えることはできません!" to attacker
  118.                         set {armor.%attacker%} to 0
  119.                         set {tool.%attacker%} to 0
  120.                 if {EXP.%attacker%} >= {NextEXP.%attacker%}:
  121.                     add 1 to {Lv.%attacker%}
  122.                     add 1 to {level.%attacker%}
  123.                     set {EXPb.%attacker%} to {EXP.%attacker%}-{NextEXP.%attacker%}
  124.                     if {EXPb.%attacker%} > {NextEXP.%attacker%}:
  125.                         set {EXP.%attacker%} to 0
  126.                     if {EXPb.%attacker%} < {NextEXP.%attacker%}:
  127.                         set {EXP.%attacker%} to {EXPb.%attacker%}
  128.                     set {NextEXP.%attacker%} to {NextEXP.%attacker%}+{Lv.%attacker%}*5+{Lv.%attacker%}*{Lv.%attacker%}
  129.     attacker is a player:
  130.         if {coll.%attacker%} is 0:
  131.             set {coll.%attacker%} to 1
  132.             wait 0.5 seconds
  133.             set {coll.%attacker%} to 0
  134.  
  135. command /coll:
  136.     permission:skript.admin
  137.     trigger:
  138.         message "%{coll.%player%}%"
  139.         set {coll.%player%} to 0
  140.        
  141.  
  142. on death:
  143.     set {hp.%player%} to {MAXhp.%player%}
  144.  
  145.  
  146. on spawn:
  147.     if name of entity is "§fゾンビ§9[Lv.1]":
  148.         broadcast "test"
  149.         set {def.%entity%} to 0
  150.         set {hp.%entity%} or {MAXhp.%entity%} to 20
  151.         set {str.%entity%} to 5
  152.         set {Lv.%entity%} to 1
  153.         set {EXP.%entity%} to 1 or 2
  154.         set {many.%entity%} to 5 or 6 or 4
  155. on spawn:
  156.     if name of entity is "§fスケルトン§9[Lv.3]":
  157.         broadcast "test"
  158.         set {def.%entity%} to 5
  159.         set {hp.%entity%} or {MAXhp.%entity%} to 50
  160.         set {str.%entity%} to 10
  161.         set {Lv.%entity%} to 3
  162.         set {EXP.%entity%} to 5 or 4
  163.         set {many.%entity%} to 15 or 16 or 17
  164. on spawn:
  165.     if name of entity is "§fゾンビ§9[§4BOSS§9]":
  166.         set {def.%entity%} to 50
  167.         set {hp.%entity%} or {MAXhp.%entity%} to 100
  168.         set {str.%entity%} to 50
  169.         set {Lv.%entity%} to 30
  170.         set {EXP.%entity%} to 500
  171.         set {many.%entity%} to 450
  172. on spawn:
  173.     if name of entity is "^p^":
  174.         set {def.%entity%} to 0
  175.         set {hp.%entity%} or {MAXhp.%entity%} to 500
  176.         set {str.%entity%} to 11
  177.         set {A.%entity%} to 1
  178.         set {coll%entity%} to 0
  179.  
  180. command /skillSET:
  181.     trigger:
  182.     permission:skript.admin
  183.         set {str.%player%} to 3
  184.         set {def.%player%} to 0
  185.         set {mag.%player%} to 1
  186.         set {luk.%player%} to 1
  187.         set {kiy.%player%} to 1
  188.         set {MAXhp.%player%} to 20
  189.         set {EXP.%player%} to 0
  190.         set {NextEXP.%player%} to 10
  191.         set {Lv.%player%} to 1
  192.         set {level.%player%} to 0
  193.         set {EXP10%player%} to 0
  194.         set {shoot.%player%} to 0
  195.         set {strL.%player%} to 1
  196.         set {defL.%player%} to 1
  197.         set {magL.%player%} to 1
  198.         set {MAXHPL.%player%} to 1
  199. command /skilltest:
  200.     permission:skript.admin
  201.     trigger:
  202.         message "%{hp.%player%}%"
  203.         message "%{G.%player%}%"
  204. command /housyuu [<text>] [<player>]:
  205.     permission:skript.admin
  206.     trigger:
  207.         broadcast "%arg 1% %arg 2%"
  208.         if arg 1 is "1":
  209.             add 3 to {str.%arg 2%}
  210.             execute player command "/xp 10 %arg 2%"
  211.  
  212. #武器作成
  213. on rightclick:
  214.     clicked block is Anvil:
  215.         if player has an Stick:
  216.             if player has an Stick:
  217.                 message ""
  218. command /000:
  219.     permission:skript.admin
  220.     trigger:
  221.         message "%{EXP10.%player%}%"
  222.         set {coll%player%} to 0
  223.  
  224.        
  225. On Pick Up nether star:
  226.     add 1 to {EXP10.%player%}
  227.     wait 0.1 seconds
  228.     remove 1 of nether star from player
  229.     message "1EXP" to player
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236. On Break of stone:
  237.     Cancel event
  238.     execute console command "/give %player% minecraft:cobblestone %{Blockgive.%player%}% 0"
  239. On Break of coal ore:
  240.     Cancel event
  241.     execute console command "/give %player% minecraft:coal %{Blockgive.%player%}% 0"
  242. On Break of iron ore:
  243.     Cancel event
  244.     execute console command "/give %player% minecraft:iron_ingot %{Blockgive.%player%}% 0"
  245. On Break of gold ore:
  246.     Cancel event
  247.     execute console command "/give %player% minecraft:gold_ingot %{Blockgive.%player%}% 0"
  248. On Break of redstone ore:
  249.     Cancel event
  250.     execute console command "/give %player% minecraft:redstone %{Blockgive.%player%}% 0"
  251. On Break of diamond ore:
  252.     Cancel event
  253.     execute console command "/give %player% minecraft:diamond %{Blockgive.%player%}% 0"
  254. On Break of emerald ore:
  255.     Cancel event
  256.     execute console command "/give %player% minecraft:emerald %{Blockgive.%player%}% 0"
  257. On Break of Lapis Lazuli Ore:
  258.     Cancel event
  259.     execute console command "/give %player% minecraft:dye %{Blockgive.%player%}% 4"
  260. command /set <player>:
  261.     permission:skript.admin
  262.     trigger:
  263.         set {Blockgive.%arg%} to 1
  264. command /addset <player>:
  265.     permission:skript.admin
  266.     trigger:
  267.         add 1 to {Blockgive.%arg%}
  268. command /Block <player>:
  269.     permission:skript.admin
  270.     trigger:
  271.         broadcast "%{shoot.%arg%}%"
  272.         set {shoot%player%} to 1
  273. #魔法
  274. on rightclick with Blaze Rod:
  275.     if {shoot.%player%} is not 1:
  276.         Shoot a Snowball
  277.         set {shoot.%player%} to 1
  278.         wait 1 seconds
  279.         set {shoot.%player%} to 0
  280.  
  281.    
  282. #Bottle o' Enchanting
  283. #Firework Rocket
  284. #Snowball
  285. #Ender Pearl
  286. #Arrow
  287.  
  288. command /314:
  289.     permission:skript.admin
  290.     trigger:
  291.         set {many.%player%} to 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top