Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick holding a enchanted book:
- if name of player's tool is "&4&lFire Trap":
- {%player%::c} is not set
- {%player%-z} is not set
- {%player%-trap} is not set
- set {_p-l} to player's location
- send "&4&lTrap&r&lを&3&l設置&r&lしています"
- set {%player%-z} to true
- play sound "entity.elder_guardian.flop" with volume 10 and pitch 1 at player for players in radius 3 of player
- loop 5 times:
- if {_p-l} is not player's location:
- send "&4&lTrap&r&lの&3&l設置&r&lに&c&l失敗&r&lしました"
- play sound "entity.creeper.primed" with volume 10 and pitch 1 at player for players in radius 3 of player
- delete {%player%-z}
- set {_b} to 1
- stop loop
- wait second
- {_b} is not set
- send "&e&l成功"
- delete {%player%-z}
- play sound "entity.chicken.egg" with volume 10 and pitch 1 at player for players in radius 3 of player
- play sound "entity.chicken.egg" with volume 10 and pitch 1 at player for players in radius 3 of player
- set {%player%-trap} to {_p-l}
- on leftclick holding a enchanted book:
- if name of player's tool is "&4&lFire Trap":
- if {%player%-trap} is not set:
- send "&4&lTrap&r&lがありません"
- if {%player%-trap} is set:
- cf(player)
- function cc(p: player):
- loop players in radius 14 around {%{_p}%-k}:
- add loop-player to {_t::*}
- {_t::*} is set
- set {_r} to 2
- set {_r2} to 3
- set {_loc} to {%{_p}%-k}
- set {_loc2} to {%{_p}%-k}
- set yaw of {_loc} to 0
- set pitch of {_loc} to 0
- set yaw of {_loc2} to 180
- set pitch of {_loc2} to 0
- loop 18 times:
- add location {_r} meter forwards {_loc} to {_l::*}
- add location {_r2} meter forwards {_loc2} to {_l2::*}
- loop {_l::*}:
- show 5 flame particles at loop-value-2 offset by 0.1, 0.1, 0.1 with speed 0
- loop {_l2::*}:
- show 5 flame particles at loop-value-2 offset by 0.1, 0.1, 0.1 with speed 0
- add -20 to yaw of {_loc}
- add 20 to yaw of {_loc2}
- wait 2 ticks
- loop 16 times:
- loop {_l::*}:
- show 10 flame particles at loop-value-2 offset by 0.1, 0.1, 0.1 with speed 0
- loop {_l2::*}:
- show 10 flame particles at loop-value-2 offset by 0.1, 0.1, 0.1 with speed 0
- wait 10 ticks
- function cf(p: player):
- set {%{_p}%-k} to {%{_p}%-trap}
- delete {%{_p}%-trap}
- cc({_p})
- wait 36 ticks
- play sound "entity.enderdragon.death" with volume 10 and pitch 1 at {%{_p}%-k} for players in radius 14 of {%{_p}%-k}
- loop 30 times:
- loop players in radius 14 around {%{_p}%-k}:
- show 100 Enchantment Table particles at {%{_p}%-k} offset by 14, 14, 14 with speed 1.5
- push loop-player (direction from loop-player to {%{_p}%-k}) at speed floor(distance between loop-player and {%{_p}%-k}/3)
- wait 5 ticks
- loop players in radius 3 around {%{_p}%-k}:
- set {%loop-player%-LA} to {_p}
- make {_p} damage loop-player by floor(25/(distance between loop-player and {%{_p}%-k}+1))
- play sound "entity.firework.large_blast_far" with volume 10 and pitch 1 at {%{_p}%-k} for players in radius 3 of {%{_p}%-k}
- play sound "entity.lightning.impact" with volume 10 and pitch 1 at {%{_p}%-k} for players in radius 3 of {%{_p}%-k}
- show 50 lava particles at {%{_p}%-k} offset by 0, 1, 0 with speed 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement