Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /mob-block:
- trigger:
- give player 1 green concrete named "&8Zombie Level 1 Spawner" with lore "&7Place to make a level 1 zombie spawn.", and " "
- give player 1 pink concrete named "&8Pig Level 1 Spawner" with lore "&7Place to make a level 1 pig spawn.", and " "
- command /test-items:
- trigger:
- set {_item} to wooden axe named "&bPig Machete" with lore "&7Normal Attack Speed", " ", "&6DMG: 5", "&cLv Min: 4", " ", "&a+10%% &7DMG to Pigs", and " "
- add "{Unbreakable:1}" to nbt of {_item} with all flags hidden
- give {_item} to player
- set {_item} to wooden pickaxe named "&bRusty Pickaxe" with lore "&7Normal Attack Speed", " ", "&6DMG: 12", "&cLv. Min: 8", " ", "&a+10%% &7DMG to Infected Miners", and " "
- add "{Unbreakable:1}" to nbt of {_item} with all flags hidden
- give {_item} to player
- every 2 minutes in world "ul_rpg":
- broadcast " &8» &cClearing all named entities in &d5 seconds."
- wait 5 seconds
- make console execute command "mobkill named ul_rpg"
- broadcast " &8» &cCleared all named entities!"
- on place of green concrete:
- if name of player's held item is "&8Zombie Level 1 Spawner":
- set {_loc} to location of event-block
- add {_loc} to {level.one.zombie::*}
- on place of pink concrete:
- if name of player's held item is "&8Pig Level 1 Spawner":
- set {_loc} to location of event-block
- add {_loc} to {level.one.pig::*}
- every 10 seconds:
- loop {level.one.zombie::*}:
- set {_loc} to loop-value
- add 1 to y-coordinate of {_loc}
- loop all players in radius 6 of {_loc}:
- if loop-player is set:
- spawn a zombie at {_loc}
- set name of the last spawned zombie to "&aInfected Miner"
- heal the last spawned zombie
- set the helmet of the last spawned zombie to iron helmet
- set the weapon of the last spawned zombie to iron pickaxe
- set the health of the last spawned zombie to 100
- every 7 seconds:
- loop {level.one.pig::*}:
- set {_loc} to loop-value
- add 1 to y-coordinate of {_loc}
- loop all players in radius 6 of {_loc}:
- if loop-player is set:
- spawn a pig at {_loc}
- set name of the last spawned pig to "&dFriendly Pig"
- heal the last spawned pig
- set the health of the last spawned pig to 45
- on break of green concrete:
- set {_loc} to location of event-block
- loop {level.one.zombie::*}:
- if {level.one.zombie::*} contains {_loc}:
- remove {_loc} from {level.one.zombie::*}
- on break of pink concrete:
- set {_loc} to location of event-block
- loop {level.one.pig::*}:
- if {level.one.pig::*} contains {_loc}:
- remove {_loc} from {level.one.pig::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement