Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {freezetick.%player%} = 0
- {invincibletick.%player%} = 0
- on load:
- execute console command "scoreboard teams add invader"
- execute console command "gamerule doTileDrops false"
- execute console command "gamerule keepInventory true"
- execute console command "difficulty 3"
- on damage:
- if damage was caused by void:
- set damage to 2147483647
- on damage:
- if {invincibletick.%victim%} is greater than or equal to 1:
- set damage to 0
- cancel event
- every tick:
- loop all players:
- remove 1 from {invincibletick.%loop-player%}
- on damage:
- victim is a player
- set {_attacker} to attacker
- set {_shooter} to shooter
- if damage is greater than or equal to victim's health:
- set damage to 0
- set {freezetick.%victim%} to 3
- set {invincibletick.%victim%} to 10
- set victim's health to max health of victim
- set victim's food to 10
- if victim's gamemode is survival or adventure:
- clear victim's inventory
- give victim stone sword
- give victim stone pickaxe
- give victim stone shovel
- give victim stone axe
- set victim's helmet to leather helmet
- set victim's chestplate to leather chestplate
- set victim's leggings to leather leggings
- set victim's boots to leather boots
- set victim's offhand to shield
- set level of victim to 0
- set level progress of victim to 0
- execute console command "tp %UUID of victim% -184 6 37 0 0"
- if {_attacker} is set:
- if attacker is TNT:
- broadcast "%victim%&7 was blew up"
- stop
- if attacker is falling block:
- broadcast "%victim%&7 was crushed by falling block"
- stop
- if {_shooter} is set:
- if attacker is a player:
- if {_attacker} is victim:
- broadcast "%victim%&7 was suicide"
- stop
- set {_weapon} to name of attacker's held item
- if {_weapon} is set:
- broadcast "%victim%&7 was shot by &r%attacker%&7 using &r%{_weapon}%"
- stop
- else:
- broadcast "%victim%&7 was shot by &r%attacker%"
- stop
- else:
- set {_name} to name of attacker
- if {_name} is set:
- broadcast "%victim%&7 was shot by &r%{_name}%"
- stop
- if {_name} is not set:
- broadcast "%victim%&7 was shot by &r%attacker%"
- stop
- if damage was caused by entity explosion:
- if attacker is a player:
- broadcast "%victim%&7 was blow up by &r%attacker%"
- stop
- else:
- set {_name} to name of attacker
- if {_name} is set:
- broadcast "%victim%&7 was blow up by &r%{_name}%"
- stop
- if {_name} is not set:
- broadcast "%victim%&7 was blow up by &r%attacker%"
- stop
- if damage was caused by block explosion:
- if attacker is a player:
- broadcast "%victim%&7 was blow up by &r%attacker%"
- stop
- else:
- set {_name} to name of attacker
- if {_name} is set:
- broadcast "%victim%&7 was blow up by &r%{_name}%"
- stop
- if {_name} is not set:
- broadcast "%victim%&7 was blow up by &r%attacker%"
- stop
- stop
- if damage was caused by potion:
- if attacker is a player:
- broadcast "%victim%&7 was killed by &r%attacker%&7's magic"
- stop
- else:
- set {_name} to name of attacker
- if {_name} is set:
- broadcast "%victim%&7 was killed by &r%{_name}%&7's magic"
- stop
- if {_name} is not set:
- broadcast "%victim%&7 was killed by &r%attacker%&7's magic"
- stop
- else:
- if attacker is a player:
- set {_weapon} to name of attacker's held item
- if {_weapon} is set:
- broadcast "%victim%&7 was slain by &r%attacker%&7 using &r%{_weapon}%"
- stop
- else:
- broadcast "%victim%&7 was slain by &r%attacker%"
- stop
- else:
- set {_name} to name of attacker
- if {_name} is set:
- broadcast "%victim%&7 was slain by &r%{_name}%"
- stop
- if {_name} is not set:
- broadcast "%victim%&7 was slain by &r%attacker%"
- stop
- else:
- if damage was caused by fall:
- broadcast "%victim%&7 is died due to fall"
- stop
- if damage was caused by lava:
- broadcast "%victim%&7 is died due to lava"
- stop
- if damage was caused by fire, burning or melting:
- broadcast "%victim%&7 is died by burned"
- stop
- if damage was caused by drowning:
- broadcast "%victim%&7 is drowned"
- stop
- if damage was caused by potion:
- broadcast "%victim%&7 is killed by magic"
- stop
- if damage was caused by entity explosion:
- broadcast "%victim%&7 was blew up"
- stop
- if damage was caused by block explosion:
- broadcast "%victim%&7 was blew up"
- stop
- if damage was caused by lightning:
- broadcast "%victim%&7 was striked by lightning"
- stop
- if damage was caused by starvation:
- broadcast "%victim%&7 was starved to death"
- stop
- if damage was caused by suicide:
- broadcast "%victim%&7 was suicide"
- stop
- if damage was caused by projectile:
- broadcast "%victim%&7 was shot trough"
- stop
- if damage was caused by void:
- broadcast "%victim%&7 is fell into the void"
- stop
- if damage was caused by wither:
- broadcast "%victim%&7 was killed by wither"
- stop
- if damage was caused by suffocation:
- broadcast "%victim%&7 was suffocated"
- stop
- if damage was caused by unknown:
- broadcast "%victim%&7 is died"
- stop
- wait 1 tick
- execute console command "effect %UUID of victim% clear"
- ignite victim for 0 tick
- on any movement:
- if {freezetick.%player%} is greater than or equal to 1:
- cancel event
- every tick:
- loop all players:
- remove 1 from {freezetick.%loop-player%}
- every tick:
- set max health of all players to 20
- on rightclick with crafting table:
- player's gamemode is not creative
- cancel event
- open crafting table for player
- every tick:
- execute console command "effect @e[tag=nexus] 14 1000000 0 true"
- execute console command "entitydata @e[tag=nexus] {Fire:-1s}"
- execute console command "execute @e[tag=nexus] ~ ~ ~ entitydata @e[type=creeper,team=invader,r=3] {ignited:1b}"
- on damage of iron golem:
- name of victim is "Nexus"
- if {startednexus} is 1:
- if attacker is a player:
- if attacker's gamemode is creative:
- set {_x} to x-coordinate of {nexus}
- set {_y} to y-coordinate of {nexus}
- set {_z} to z-coordinate of {nexus}
- execute console command "setblock %{_x}% %{_y}% %{_z}% beacon 0 destroy"
- broadcast "&6Nexus damaged!%nl%&cHP: &b%round(health of victim*2-damage)%"
- set {nexushp} to round(health of victim*2-damage)
- play sound "block_anvil_place" to all players with volume 1 and pitch 3
- stop
- if attacker's gamemode is not creative:
- cancel event
- if attacker is not a players:
- execute console command "setblock %{_x}% %{_y}% %{_z}% beacon 0 destroy"
- broadcast "&6Nexus damaged!%nl%&cHP: &b%round(health of victim*2-damage)%"
- set {nexushp} to round(health of victim*2-damage)
- play sound "block_anvil_place" to all players with volume 1 and pitch 3
- on death of iron golem:
- if name of victim is "Nexus":
- if {startednexus} is 1:
- send all players title "&c&lGAME OVER" with subtitle "&cNexus was destroyed by invaders" for 3 seconds with 1 seconds fade in and 1 seconds fade out
- play sound "entity_wither_death" to all players with volume 1 and pitch 5
- delete {startedgame}
- delete {startednexus}
- delete {phase}
- delete {countS}
- delete {countM}
- delete {nexushp}
- set block at {nexus} to bedrock
- create safe explosion of power 7 at location 1 meter above {nexus}
- execute console command "kill @e[team=invader]"
- wait 5 seconds
- execute console command "kill @e[team=invader]"
- execute console command "kill @e[type=arrow]"
- execute console command "kill @e[type=item]"
- execute console command "kill @e[type=ender_pearl]"
- execute console command "kill @e[type=xp_orb]"
- set block at {nexus} to beacon
- execute console command "tp @a 0 64 0 0 0"
- set level of all players to 0
- set level progress of all players to 0
- execute console command "effect @a clear"
- clear inventory of all players
- ignite victim for 0 tick
- loop all players:
- clear loop-player's ender chest
- set loop-player's food to 10
- set health of loop-player to max health of loop-player
- command /setnexus:
- permission: invasion.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- if target block is set:
- if target block is beacon:
- if {nexus} is set:
- execute console command "kill @e[type=villager_golem,tag=nexus]"
- delete {nexus}
- set {nexus} to location at target block
- send "&6Nexusの設置に成功しました"
- stop
- if {nexus} is not set:
- set {nexus} to location at target block
- send "&6Nexusの設置に成功しました"
- stop
- else:
- send "&cビーコンにカーソルを合わせてください"
- else:
- send "&cビーコンにカーソルを合わせてください"
- command /deletenexus:
- aliases: /delnexus
- permission: invasion.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- if {nexus} is set:
- execute console command "kill @e[tag=nexus]"
- delete {nexus}
- send "&6Nexusを消去しました"
- stop
- if {nexus} is not set:
- send "&cNexusが存在していません"
- command /startup:
- permission: invasion.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- {nexus} is set
- set {startedgame} to 1
- set {starting} to 1
- set {startupprogress} to 0
- broadcast "&6Starting nexus.."
- every 6 second:
- if {starting} is 1:
- add 1 to {startupprogress}
- if {startupprogress} is 100:
- wait 1 second
- delete {starting}
- delete {startupprogress}
- set {_x} to x-coordinate of {nexus}
- set {_y} to y-coordinate of {nexus}
- set {_z} to z-coordinate of {nexus}
- set level of all players to 0
- set level progress of all players to 0
- broadcast "&6Nexus startup is complete!"
- play sound "block_anvil_use" to all players with volume 1 and pitch 11
- wait 1 second
- execute console command "summon villager_golem %{_x}% %{_y}-0.5% %{_z}% {CustomName:""Nexus"",Tags:[""nexus""],Team:Nexus,PersistenceRequired:1b,DeathTime:19s,Silent:1b,NoAI:1b,DeathLootTable:""minecraft:empty"",Health:1000f,Attributes:[{Name:generic.maxHealth,Base:1000d}],ArmorItems:[{},{},{},{id:""minecraft:leather_helmet"",Damage:0s,Count:1b,tag:{Unbreakable:1b,ench:[{id:7s,lvl:5s}],AttributeModifiers:[{Name:""create by akon"",UUIDLeast:1142252443l,UUIDMost:1142252443l,Operation:0,AttributeName:""generic.armor"",Amount:0d,Slot:""mainhand""},{Name:""create by akon"",UUIDLeast:1142252443l,UUIDMost:1142252443l,Operation:0,AttributeName:""generic.armorToughness"",Amount:0d,Slot:""mainhand""}]}}],ArmorDropChances:[-0.1f,-0.1f,-0.1f,-0.1f]}"
- broadcast "&6Start &4&lINVASION"
- play sound "block_end_portal_spawn" to all players with volume 1 and pitch 5
- set {startednexus} to 1
- set {phase} to "&aPhase 1"
- set {countM} to 3
- set {countS} to 0
- set {nexushp} to 1000
- command /forcestartup:
- permission: invasion.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- {nexus} is set
- set {startedgame} to 1
- delete {starting}
- delete {startupprogress}
- set {_x} to x-coordinate of {nexus}
- set {_y} to y-coordinate of {nexus}
- set {_z} to z-coordinate of {nexus}
- set level of all players to 0
- set level progress of all players to 0
- broadcast "&6Nexus startup is complete!"
- play sound "block_anvil_use" to all players with volume 1 and pitch 11
- wait 1 second
- execute console command "summon villager_golem %{_x}% %{_y}-0.5% %{_z}% {CustomName:""Nexus"",Tags:[""nexus""],Team:Nexus,PersistenceRequired:1b,DeathTime:19s,Silent:1b,NoAI:1b,DeathLootTable:""minecraft:empty"",Health:1000f,Attributes:[{Name:generic.maxHealth,Base:1000d}],ArmorItems:[{},{},{},{id:""minecraft:leather_helmet"",Damage:0s,Count:1b,tag:{Unbreakable:1b,ench:[{id:7s,lvl:5s}],AttributeModifiers:[{Name:""create by akon"",UUIDLeast:1142252443l,UUIDMost:1142252443l,Operation:0,AttributeName:""generic.armor"",Amount:0d,Slot:""mainhand""},{Name:""create by akon"",UUIDLeast:1142252443l,UUIDMost:1142252443l,Operation:0,AttributeName:""generic.armorToughness"",Amount:0d,Slot:""mainhand""}]}}],ArmorDropChances:[-0.1f,-0.1f,-0.1f,-0.1f]}"
- broadcast "&6Start &4&lINVASION"
- play sound "block_end_portal_spawn" to all players with volume 3 and pitch 5
- set {startednexus} to 1
- set {phase} to "&aPhase 1"
- set {countM} to 3
- set {countS} to 0
- set {nexushp} to 1000
- command /setphase [<integer>]:
- permission: invasion.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- if arg-1 is 1:
- if {startednexus} is 1:
- set {phase} to "&aPhase 1"
- if arg-1 is 2:
- if {startednexus} is 1:
- set {phase} to "&ePhase 2"
- if arg-1 is 3:
- if {startednexus} is 1:
- set {phase} to "&cPhase 3"
- every tick:
- if {starting} is 1:
- send action bar from "&6Progress of nexus startup: &b%{startupprogress}%%%" to all players
- if {startednexus} is 1:
- if {countS} is smaller than 10:
- set {_displaycountS} to "0%{countS}%"
- if {countS} is greater than or equal to 10:
- set {_displaycountS} to "%{countS}%"
- send action bar from "&6Timer: &b%{countM}%:%{_displaycountS}% &6Nexus HP: &b%{nexushp}% &6Phase: %{phase}%" to all players
- every second:
- if {startednexus} is 1:
- if {phase} is "&aPhase 1" or "&ePhase 2" or "&cPhase 3":
- remove 1 from {countS}
- if {countS} is -1:
- remove 1 from {countM}
- set {countS} to 59
- if {countM} is -1:
- set {countM} to 0
- set {countS} to 0
- if {phase} is "&aPhase 1":
- set {phase} to "&aPhase 1 &5&l- Boss Battle -"
- broadcast "&5&lWither &6appeared!"
- play sound "entity_enderdragon_ambient" to all players with volume 3 and pitch 5
- set {_x} to x-coordinate of {nexus}+random integer between -3 and 3
- set {_y} to y-coordinate of {nexus}+7
- set {_z} to z-coordinate of {nexus}+random integer between -3 and 3
- execute console command "mm m s WitherInvader 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {phase} is "&ePhase 2":
- set {phase} to "&ePhase 2 &5&l- Boss Battle -"
- broadcast "&c&lAlpha Blaze &6appeared!"
- play sound "entity_enderdragon_ambient" to all players with volume 3 and pitch 5
- set {_x} to x-coordinate of {nexus}+random integer between -3 and 3
- set {_y} to y-coordinate of {nexus}+7
- set {_z} to z-coordinate of {nexus}+random integer between -3 and 3
- execute console command "mm m s AlphaBlaze 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {phase} is "&cPhase 3":
- set {phase} to "&cPhase 3 &5&l- Last Boss Battle -"
- broadcast "&5&lSkeleton King &6appeared!"
- play sound "entity_enderdragon_ambient" to all players with volume 3 and pitch 5
- set {_x} to x-coordinate of {nexus}+random integer between -3 and 3
- set {_y} to y-coordinate of {nexus}+7
- set {_z} to z-coordinate of {nexus}+random integer between -3 and 3
- execute console command "mm m s SkeletonKing2 1 world,%{_x}%,%{_y}%,%{_z}%"
- on death:
- if victim is a wither:
- if name of victim is "&5&lWither":
- if {phase} is "&aPhase 1 &5&l- Boss Battle -":
- play sound "entity_player_levelup" to all players with volume 3 and pitch 0
- set {phase} to "&ePhase 2"
- set {countS} to 0
- set {countM} to 3
- set {_attacker} to attacker
- if {_attacker} is set:
- if attacker is a player:
- broadcast "&5&lWither&7 was killed by &r%{_attacker}%&7!"
- stop
- else:
- broadcast "&5&lWither&7 died!"
- stop
- else:
- broadcast "&5&lWither&7 died!"
- stop
- if victim is a blaze:
- if name of victim is "&c&lAlpha Blaze":
- if {phase} is "&ePhase 2 &5&l- Boss Battle -":
- play sound "entity_player_levelup" to all players with volume 3 and pitch 0
- set {phase} to "&cPhase 3"
- set {countS} to 0
- set {countM} to 3
- set {_attacker} to attacker
- if {_attacker} is set:
- if attacker is a player:
- broadcast "&c&lAlpha Blaze&7 was killed by &r%{_attacker}%&7!"
- stop
- else:
- broadcast "&c&lAlpha Blaze&7 died!"
- stop
- else:
- broadcast "&c&lAlpha Blaze&7 died!"
- stop
- if victim is a skeleton:
- if name of victim is "&5&lSkeleton King":
- if {phase} is "&cPhase 3 &5&l- Last Boss Battle -":
- play sound "ui_toast_challenge_complete" to all players with volume 3 and pitch 5
- set {_attacker} to attacker
- if {_attacker} is set:
- if attacker is a player:
- broadcast "&5&lSkeleton King&7 was killed by &r%{_attacker}%&7!"
- else:
- broadcast "&5&lSkeleton King&7 died!"
- else:
- broadcast "&5&lSkeleton King&7 died!"
- delete {startednexus}
- delete {phase}
- delete {countS}
- delete {countM}
- delete {nexushp}
- delete {startedgame}
- execute console command "kill @e[team=invader]"
- execute console command "kill @e[tag=nexus]"
- send all players title "&6&lYOU WIN" for 3 seconds with 1 seconds fade in and 1 seconds fade out
- wait 5 seconds
- execute console command "kill @e[team=invader]"
- execute console command "kill @e[type=arrow]"
- execute console command "kill @e[type=item]"
- execute console command "kill @e[type=ender_pearl]"
- execute console command "kill @e[type=xp_orb]"
- execute console command "tp @a 0 64 0 0 0"
- set level of all players to 0
- set level progress of all players to 0
- execute console command "effect %victim% clear"
- clear inventory of all players
- ignite victim for 0 tick
- loop all players:
- clear loop-player's ender chest
- set loop-player's food to 10
- set health of loop-player to max health of loop-player
- on rightclick on beacon:
- location of block is {nexus}
- cancel event
- on break of beacon:
- event-location is {nexus}
- cancel event
- on death of player:
- clear victim's inventory
- set level of victim to 0
- set level progress of victim to 0
- on respawn:
- give player stone sword
- give player stone pickaxe
- give player stone shovel
- give player stone axe
- set player's helmet to leather helmet
- set player's chestplate to leather chestplate
- set player's leggings to leather leggings
- set player's boots to leather boots
- set player's offhand to shield
- on damage:
- attacker is a wither
- if name of attacker is "&5&lWither":
- execute console command "effect %UUID of victim% 20 0 0"
- execute console command "effect %UUID of victim% 20 40 0"
- execute console command "effect %UUID of victim% 15 10 0"
- on break:
- player's gamemode is not creative
- if event-block is not any_oak_wooden_logs_item:12:
- if event-block is not melon block:
- if event-block is not iron ore:
- if event-block is not diamond ore:
- if event-block is not emerald ore:
- cancel event
- on break:
- player's gamemode is not creative
- if event-block is melon block:
- give player 4 melon slice
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- give 5 xp to player
- wait 10 second
- set block at event-location to melon block
- set {_x} to x-coordinate of event-location
- set {_y} to y-coordinate of event-location
- set {_z} to z-coordinate of event-location
- execute console command "setblock %{_x}% %{_y}% %{_z}% melon_block 0 destroy"
- if event-block is any_oak_wooden_logs_item:12:
- give player any_oak_wooden_logs_item:0
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- give 5 xp to player
- wait 10 second
- set block at event-location to any_oak_wooden_logs_item:12
- set {_x} to x-coordinate of event-location
- set {_y} to y-coordinate of event-location
- set {_z} to z-coordinate of event-location
- execute console command "setblock %{_x}% %{_y}% %{_z}% log 12 destroy"
- if event-block is gravel:
- damage player's tool by 1
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- give 5 xp to player
- set {_randomitem} to random integer between 1 and 100
- if {_randomitem} is between 1 and 20:
- give player string
- if {_randomitem} is between 21 and 40:
- give player flint
- if {_randomitem} is between 41 and 55:
- give player arrow
- if {_randomitem} is between 56 and 75:
- give player stick
- if {_randomitem} is between 76 and 95:
- give player feather
- if {_randomitem} is between 96 and 100:
- give player emerald
- set block at event-location to cobble stone
- set {emptyore.%event-location%} to event-location
- wait 10 second
- delete {emptyore.%event-location%}
- set block at event-location to gravel
- if event-block is iron ore:
- give player iron ingot
- damage player's tool by 1
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- give 10 xp to player
- set block at event-location to cobble stone
- set {emptyore.%event-location%} to event-location
- wait 10 second
- delete {emptyore.%event-location%}
- set block at event-location to iron ore
- if event-block is diamond ore:
- give player diamond
- damage player's tool by 1
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- give 12 xp to player
- set block at event-location to cobble stone
- set {emptyore.%event-location%} to event-location
- wait 10 second
- delete {emptyore.%event-location%}
- set block at event-location to diamond ore
- if event-block is emerald ore:
- give player emerald
- damage player's tool by 1
- play sound "entity_item_pickup" to player with volume 1 and pitch 10
- give 15 xp to player
- set block at event-location to cobble stone
- set {emptyore.%event-location%} to event-location
- wait 10 second
- delete {emptyore.%event-location%}
- set block at event-location to emerald ore
- on craft of melon block:
- cancel event
- on break:
- event-location is {emptyore.%event-location%}
- cancel event
- on place:
- player's gamemode is adventure or survival
- cancel event
- command /getportal:
- permission: invasion.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- execute console command "give %player% mob_spawner 1 0 {display:{Name:""&4Invader Portal""},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- on spawn:
- if entity is vex:
- set {_name} to name of entity
- if {_name} is not set:
- set name of entity to "Vex Invader"
- execute console command "scoreboard teams join invader %UUID of entity%"
- on place of mob spawner:
- if player's gamemode is creative:
- if name of player's tool is "&4Invader Portal":
- if block at location 1 meter above event-location is air:
- set block at location 1 meter above event-location to ender gateway
- set block at event-location to ender gateway
- set {portal::%event-location%} to event-location
- else:
- cancel event
- on break of ender gateway:
- if event-location is {portal::%event-location%}:
- delete {portal::%event-location%}
- set {_x} to x-coordinate of event-location
- set {_y} to y-coordinate of event-location
- set {_z} to z-coordinate of event-location
- execute console command "setblock %{_x}% %{_y}+1% %{_z}% air 0 destroy"
- if location 1 meter below event-location is {portal::%location 1 meter below event-location%}:
- delete {portal::%location 1 meter below event-location%}
- set {_x} to x-coordinate of event-location
- set {_y} to y-coordinate of event-location
- set {_z} to z-coordinate of event-location
- execute console command "setblock %{_x}% %{_y}-1% %{_z}% air 0 destroy"
- every 3 second:
- if {startednexus} is 1:
- loop {portal::*}:
- set {_spawnchance} to random integer between 0 and 4
- if {_spawnchance} is 0:
- set {_x} to x-coordinate of {portal::%loop-value%}
- set {_y} to y-coordinate of {portal::%loop-value%}
- set {_z} to z-coordinate of {portal::%loop-value%}
- set {_invadertype} to random integer between 1 and 4
- if {phase} is "&aPhase 1" or "&aPhase 1 &5&l- Boss Battle -":
- if {_invadertype} is 1:
- execute console command "mm m s ZombieInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {_invadertype} is 2:
- execute console command "mm m s SkeletonInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {_invadertype} is 3:
- execute console command "mm m s CreeperInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {_invadertype} is 4:
- execute console command "mm m s SpiderInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {phase} is "&ePhase 2" or "&ePhase 2 &5&l- Boss Battle -":
- if {_invadertype} is 1:
- execute console command "mm m s ZombiePigmanInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {_invadertype} is 2:
- execute console command "mm m s WitherSkeletonInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {_invadertype} is 3:
- execute console command "mm m s BlazeInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {_invadertype} is 4:
- execute console command "mm m s CaveSpiderInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- every 3 second:
- if {startednexus} is 1:
- loop {portal::*}:
- set {_spawnchance} to random integer between 0 and 4
- if {_spawnchance} is 0:
- set {_x} to x-coordinate of {portal::%loop-value%}
- set {_y} to y-coordinate of {portal::%loop-value%}
- set {_z} to z-coordinate of {portal::%loop-value%}
- set {_invadertype} to random integer between 1 and 10
- if {phase} is "&cPhase 3" or "&cPhase 3 &5&l- Last Boss Battle -":
- if {_invadertype} is between 1 and 3:
- execute console command "mm m s HuskInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {_invadertype} is between 4 and 6:
- execute console command "mm m s StrayInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {_invadertype} is between 7 and 9:
- execute console command "mm m s EvokerInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- if {_invadertype} is 10:
- execute console command "mm m s VindicatorInvader%random integer between 1 and 2% 1 world,%{_x}%,%{_y}%,%{_z}%"
- on quit:
- if {startedgame} is 1:
- set {leavegame.%player%} to 1
- on join:
- if {startedgame} is 1:
- if {leavegame.%player%} is 1:
- delete {leavegame.%player%}
- stop
- if {leavegame.%player%} is not set:
- clear player's inventory
- ignite player for 0 tick
- execute console command "effect %player% clear"
- execute console command "tp %player% -184 6 37 0 0"
- set player's health to max health of player
- set player's food to 10
- give player stone sword
- give player stone pickaxe
- give player stone shovel
- give player stone axe
- set player's helmet to leather helmet
- set player's chestplate to leather chestplate
- set player's leggings to leather leggings
- set player's boots to leather boots
- set player's offhand to shield
- if {startedgame} is not set:
- clear player's inventory
- ignite player for 0 tick
- execute console command "effect %player% clear"
- execute console command "tp %player% 0 64 0 0 0"
- set player's health to max health of player
- set player's food to 10
- every tick:
- loop all players:
- if name of loop-player's tool is "&cMachine Gun&r&r ▪ «×»":
- execute console command "execute %loop-player% ~ ~ ~ effect @s 8 1 128 true"
- execute console command "execute %loop-player% ~ ~ ~ effect @s 2 1 255 true"
- on rightclick with clay bricks item:
- if name of player's tool is "&6カロリーメイト":
- cancel event
- play sound "entity_generic_eat" to player with volume 1 and pitch 5
- add 2.5 to player's food
- add 2 to player's health
- execute console command "execute %player% ~ ~ ~ effect @s 10 5 1 true"
- remove 1 clay bricks item from player's tool
- on eat of golden apple:0:
- cancel event
- if player's tool is golden apple:
- execute console command "execute %player% ~ ~ ~ effect @s 10 15 2"
- execute console command "execute %player% ~ ~ ~ effect @s 22 120 0"
- remove 1 golden apple from player's tool
- else if player's offhand is golden apple:
- execute console command "execute %player% ~ ~ ~ effect @s 10 15 2"
- execute console command "execute %player% ~ ~ ~ effect @s 22 120 0"
- remove 1 golden apple from slot 40 of player
- on eat of super golden apple:
- if player's tool is super golden apple:
- execute console command "execute %player% ~ ~ ~ effect @s 10 30 4"
- execute console command "execute %player% ~ ~ ~ effect @s 22 120 4"
- execute console command "execute %player% ~ ~ ~ effect @s 3 240 2"
- execute console command "execute %player% ~ ~ ~ effect @s 11 240 0"
- execute console command "execute %player% ~ ~ ~ effect @s 12 240 0"
- execute console command "execute %player% ~ ~ ~ effect @s 1 30 1"
- remove 1 super golden apple from player's tool
- else if player's offhand is super golden apple:
- execute console command "execute %player% ~ ~ ~ effect @s 10 30 4"
- execute console command "execute %player% ~ ~ ~ effect @s 22 120 4"
- execute console command "execute %player% ~ ~ ~ effect @s 3 240 2"
- execute console command "execute %player% ~ ~ ~ effect @s 11 240 0"
- execute console command "execute %player% ~ ~ ~ effect @s 12 240 0"
- execute console command "execute %player% ~ ~ ~ effect @s 1 30 1"
- remove 1 super golden apple from slot 40 of player
Advertisement
Add Comment
Please, Sign In to add comment