SHARE
TWEET

Untitled

a guest Aug 26th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on rightclick on anvil:
  2. /tblock under the event-block is obsidian block
  3. /tcancel event
  4. /tif player's tool is sword:
  5. /t/tif {tool.%player%} is set:
  6. /t/t/tmessage "<pink>ζ—’γ«ε‰£γŒγ‚»γƒƒγƒˆγ•γ‚Œγ¦γ„γΎγ™"
  7. /t/t/tstop
  8. /t/tset {tool.%player%} to player's tool
  9. /t/tdelete player's tool
  10. /telse if player's tool is a charcoal or a coal item:
  11. /t/tif {tool.%player%} is not set:
  12. /t/t/tmessage "<pink>ε‰£γŒγ‚»γƒƒγƒˆγ•γ‚Œγ¦γ„γΎγ›γ‚“"
  13. /t/t/tstop
  14. /t/tif lore of {tool.%player%} doesn't contain "-AttackBonus:":
  15. /t/t/tif lore of {tool.%player%} is "":
  16. /t/t/t/tset lore of {tool.%player%} to "-AttackBonus:0%%"
  17. /t/t/telse:
  18. /t/t/t/tset lore of {tool.%player%} to "%lore of {tool.%player%}%||-AttackBonus:0%%"
  19. /t/tif player's tool is a charcoal:
  20. /t/t/tset {_up} to 3
  21. /t/telse if player's tool is a coal item:
  22. /t/t/tset {_up} to 5
  23. /t/tremove 1 of player's tool from player
  24. /t/twhile true:
  25. /t/t/tadd 1 to {_line}
  26. /t/t/tset {_lore} to line {_line} of lore of {tool.%player%}
  27. /t/t/tif {_lore} is not set:
  28. /t/t/t/texit 2 sections
  29. /t/t/tadd {_lore} to {_lore::*}
  30. /t/t/tdelete {_lore}
  31. /t/tloop {_lore::*}:
  32. /t/t/tadd 1 to {_inx}
  33. /t/t/tif the first index of "-AttackBonus:" in loop-value is not -1:
  34. /t/t/t/tset {_number} to (subtext of loop-value from 14 to length of loop-value) parsed as number
  35. /t/t/t/tadd {_up} to {_number}
  36. /t/t/t/tset line {_inx} of lore of {tool.%player%} to "-AttackBonus:%{_number}%"
  37. /t/t/t/tmessage "<red>εΌ·εŒ–εΎŒβ†’-AttackBonus:%{_number}%"
  38. /telse if player's tool is air block:
  39. /t/tgive {tool.%player%} to player
  40. /t/tdelete {tool.%player%}
  41. /telse:
  42. /t/tif {tool.%player%} is set:
  43. /t/t/tmessage "<pink>ζ—’γ«ε‰£γŒγ‚»γƒƒγƒˆγ•γ‚Œγ¦γ„γΎγ™"
  44. /t/t/tstop
  45. /t/tmessage "<pink>剣δ»₯ε€–γ―εΌ·εŒ–γ§γγΎγ›γ‚“"
  46.  
  47. on damage:
  48. /t{AttackBonus.%attacker%} is set
  49. /tset damage to damage * (100+{AttackBonus.%attacker%})/100
  50.  
  51. on tool change:
  52. /tdelete {AttackBonus.%player%}
  53. /tlore of player's tool is set
  54. /twhile true:
  55. /t/tadd 1 to {_line}
  56. /t/tset {_lore} to line {_line} of lore of player's tool
  57. /t/tif {_lore} is not set:
  58. /t/t/texit 2 sections
  59. /t/tadd {_lore} to {_lore::*}
  60. /t/tdelete {_lore}
  61. /tloop {_lore::*}:
  62. /t/tadd 1 to {_inx}
  63. /t/tif the first index of "-AttackBonus:" in loop-value is not -1:
  64. /t/t/tset {_number} to (subtext of loop-value from 14 to length of loop-value) parsed as number
  65. /t/t/tset {AttackBonus.%player%} to {_number}
  66. /tif {AttackBonus.%player%} is set:
  67. /t/tmessage "<lime>ζ”»ζ’ƒεŠ›γƒœγƒΌγƒŠγ‚Ή:%{AttackBonus.%player%}%%%"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top