Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Skript by IndecisivePig
- options:
- P: &f[&bFIRST!&f]
- command /first <text>:
- usage: /first <on/off/reset>
- permission: first.op
- trigger:
- if arg-1 is "on":
- send "{@P} &aEnabled!"
- set {first} to true
- if arg-1 is "off":
- send "{@P} &cDisabled!"
- set {first} to false
- if arg-1 is "reset":
- send "{@P} Reset all actions/rewards"
- delete {firstdamage}
- delete {firstctable}
- delete {firstiron}
- delete {firstgold}
- delete {firstdia}
- delete {firstemerald}
- delete {firstgapple}
- delete {firstbow}
- delete {firstrod}
- delete {firstnether}
- delete {firstblaze}
- delete {firstbrew}
- delete {firstpoison}
- delete {firstgoldstack}
- delete {firstenchant}
- delete {firstanvil}
- delete {firstmeleekill}
- delete {firstbowkill}
- delete {firstkillthree}
- delete {firstkillfive}
- delete {ironreward}
- set {ironlimit} to 0
- loop all players:
- set {fkills.%loop-player%} to 0
- set {goldstack.%loop-player%} to 0
- command /fl:
- trigger:
- send "Skript by &bIndecisivePig" to player
- send "Version 1.3" to player
- if {firstdamage} is true:
- send "&c&mFirst Damage: 1 Iron Ingot" to player
- else:
- send "&aFirst Damage: 1 Iron Ingot" to player
- if {firstctable} is true:
- send "&c&mFirst Workbench crafted: 63 Workbenches" to player
- else:
- send "&aFirst Workbench crafted: 63 Workbenches" to player
- if {firstiron} is true:
- send "&c&mFirst Iron mined: Next 10 Iron is smelted" to player
- else:
- send "&aFirst Iron mined: Next 10 Iron is smelted" to player
- if {firstgold} is true:
- send "&c&mFirst Gold mined: 2 Apples" to player
- else:
- send "&aFirst Gold Mined: 2 Apples" to player
- if {firstdia} is true:
- send "&c&mFirst Diamond mined: 1 Golden Apple" to player
- else:
- send "&aFirst Diamond mined: 1 Golden Apple" to player
- if {firstemerald} is true:
- send "&c&mFirst Emerald mined: 1 Villager Spawn Egg" to player
- else:
- send "&aFirst Emerald mined: 1 Villager Spawn Egg" to player
- if {firstgapple} is true:
- send "&c&mFirst Golden Apple crafted: 1 Golden Apple" to player
- else:
- send "&aFirst Golden Apple crafted: 1 Golden Apple" to player
- if {firstbow} is true:
- send "&c&mFirst Bow crafted: 8 Feathers" to player
- else:
- send "&aFirst Bow crafted: 8 Feathers" to player
- if {firstrod} is true:
- send "&c&mFirst Rod crafted: Lure 1 Book" to player
- else:
- send "&aFirst Rod crafted: Lure 1 Book" to player
- if {firstnether} is true:
- send "&c&mFirst Nether enter: 1 Portal Block" to player
- else:
- send "&aFirst Nether enter: 1 Portal Block" to player
- if {firstblaze} is true:
- send "&c&mFirst Blaze killed: 1 Fire resistance potion" to player
- else:
- send "&aFirst Blaze killed: 1 Fire resistance potion" to player
- if {firstbrew} is true:
- send "&c&mFirst Brewing Stand crafted: 3 Water Bottles" to player
- else:
- send "&aFirst Brewing Stand crafted: 3 Water Bottles" to player
- if {firstpoison} is true:
- send "&c&mFirst Poisoned: Heal potion I" to player
- else:
- send "&aFirst Poisoned: Heal potion I" to player
- if {firstgoldstack} is true:
- send "&c&mFirst Stack of Gold smelted: Diamond Sword" to player
- else:
- send "&aFirst Stack of Gold smelted: Diamond Sword" to player
- if {firstenchant} is true:
- send "&c&mFirst Enchant Table crafted: 10 Books" to player
- else:
- send "&aFirst Enchant Table crafted: 10 Books" to player
- if {firstanvil} is true:
- send "&c&mFirst Anvil crafted: 5 String" to player
- else:
- send "&aFirst Anvil crafted: 5 String" to player
- if {firstmeleekill} is true:
- send "&c&mFirst Melee Kill: 8 Gold" to player
- else:
- send "&aFirst Melee Kill: 8 Gold" to player
- if {firstbowkill} is true:
- send "&c&mFirst Bow Kill: 8 Gold" to player
- else:
- send "&aFirst Bow Kill: 8 Gold" to player
- if {firstkillthree} is true:
- send "&c&mFirst to 3 Kills: Power 2 Book" to player
- else:
- send "&aFirst to 3 Kills: Power 2 Book" to player
- if {firstkillfive} is true:
- send "&c&mFirst to 5 Kills: Sharpness 2 Book" to player
- else:
- send "&aFirst to 5 Kills: Sharpness 2 Book" to player
- on damage of player:
- {first} is true
- {firstdamage} is not set
- give victim 1 iron ingot
- broadcast "{@P} %victim% took first &cdamage&f!"
- set {firstdamage} to true
- on craft of crafting table:
- {first} is true
- {firstctable} is not set
- give player 63 crafting tables
- broadcast "{@P} %player% crafted the first &8crafting table&f!"
- set {firstctable} to true
- on leftclick on iron ore:
- {first} is true
- player is holding stone pickaxe, iron pickaxe, or diamond pickaxe
- {ironreward} is "%player%":
- {ironlimit} is less than 10
- cancel event
- set the block at event-location to air
- drop 1 iron ingot at event-location
- drop 1 experience at event-location
- add 1 to {ironlimit}
- stop
- {firstiron} is not set:
- wait 2 seconds
- event-block is not iron ore
- set {ironreward} to "%player%"
- set {ironlimit} to 0
- broadcast "{@P} %player% mined the first &7iron&f!"
- set {firstiron} to true
- on break of gold ore:
- {first} is true
- player is holding a iron pickaxe or diamond pickaxe
- {firstgold} is not set
- give player 2 apples
- broadcast "{@P} %player% mined the first &6gold&f!"
- set {firstgold} to true
- on mine of diamond ore:
- {first} is true
- player is holding iron pickaxe or diamond pickaxe
- {firstdia} is not set
- give player 1 golden apple
- broadcast "{@P} %player% mined the first &bdiamond&f!"
- set {firstdia} to true
- on mine of emerald ore:
- {first} is true
- player is holding iron pickaxe or diamond pickaxe
- {firstemerald} is not set
- give player 1 villager spawn egg
- broadcast "{@P} %player% mined the first &aemerald&f!"
- set {firstemerald} to true
- on craft of golden apple:
- {first} is true
- {firstgapple} is not set
- give player 1 golden apple
- broadcast "{@P} %player% crafted the first &6golden apple&f!"
- set {firstgapple} to true
- on craft of bow:
- {first} is true
- {firstbow} is not set
- give player 8 feathers
- broadcast "{@P} %player% crafted the first &8bow&f!"
- set {firstbow} to true
- on craft of fishing rod:
- {first} is true
- {firstrod} is not set
- execute console command "/minecraft:give %player% minecraft:enchanted_book 1 0 {StoredEnchantments:[{id:62,lvl:1}]}"
- broadcast "{@P} %player% crafted the first &8rod&f!"
- set {firstrod} to true
- on player portal:
- {first} is true
- wait 2 seconds
- biome at the player is hell
- {firstnether} is not set
- give player purple stained glass named "&rPortal" with lore "&5Place to spawn a portal block"
- broadcast "{@P} %player% was the first to enter the &4nether&f!"
- set {firstnether} to true
- on place of purple stained glass:
- player is holding purple stained glass named "&rPortal"
- set the block at event-location to portal block
- on damage of blaze:
- {first} is true
- {firstblaze} is not set
- attacker is player
- wait 1 tick
- victim is dead
- set {firstblaze} to true
- give attacker a fire resistance potion
- broadcast "{@P} %attacker% killed the first &6blaze&f!"
- on craft of brewing stand:
- {first} is true
- {firstbrew} is not set
- give player 3 water bottles
- broadcast "{@P} %player% crafted the first &ebrewing stand&f!"
- set {firstbrew} to true
- on damage of player:
- {first} is true
- damage is caused by poison or wither
- {firstpoison} is not set
- give victim 1 potion of healing
- broadcast "{@P} %victim% was the first &2poisoned&f!"
- set {firstpoison} to true
- on place of furnace:
- {first} is true
- set {furnace.%event-block%} to "%player%"
- on smelt of ore:
- {first} is true
- the result of the event-block is gold ingot
- {firstgoldstack} is not set
- add 1 to {goldstack.%{furnace.%event-block%}%}
- if {goldstack.%{furnace.%event-block%}%} is greater than 63:
- broadcast "{@P} %{furnace.%event-block%}% smelted the first &6stack of gold&f!"
- give player 1 diamond sword
- loop all players:
- set {goldstack.%loop-player%} to 0
- set {firstgoldstack} to true
- on craft of enchantment table:
- {first} is true
- {firstenchant} is not set
- give player 10 books
- broadcast "{@P} %player% crafted the first &5enchant table&f!"
- set {firstenchant} to true
- on craft of anvil:
- {first} is true
- {firstanvil} is not set
- give player 5 string
- broadcast "{@P} %player% crafted the first &7anvil&f!"
- set {firstanvil} to true
- on damage of player:
- {first} is true
- attacker is player
- damage was caused by attack
- wait 1 tick
- victim is dead
- {firstmeleekill} is not set
- set {firstmeleekill} to true
- give attacker 8 gold ingot
- broadcast "{@P} %attacker% got the first &cmelee kill&f!"
- on damage of player:
- {first} is true
- attacker is player
- attacker is not victim
- projectile is arrow
- {firstbowkill} is not set
- wait 1 tick
- victim is dead
- set {firstbowkill} to true
- give attacker 8 gold ingots
- broadcast "{@P} %attacker% got the first &cbow kill&f!"
- on damage of player:
- {first} is true
- attacker is player
- attacker is not victim
- {firstkillfive} is not set
- wait 1 tick
- victim is dead
- add 1 to {fkills.%attacker%}
- if {fkills.%attacker%} is greater than 2:
- {firstkillthree} is not set
- broadcast "{@P} %attacker% was the first to &43 kills&f!"
- execute console command "/minecraft:give %attacker% minecraft:enchanted_book 1 0 {StoredEnchantments:[{id:48,lvl:2}]}"
- set {firstkillthree} to true
- if {fkills.%attacker%} is greater than 4:
- {firstkillfive} is not set
- broadcast "{@P} %attacker% was the first to &45 kills&f!"
- execute console command "/minecraft:give %attacker% minecraft:enchanted_book 1 0 {StoredEnchantments:[{id:16,lvl:2}]}"
- set {firstkillfive} to true
- loop all players:
- set {fkills.%loop-player%} to 0
- on death of player:
- {first} is true
- set {fkills.%victim%} to 0
- set {goldstack.%victim%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement