Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Autor MinigameShoot/EndDragos
- # 1 ulepszenie [potrzeba] coal, charcoal
- # 2 -||- diamond, iron ingot
- # 3 -||- stick, bow
- # 4 -||- string, feather
- # 5 -||- gunpowder, seends
- # 6 -||- wheat, flint
- # 7 -||- leather, brick
- # 8 -||- 2x clay, 2x cocoa
- # 9 -||- 3x egg, 3x lapis lazuli
- on pick up diamond sword:
- if name of event-item is "Dlugi Miecz":
- if player's level >= 10:
- set {_lvl} to 0 or 1 or 2
- set item's name to "Dlugi Miecz +%{_lvl}%"
- set {lvl.miecz.%player%} to {_lvl}
- set {1.%player%} to false
- set {2.%player%} to false
- set {3.%player%} to false
- set {4.%player%} to false
- set {5.%player%} to false
- set {6.%player%} to false
- set {7.%player%} to false
- set {8.%player%} to false
- set {9.%player%} to false
- else:
- cancel event
- if {spam.%player%} is false:
- send "&cAby podniesc ten item musisz miec 10 lvl"
- set {spam.%player%} to true
- wait 5 second
- set {spam.%player%} to false
- on right click on villager:
- if name of clicked entity is "Kowal":
- if player is holding diamond sword:
- cancel event
- open chest with 1 rows named "&eUlepszenie Miecza" to player
- wait 2 tick
- format slot 4 of player with diamond sword named "Ulepsz" with lore "Kliknij, aby ulepszyc" to close then run "ulepsz %player% miecz"
- format slot 6 of player with red wool named "Zamknij" with lore "Kliknij, aby zamknac" to close
- command /miecze [<text>] [<text>]:
- permissions: miecze.*
- trigger:
- if arg 1 is "setnpc":
- spawn villager at location of player
- set the name of spawned entity to "Kowal"
- apply slowness 100 to spawned entity
- on left click on villager:
- if name of clicked entity is "Kowal":
- cancel event
- on death of Skeleton:
- chance of 5%:
- drop diamond sword with name "Dlugi Miecz" at location of victim
- on death of zombie:
- chance of 5%:
- drop diamond sword with name "Dlugi Miecz" at location of victim
- variables:
- {1.%player%} = false
- {2.%player%} = false
- {3.%player%} = false
- {4.%player%} = false
- {5.%player%} = false
- {6.%player%} = false
- {7.%player%} = false
- {8.%player%} = false
- {9.%player%} = false
- {spam.%player%} = false
- command /reset:
- trigger:
- set {1.%player%} to false
- set {2.%player%} to false
- set {3.%player%} to false
- set {4.%player%} to false
- set {5.%player%} to false
- set {6.%player%} to false
- set {7.%player%} to false
- set {8.%player%} to false
- set {9.%player%} to false
- command /ulepsz [<player>] [<text>]:
- trigger:
- if arg 2 is "miecz":
- if {1.%player-arg%} is false:
- if player-arg have 1 coal:
- if player-arg have 1 charcoal:
- set {_ile} to 1
- set {_lvl1} to {lvl.miecz.%player-arg%} + 1
- if {_lvl1} <= 9:
- remove diamond sword from player-arg
- remove 1 coal from player-arg
- remove 1 charcoal from player-arg
- give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
- set {lvl.miecz.%player-arg%} to {_lvl1}
- set {1.%player-arg%} to true
- else:
- if {2.%player-arg%} is false:
- if player-arg have 1 diamond:
- if player-arg have 1 of iron ingot:
- set {_ile} to 1
- set {_lvl1} to {lvl.miecz.%player-arg%} + 1
- if {_lvl1} <= 9:
- remove diamond sword from player-arg
- remove 1 diamond from player-arg
- remove 1 iron ingot from player-arg
- give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
- set {lvl.miecz.%player-arg%} to {_lvl1}
- set {2.%player-arg%} to true
- else:
- if {3.%player-arg%} is false:
- if player-arg have 1 stick:
- if player-arg have bowl:
- set {_ile} to 1
- set {_lvl1} to {lvl.miecz.%player-arg%} + 1
- if {_lvl1} <= 9:
- remove diamond sword from player-arg
- remove 1 stick from player-arg
- remove bow from player-arg
- give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
- set {lvl.miecz.%player-arg%} to {_lvl1}
- set {3.%player-arg%} to true
- else:
- if {4.%player-arg%} is false:
- if player-arg have 1 string:
- if player-arg have 1 feather:
- set {_ile} to 1
- set {_lvl1} to {lvl.miecz.%player-arg%} + 1
- if {_lvl1} <= 9:
- remove 1 string from player-arg
- remove 1 feather from player-arg
- remove bow from player-arg
- give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
- set {lvl.miecz.%player-arg%} to {_lvl1}
- set {4.%player-arg%} to true
- else:
- if {5.%player-arg%} is false:
- if player-arg have 1 gunpowder:
- if player-arg have 1 seeds:
- set {_ile} to 1
- set {_lvl1} to {lvl.miecz.%player-arg%} + 1
- if {_lvl1} <= 9:
- remove diamond sword from player-arg
- remove 1 gunpowder from player-arg
- remove 1 seeds from player-arg
- give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
- set {lvl.miecz.%player-arg%} to {_lvl1}
- set {5.%player-arg%} to true
- else:
- if {6.%player-arg%} is false:
- if player-arg have 1 wheat:
- if player-arg have flint:
- set {_ile} to 1
- set {_lvl1} to {lvl.miecz.%player-arg%} + 1
- if {_lvl1} <= 9:
- remove diamond sword from player-arg
- remove 1 wheat from player-arg
- remove 1 flint from player-arg
- give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
- set {lvl.miecz.%player-arg%} to {_lvl1}
- set {6.%player-arg%} to true
- else:
- if {7.%player-arg%} is false:
- if player-arg have 1 leather:
- if player-arg have 1 brick:
- chance of 75%:
- set {_ile} to 1
- replace all "<none>" with "0" in {_ile}
- set {_lvl1} to {lvl.miecz.%player-arg%} + {_ile}
- if {_lvl1} <= 9:
- remove diamond sword from player-arg
- remove 1 leather from player-arg
- remove 1 brick from player-arg
- give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
- set {lvl.miecz.%player-arg%} to {_lvl1}
- set {7.%player-arg%} to true
- else:
- if {8.%player-arg%} is false:
- if player-arg have 2 clay:
- if player-arg have 2 cocoa beans:
- chance of 50%:
- set {_ile} to 1
- replace all "<none>" with "0" in {_ile}
- set {_lvl1} to {lvl.miecz.%player-arg%} + {_ile}
- if {_lvl1} <= 9:
- remove diamond sword from player-arg
- remove 2 clay from player-arg
- remove 2 cocoa beans from player-arg
- give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
- set {lvl.miecz.%player-arg%} to {_lvl1}
- set {8.%player-arg%} to true
- else:
- if {9.%player-arg%} is false:
- if player-arg have 3 lapis lazuli:
- if player-arg have 3 egg:
- chance of 25%:
- set {_ile} to 1
- replace all "<none>" with "0" in {_ile}
- set {_lvl1} to {lvl.miecz.%player-arg%} + {_ile}
- if {_lvl1} <= 9:
- remove diamond sword from player-arg
- remove 3 lapis lazuli from player-arg
- remove 3 egg from player-arg
- give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
- set {lvl.miecz.%player-arg%} to {_lvl1}
- set {9.%player-arg%} to true
- on damage:
- if attacker is holding diamond sword:
- cancel event
- if {lvl.miecz.%attacker%} = 0:
- damage victim by 0.5 hearts
- if {lvl.miecz.%attacker%} = 1:
- damage victim by 1 hearts
- if {lvl.miecz.%attacker%} = 2:
- damage victim by 1.5 hearts
- if {lvl.miecz.%attacker%} = 3:
- damage victim by 2 hearts
- if {lvl.miecz.%attacker%} = 4:
- damage victim by 2.5 hearts
- if {lvl.miecz.%attacker%} = 5:
- damage victim by 3 hearts
- if {lvl.miecz.%attacker%} = 6:
- damage victim by 3.5 hearts
- if {lvl.miecz.%attacker%} = 7:
- damage victim by 4 hearts
- if {lvl.miecz.%attacker%} = 8:
- damage victim by 4.5 hearts
- if {lvl.miecz.%attacker%} = 9:
- damage victim by 5 hearts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement