SHARE
TWEET

Untitled

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