SHARE
TWEET

Untitled

a guest Feb 27th, 2020 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /weaponstatus [<text>] [<text>] [<number>]:
  2.     permission: weapon.sk
  3.     aliases: /ws
  4.     trigger:
  5.         if arg-1 is set:
  6.             if arg-2 is "ct":
  7.                 set line 2 of lore of held item to colored "&3-&aCooltime&7:&f%arg-3%"
  8.             if arg-2 is "id":
  9.                 set line 3 of lore of held item to colored "&3-&8ID&7:&f%arg-3%"
  10.             set line 1 of lore of held item to colored "&9&l≪ &6Weapon&a&l-&6Status&9&l ≫"
  11.             set the name of held item to colored arg-1
  12.         else:
  13.             send "&a/weapon &c<weapon name> <weapon status> &c<number>"
  14.             send "&aWeaponStatus&7: &bct&7,&bid"
  15.  
  16. every 1 seconds in "world":
  17.     loop all players:
  18.         set {_weapon::*} to lore of loop-player's tool
  19.         loop {_weapon::*}:
  20.             loop-value-1 contains "&3-&8ID&7:&f":
  21.                 set {_n} to loop-value-1
  22.                 replace "&3-&8ID&7:&f" with "" in {_n}
  23.                 set {id.%loop-player%} to {_n} parsed as number
  24.         if {cooltime::%loop-player%::%{id.%loop-player%}%} >= 1:
  25.             loop 50 times:
  26.                 remove 1 from {cooltime::%loop-player%::%loop-number%}
  27.             if display name of loop-player's held item is set:
  28.                 send action bar "&d Item &3[ &r%display name of loop-player's held item% &3] &dCooltime &e[ %{cooltime::%loop-player%::%{id.%loop-player%}%}% &e]" to loop-player
  29.             else:
  30.                 send action bar "&d Name &3[ &r%loop-player% &3]" to loop-player
  31.         else:
  32.             if display name of loop-player's held item is set:
  33.                 send action bar "&d Item &3[ &r%display name of loop-player's held item% &3] &dCooltime &e[ Already &e]" to loop-player
  34.             else:
  35.                 send action bar "&d Name &3[ &r%loop-player% &3]" to loop-player
  36.  
  37. #-fall-damage-cancel-
  38.  
  39. on damage:
  40.     if damage cause is fall:
  41.         cancel event
  42. #-Shop-Chest-
  43.  
  44. on leftclick on chest:
  45.     if player is op:
  46.         if player is sneaking:
  47.             if block under the event-block is gold block:
  48.                 cancel event
  49.                 open chest with 6 rows named "shop-edit" to player
  50.                 set {_num} to 0
  51.                 loop 54 times:
  52.                     set {_shop} to "%inventory name of player's current inventory%"
  53.                     replace all "-edit" with "" in {_shop}
  54.                     set slot {_num} of player's current inventory to {%{_shop}%::%{_num}%}
  55.                     add 1 to {_num}
  56.  
  57. on rightclick on chest:
  58.     if block under the event-block is gold block:
  59.         cancel event
  60.         open chest with 6 rows named "shop" to player
  61.         set {_num} to 0
  62.         loop 54 times:
  63.             set {_shop} to "%inventory name of player's current inventory%"
  64.             set slot {_num} of player's current inventory to {%{_shop}%::%{_num}%}
  65.             add 1 to {_num}
  66.  
  67. on inventory close:
  68.     if inventory name of player's current inventory contain "-edit":
  69.         set {_num} to 0
  70.         loop 54 times:
  71.             set {_shop} to "%inventory name of player's current inventory%"
  72.             replace all "-edit" with "" in {_shop}
  73.             set {%{_shop}%::%{_num}%} to slot {_num} of player's current inventory
  74.             add 1 to {_num}
  75.         send "&6%{_shop}%&7の情報を保存しました"
  76.  
  77. #-Timer-
  78.  
  79. command /timer [<number>]:
  80.     permission: sk.admin
  81.     trigger:
  82.         set {timer} to arg-1
  83.         set {progress} to 100 / arg-1
  84.         set {ppercent} to 100
  85.  
  86. every 1 seconds in "world":
  87.     if {timer} >= 0:
  88.         loop all players:
  89.             create bossbar titled "&e[ %{timer}% Seconds &e]" and id "timer" for loop-player with progress {ppercent} with colors green
  90.         remove {progress} from {ppercent}
  91.         remove 1 from {timer}
  92.     else if {timer} <= 0:
  93.         remove bossbar "timer"
  94.         delete {player::*}
  95.         set {ffa} to false
  96.         send all players title "&4! - &cタイムアップ&4 - !" for 3 seconds
  97.         teleport all players to {lobby}
  98.         delete {timer}
  99.  
  100. #-Gamemode-
  101.  
  102. command /game [<text>]:
  103.     permission: sk.admin
  104.     trigger:
  105.         if arg-1 is "ffa":
  106.             ffastart(player)
  107.         if arg-1 is "tdm":
  108.             tdmstart(player)
  109.         if arg-1 is not set:
  110.             send "&c/game ffa,tdm"
  111.  
  112. command /ss [<text>]:
  113.     permission: sk.admin
  114.     trigger:
  115.         if arg-1 is "lobby":
  116.             send "&a待機場所を設定しました。"
  117.             set {lobby} to location of event-player
  118.         if arg-1 is "ffa":
  119.             send "&a待機場所を設定しました。"
  120.             set {ffa} to location of event-player
  121.         if arg-1 is "blue":
  122.             send "&a待機場所を設定しました。"
  123.             set {bspawn} to location of event-player
  124.         if arg-1 is "red":
  125.             send "&a待機場所を設定しました。"
  126.             set {rspawn} to location of event-player
  127.  
  128.  
  129. on quit:
  130.     if {player::*} contains "%player%":
  131.         remove player from {player::*}
  132.         death()
  133.  
  134. on join:
  135.     if {game} is true:
  136.         send "&c試合がすでに始まっているので観戦です。"
  137.         send "&c少々お待ちください。"
  138.         set player's gamemode to adventure
  139.         teleport player to {lobby}
  140.     else:
  141.         teleport player to {lobby}
  142.         set player's gamemode to adventure
  143.  
  144. on damage of player:
  145.     health of victim*2 <= final damage
  146.     cancel event
  147.     broadcast "&7%attacker% &f≪&r%display name of attacker's held item%&f≫ &ckilled &7%victim%"
  148.     heal victim
  149.     set victim's gamemode to spectator
  150.     remove victim from {player::*}
  151.     death()
  152.  
  153. function ffastart(p: player):
  154.     if {game} is not set:
  155.         set {game} to false
  156.     else if {game} is true:
  157.         send "&cもうすでに試合が始まっています。" to {_p}
  158.     else if {game} is false:
  159.         loop all players:
  160.             teleport loop-player to {ffa}
  161.         start()
  162.  
  163. function start():
  164.     broadcast "&a5秒後にスタートします..."
  165.     wait 2 seconds
  166.     send all players title "&6[ &a3 &6]" for 1 seconds
  167.     wait 1 seconds
  168.     send all players title "&6[ &e2 &6]" for 1 seconds
  169.     wait 1 seconds
  170.     send all players title "&6[ &c1 &6]" for 1 seconds
  171.     wait 1 seconds
  172.     send all players title "&6[ &aSTART &6]" for 1 seconds
  173.     loop all players:
  174.         add loop-player to {player::*}
  175.     set {_num} to number of {player::*}
  176.     broadcast "&b残り%{_num}%人です。"
  177.     command "/timer 600"
  178.     set {game} to true
  179.  
  180. function tdmstart(p: player):
  181.     if {game} is not set:
  182.         set {game} to false
  183.     else if {game} is true:
  184.         send "&cもうすでに試合が始まっています。" to {_p}
  185.     else if {game} is false:
  186.         loop all players:
  187.             if number of {red::*} is 0:
  188.                 add loop-player to {red::*}
  189.                 send loop-player title "&6[ &c赤チーム &6]" for 3 seconds
  190.             if number of {red::*} = number of {blue::*}:
  191.                 add loop-player to {red::*}
  192.                 send loop-player title "&6[ &c赤チーム &6]" for 3 seconds
  193.             if number of {red::*} > number of {blue::*}:
  194.                 add loop-player to {blue::*}
  195.                 send loop-player title "&6[ &9蒼チーム &6]" for 3 seconds
  196.             teleport {blue::*} to {bspawn}
  197.             teleport {red::*} to {rspawn}
  198.         start()
  199.  
  200. function death():
  201.     set {_num} to number of {player::*}
  202.     if {_num} <= 1:
  203.         broadcast "&eWinner &8- &b%{players::*}%"
  204.         set {game} to false
  205.         teleport all players to {lobby}
  206.         delete {timer}
  207.         remove bossbar "timer"
  208.     else:
  209.         broadcast "&b残り%{_num}%人です。"
  210.  
  211. on rightclick with bone:
  212.     set {_loc} to location of event-player
  213.     add 1.5 to y-coordinate of {_loc}
  214.     execute console command "playsound minecraft:BLOCK_ANVIL master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 0"
  215.     set {_a2} to yaw of location of event-player - 270
  216.     set {_a1} to Pitch of location of event-player * -1
  217.     set {_x} to sin(90-{_a1}) * cos({_a2}) * 1
  218.     set {_z} to sin(90-{_a1}) * sin({_a2}) * 1
  219.     set {_y} to cos(90-{_a1}) * 1
  220.     execute console command "/playsound minecraft:entity.skeleton.shoot master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 0.75"
  221.     set {_weapon::*} to lore of player's tool
  222.     loop {_weapon::*}:
  223.         loop-value contains "&3-&8ID&7:&f":
  224.             set {_n} to loop-value
  225.             replace "&3-&8ID&7:&f" with "" in {_n}
  226.             set {id.%player%} to {_n} parsed as number
  227.     if {cooltime::%player%::%{id.%player%}%} <= 0:
  228.         set {_weapon::*} to lore of player's tool
  229.         loop {_weapon::*}:
  230.             loop-value contains "&3-&aCooltime&7:&f":
  231.                 set {_n} to loop-value
  232.                 replace "&3-&aCooltime&7:&f" with "" in {_n}
  233.                 set {cooltime::%player%::%{id.%player%}%} to {_n} parsed as number
  234.         if name of event-item contains "火":
  235.             if lore of event-item contains "直線":
  236.                 loop 40 times:
  237.                     add {_x} to x-coordinate of {_loc}
  238.                     add {_y} to y-coordinate of {_loc}
  239.                     add {_z} to z-coordinate of {_loc}
  240.                     loop 20 times:
  241.                         set {_numx} to random number between -0.25 and 0.25
  242.                         set {_numy} to random number between -0.25 and 0.25
  243.                         set {_numz} to random number between -0.25 and 0.25
  244.                         execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0.1 1 1 -1 0 force"
  245.                     if block at {_loc} is not air:
  246.                         execute console command "particle flame %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  247.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  248.                         loop living entities in radius 2 of {_loc}:
  249.                             loop-entity's gamemode is not spectator
  250.                             loop-entities is not event-player
  251.                             make player damage loop-entity by 12
  252.                         stop
  253.                     loop living entities in radius 2 of {_loc}:
  254.                         loop-entity is not event-player
  255.                         loop-entity's gamemode is not spectator
  256.                         execute console command "particle flame %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  257.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  258.                         make player damage loop-entity by 8
  259.                         ignite loop-entity for 5 seconds
  260.                         stop
  261.                     wait a ticks
  262.         else if name of event-item contains "水":
  263.             if lore of event-item contains "直線":
  264.                 loop 40 times:
  265.                     add {_x} to x-coordinate of {_loc}
  266.                     add {_y} to y-coordinate of {_loc}
  267.                     add {_z} to z-coordinate of {_loc}
  268.                     loop 20 times:
  269.                         set {_numx} to random number between -0.25 and 0.25
  270.                         set {_numy} to random number between -0.25 and 0.25
  271.                         set {_numz} to random number between -0.25 and 0.25
  272.                         execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0.1 0.5 -0.1 1 0 force"
  273.                     if block at {_loc} is not air:
  274.                         execute console command "particle splash %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  275.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  276.                         loop living entities in radius 2 of {_loc}:
  277.                             loop-entity's gamemode is not spectator
  278.                             command "/effect %loop-entity% speed 5 1 true"
  279.                         stop
  280.                     loop living entities in radius 2 of {_loc}:
  281.                         loop-entities is not event-player
  282.                         loop-entity's gamemode is not spectator
  283.                         execute console command "particle splash %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  284.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  285.                         command "/effect %loop-entity% speed 5 1 true"
  286.                         stop
  287.                     wait a ticks
  288.         else if name of event-item contains "草":
  289.             if lore of event-item contains "直線":
  290.                 loop 40 times:
  291.                     add {_x} to x-coordinate of {_loc}
  292.                     add {_y} to y-coordinate of {_loc}
  293.                     add {_z} to z-coordinate of {_loc}
  294.                     loop 20 times:
  295.                         set {_numx} to random number between -0.25 and 0.25
  296.                         set {_numy} to random number between -0.25 and 0.25
  297.                         set {_numz} to random number between -0.25 and 0.25
  298.                         execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0.1 1 -1 1 0 force"
  299.                     if block at {_loc} is not air:
  300.                         execute console command "particle happyVillager %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  301.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  302.                         loop living entities in radius 2 of {_loc}:
  303.                             loop-entities is not event-player
  304.                             set {_a::*} to lore of player's tool
  305.                             loop {_a::*}:
  306.                                 loop-value-2 contains "&a特性&7:&a":
  307.                                     set {_n} to loop-value-2
  308.                                     replace "&a特性&7:&a" with "" in {_n}
  309.                                     add {_n} parsed as number to {_health}
  310.                             set {_health} to 7
  311.                             add 1 to {_health}
  312.                             add {_health} to the loop-entity's health
  313.                         stop
  314.                     loop living entities in radius 2 of {_loc}:
  315.                         loop-entity is not event-player
  316.                         loop-entity's gamemode is not spectator
  317.                         execute console command "particle happyVillager %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  318.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  319.                         set {_a::*} to lore of player's tool
  320.                         loop {_a::*}:
  321.                             loop-value-2 contains "&a特性&7:&a":
  322.                                 set {_n} to loop-value-2
  323.                                 replace "&a特性&7:&a" with "" in {_n}
  324.                                 add {_n} parsed as number to {_health}
  325.                         set {_health} to 7
  326.                         add 1 to {_health}
  327.                         add {_health} to the loop-entity's health
  328.                         stop
  329.                     wait a ticks
  330.         else if name of event-item contains "風":
  331.             if lore of event-item contains "直線":
  332.                 loop 40 times:
  333.                     add {_x} to x-coordinate of {_loc}
  334.                     add {_y} to y-coordinate of {_loc}
  335.                     add {_z} to z-coordinate of {_loc}
  336.                     loop 20 times:
  337.                         set {_numx} to random number between -0.25 and 0.25
  338.                         set {_numy} to random number between -0.25 and 0.25
  339.                         set {_numz} to random number between -0.25 and 0.25
  340.                         execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0 1 1 1 0 force"
  341.                     if block at {_loc} is not air:
  342.                         execute console command "particle explode %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 0.5 0.5 0.5 0 50 force"
  343.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  344.                         loop living entities in radius 2 of {_loc}:
  345.                             loop-entity's gamemode is not spectator
  346.                             loop-entities is not event-player
  347.                             make player damage loop-entity by 4
  348.                             set velocity of loop-entity to vector {_x} * 0.75,{_y} + 0.5,{_z} * 0.75
  349.                         stop
  350.                     loop living entities in radius 2 of {_loc}:
  351.                         loop-entity is not event-player
  352.                         loop-entity's gamemode is not spectator
  353.                         execute console command "particle explode %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 0.5 0.5 0.5 0 50 force"
  354.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  355.                         make player damage loop-entity by 4
  356.                         set velocity of loop-entity to vector {_x} * 0.75,{_y} + 0.5,{_z} * 0.75
  357.                         stop
  358.                     wait a ticks
  359.         else if name of event-item contains "雷":
  360.             if lore of event-item contains "直線":
  361.                 loop 40 times:
  362.                     add {_x} to x-coordinate of {_loc}
  363.                     add {_y} to y-coordinate of {_loc}
  364.                     add {_z} to z-coordinate of {_loc}
  365.                     loop 20 times:
  366.                         set {_numx} to random number between -0.25 and 0.25
  367.                         set {_numy} to random number between -0.25 and 0.25
  368.                         set {_numz} to random number between -0.25 and 0.25
  369.                         execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0 1 0 1 0 force"
  370.                     if block at {_loc} is not air:
  371.                         execute console command "particle totem %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  372.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  373.                         loop living entities in radius 2 of {_loc}:
  374.                             loop-entity's gamemode is not spectator
  375.                             loop-entities is not event-player
  376.                             make player damage loop-entity by 12
  377.                         stop
  378.                     loop living entities in radius 2 of {_loc}:
  379.                         loop-entity is not event-player
  380.                         loop-entity's gamemode is not spectator
  381.                         execute console command "particle totem %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  382.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  383.                         make player damage loop-entity by 12
  384.                         stop
  385.                     wait a ticks
  386.         else if name of event-item contains "氷":
  387.             if lore of event-item contains "直線":
  388.                 loop 40 times:
  389.                     add {_x} to x-coordinate of {_loc}
  390.                     add {_y} to y-coordinate of {_loc}
  391.                     add {_z} to z-coordinate of {_loc}
  392.                     loop 20 times:
  393.                         set {_numx} to random number between -0.25 and 0.25
  394.                         set {_numy} to random number between -0.25 and 0.25
  395.                         set {_numz} to random number between -0.25 and 0.25
  396.                         execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0.1 1 -0.1 1 0 force"
  397.                     if block at {_loc} is not air:
  398.                         execute console command "particle fallingdust %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force @a 022"
  399.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  400.                         loop living entities in radius 2 of {_loc}:
  401.                             loop-entity's gamemode is not spectator
  402.                             loop-entities is not event-player
  403.                             make player damage loop-entity by 7
  404.                             command "/effect %loop-entity% slowness 5 3 true"
  405.                         stop
  406.                     loop living entities in radius 2 of {_loc}:
  407.                         loop-entity is not event-player
  408.                         loop-entity's gamemode is not spectator
  409.                         execute console command "particle fallingdust %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force @a 022"
  410.                         execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  411.                         make player damage loop-entity by 7
  412.                         command "/effect %loop-entity% slowness 5 3 true"
  413.                         stop
  414.                     wait a ticks
  415.  
  416. on rightclick with tnt:
  417.     cancel event
  418.     set {_loc} to location of event-player
  419.     add 1.5 to y-coordinate of {_loc}
  420.     set {_a2} to yaw of location of event-player - 270
  421.     set {_a1} to Pitch of location of event-player * -1
  422.     set {_x} to sin(90-{_a1}) * cos({_a2}) * 1
  423.     set {_z} to sin(90-{_a1}) * sin({_a2}) * 1
  424.     set {_y} to cos(90-{_a1}) * 1
  425.     add {_x} to x-coordinate of {_loc}
  426.     add {_y} to y-coordinate of {_loc}
  427.     add {_z} to z-coordinate of {_loc}
  428.     loop 2 times:
  429.         set velocity of event-player to vector {_x} * -0.75,{_y} + 0.5,{_z} * -0.75
  430.         wait a ticks
  431.  
  432. on rightclick with sand:
  433.     cancel event
  434.     set {_loc} to location of event-player
  435.     add 1.5 to y-coordinate of {_loc}
  436.     set {_a2} to yaw of location of event-player - 270
  437.     set {_a1} to Pitch of location of event-player * -1
  438.     set {_x} to sin(90-{_a1}) * cos({_a2}) * 0.4
  439.     set {_z} to sin(90-{_a1}) * sin({_a2}) * 0.4
  440.     set {_y} to cos(90-{_a1}) * 0.4
  441.     loop 10 times:
  442.         add {_x} to x-coordinate of {_loc}
  443.         add {_y} to y-coordinate of {_loc}
  444.         add {_z} to z-coordinate of {_loc}
  445.         execute console command "particle fallingdust %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.075 0.075 0.075 0 10 force @a 12"
  446.         execute console command "/playsound minecraft:block.sand.step master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.75 2"
  447.         if block at {_loc} is not air:
  448.             execute console command "/playsound minecraft:entity.firework.large_blast master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 5 1"
  449.             launch "ball large" firework at {_loc} timed 0 coloured "brown"
  450.             loop living entities in radius 3 of {_loc}:
  451.                 loop-entity's gamemode is not spectator
  452.                 make player damage loop-entity by 8
  453.             stop
  454.         wait a ticks
  455.     execute console command "/playsound minecraft:entity.firework.large_blast master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 5 1"
  456.     launch "ball large" firework at {_loc} timed 0 coloured "brown"
  457.     loop living entities in radius 2 of {_loc}:
  458.         loop-entity's gamemode is not spectator
  459.         make player damage loop-entity by 8
  460.  
  461. command /type <number>:
  462.     trigger:
  463.         if arg-1 is 1:
  464.             set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  465.             set the name of held item to "&a合成装備 &e/ &a火"
  466.         if arg-1 is 2:
  467.             set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  468.             set the name of held item to "&a合成装備 &e/ &a水"
  469.         if arg-1 is 3:
  470.             set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  471.             set the name of held item to "&a合成装備 &e/ &a草"
  472.         if arg-1 is 4:
  473.             set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  474.             set the name of held item to "&a合成装備 &e/ &a風"
  475.         if arg-1 is 5:
  476.             set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  477.             set the name of held item to "&a合成装備 &e/ &a雷"
  478.         if arg-1 is 6:
  479.             set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  480.             set the name of held item to "&a合成装備 &e/ &a氷"
  481.  
  482. on join:
  483.     set rf max hp of event-entity to 40
  484.     set health of event-entity to max health of event-entity
  485.  
  486. on inventory click:
  487.     if inventory name of player's current inventory contain "合成箱":
  488.         if clicked slot is 0:
  489.             cancel event
  490.         if clicked slot is 4:
  491.             cancel event
  492.         if clicked slot is 5:
  493.             cancel event
  494.         if clicked slot is 6:
  495.             cancel event
  496.         if clicked slot is 7:
  497.             cancel event
  498.         if clicked slot is 8:
  499.             cancel event
  500.  
  501. on rightclick on anvil:
  502.     cancel event
  503.     open chest with 1 rows named "&5合成箱" to player
  504.     set slot 0 of player's current inventory to black stained glass pane named "&7閉じる合成"
  505.     set slot 4 of player's current inventory to red stained glass pane named "&c←アイテム 使いかた→"
  506.     set slot 5 of player's current inventory to yellow stained glass pane named "&b属性"
  507.     set slot 6 of player's current inventory to yellow stained glass pane named "&bタイプ"
  508.     set slot 7 of player's current inventory to yellow stained glass pane named "&b特性"
  509.     set slot 8 of player's current inventory to black stained glass pane named "&7閉じると合成"
  510.  
  511. on inventory close:
  512.     if inventory name of player's current inventory contain "合成箱":
  513.         set {_num} to 0
  514.         if name of slot 1 of player's current inventory contain "火" or "水" or "草":
  515.             if name of slot 2 of player's current inventory contain "直線":
  516.                 if name of slot 3 of player's current inventory contain "特性":
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
Top