Guest User

Untitled

a guest
Nov 14th, 2025
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.78 KB | None | 0 0
  1. # ----------------------------- #
  2. # #
  3. # Example Weapon. #
  4. # #
  5. # Just Copy Paste this file to #
  6. # make other weapons #
  7. # #
  8. # ----------------------------- #
  9.  
  10. # Item Settings.
  11. item:
  12. # Item ID.
  13. id: iron_sword
  14.  
  15. # Item display name.
  16. display-name: '&7&lThrowing Knife'
  17.  
  18. # Item Lore. Use of & for colors.
  19. lore:
  20. - ' '
  21. - '&7Drop to throw!'
  22.  
  23. # Damage entities get when getting hit by that.
  24. damage: 6
  25.  
  26. # Cooldown, in ticks. (1 second = 20 ticks, 1 tick = 0.05s)
  27. cooldown: 40
  28.  
  29. # Speed of the weapon.
  30. speed: 2.35
  31.  
  32. # Permission to throw the weapon.
  33. permission: throwingweapons.knife
  34.  
  35. # Trail Settings.
  36. trail:
  37. # Trail enabled or not?
  38. enabled: true
  39.  
  40. # Trail Particle.
  41. # List: http://pastebin.com/CVKkufck
  42. particle: CRIT
  43.  
  44. # Actions executed when Throwing Weapon hits an entity.
  45. on-hit:
  46. # Potion Effects to give.
  47. # Format:
  48. # NAME, duration(in ticks), strength
  49. # List for NAME: http://bit.ly/28MDLG2
  50. potion-effects:
  51. - 'POISON, 60, 1'
  52. - 'BLINDNESS, 60, 1'
  53.  
  54. # Put the entity on fire when hitting it.
  55. fire:
  56. enabled: false
  57. # duration (in ticks) 20ticks = 1 sec. 1 tick = 0.05seconds
  58. duration: 160
  59.  
  60. # Commands to execute when the weapon hits an entity.
  61. # Commands executed as console!
  62. #
  63. # %tw_thrower% -> The name of the player who threw the weapon.
  64. # %tw_hit% -> Player: their name.
  65. # Entity without name: Type of entity. (e.g. "Pig", "Villager").
  66. # Entity w/ custom name: Its custom name.
  67. # %tw_item% -> The display name of this weapon. (of the item).
  68. # %tw_item_original% -> The display name defined in Throwing Weapons
  69. # This will be different from %tw_item% if
  70. # using Nexo, Oraxen, or ItemsAdder.
  71. # %tw_id% -> The ID of the item.
  72. #
  73. # --- Supports PlaceholderAPI!
  74. # The player is always the thrower. You can also use the name of
  75. # the other player with %tw_hit%
  76. # Example: %otherplayer_level_%tw_thrower%%
  77. commands-on-hit-player:
  78. - 'say %tw_thrower% hit player %tw_hit% with %tw_item%!'
  79. commands-on-hit-entity:
  80. - 'say %tw_thrower% hit entity %tw_hit% with %tw_item%!'
  81.  
  82. # Run hit commands also when the hit kills the entity.
  83. run-commands-on-kill: true
  84.  
  85. # Chance to drop when hitting ground (Out of 100)
  86. drop-chance-ground:
  87. enabled: false
  88. chance: 40
  89.  
  90. # Chance to drop when hitting entity (Out of 100)
  91. drop-chance-entity:
  92. enabled: false
  93. chance: 40
  94.  
  95. # Commands executed when the weapon kills a non-player entity.
  96. commands-on-kill-entity: []
  97.  
  98. # Commands executed when the weapon kills a player.
  99. commands-on-kill-player: []
  100.  
  101. # Crafting Settings.
  102. crafting:
  103. # Should the item be craftable?
  104. enabled: true
  105.  
  106. # Shaped Craft?
  107. # If yes, you can dispose how you want the items in the grid. Like a torch.
  108. # If not, you have the follow the exact crafting.
  109. shaped-craft: true
  110.  
  111. # Ingredients.
  112. # Pattern:
  113. # a,b,c,d,e,f,g,h,i
  114. #
  115. # It corresponds to that in Minecraft:
  116. # a b c
  117. # d e f
  118. # g h i
  119. #
  120. # Use Items IDs.
  121. ingredients: 'iron_ingot,stick,iron_ingot,0,arrow,0,0,0,0'
  122.  
  123. #
  124. # Amount of throwing weapons created when crafting.
  125. #
  126. amount: 5
  127.  
  128. # Should the item rotate?
  129. rotation-animation: true
  130.  
  131. # Does the weapon drops when it hits the ground?
  132. drops-when-hits-ground: true
  133.  
  134. # Does the weapon drops when it hits an entity?
  135. drops-when-hits-entity: true
  136.  
  137. # Should all items of the ID of this throwing weapon be throwable?
  138. overrides-default-mc-item: false
  139.  
  140. # Should the weapon go directly back in thrower when it hits something?
  141. goes-back-to-inventory: false
  142.  
  143. # Sounds config
  144. sounds:
  145. # Sound to play on hit.
  146. on-hit:
  147. # Enabled?
  148. enabled: true
  149. # Which sound? Sound List: http://pastebin.com/giyy6JKp
  150. sound: ARROW_HIT
  151. # Sound to play on throw.
  152. on-throw:
  153. # Enabled?
  154. enabled: true
  155. # Which sound? Sound List: http://pastebin.com/giyy6JKp
  156. sound: IRONGOLEM_THROW
  157.  
  158. # Only works on items that have durability (swords, etc).
  159. durability:
  160. # Should the item decrease at each use or not.
  161. decreases: false
  162. # How much it decreases at each use.
  163. decrease-per-use: 1
  164.  
  165. # How should it be thrown?
  166. # Possible:
  167. # DROP
  168. # LEFT_CLICK
  169. # RIGHT_CLICK
  170. throw-manner: DROP
  171.  
  172. bypass-delay-between-weapons: false
  173.  
  174. # Works only on 1.14+
  175. custom-model-data:
  176. enabled: false
  177. value: 123456
  178.  
  179. # You can also use the plugin Oraxen for custom items, instead of custom model data.
  180. # 1.14+ only too
  181. oraxen:
  182. enabled: false
  183. oraxen-id: your_custom_item
  184.  
  185. # You can also use the plugin ItemsAdder for custom items, instead of custom model data.
  186. # 1.14+ only too
  187. itemsadder:
  188. enabled: false
  189. itemsadder-id: your_custom_item
  190.  
  191. # You can also use the plugin Nexo for custom items, instead of custom model data.
  192. # 1.14+ only too
  193. nexo:
  194. enabled: false
  195. nexo-id: your_custom_item
  196.  
  197. # Only on +1.14!
  198. # Format: 'MODIFIER, SLOT, Operation, Amount
  199. # List of modifiers:
  200. # - MAX_HEALTH
  201. # - FOLLOW_RANGE
  202. # - KNOCKBACK_RESISTANCE
  203. # - MOVEMENT_SPEED
  204. # - ATTACK_DAMAGE
  205. # - ATTACK_SPEED
  206. # - ARMOR
  207. # - ARMOR_TOUGHNESS
  208. # - LUCK
  209. # List of slots:
  210. # - ANY
  211. # - HAND
  212. # - OFF_HAND
  213. # - HEAD
  214. # - CHEST
  215. # - LEGS
  216. # - FEET
  217. # List of operations:
  218. # - AMOUNT
  219. # - PERCENTAGE
  220. # - MULTIPLY
  221. modifiers:
  222. enabled: false
  223. list:
  224. - 'MAX_HEALTH, ANY, AMOUNT, 1'
  225. - 'ATTACK_DAMAGE, OFF_HAND, PERCENTAGE, 4'
  226.  
  227. knockback:
  228. enabled: true
  229. # Knockback vertical component
  230. vertical: 0.2
  231. # Knockback strength
  232. strength: 1.0
  233.  
  234. # This setting overrides all the others.
  235. # If enabled, the weapon keeps a constant
  236. # speed along a straight trajectory.
  237. # The speed is the one set in the speed
  238. # setting above multiplied by this factor.
  239. #
  240. # This SHOULD be used with
  241. # max-living-ticks enabled!!
  242. straight-trajectory:
  243. enabled: false
  244. multiplier: 0.3
  245.  
  246. # Max living ticks for the weapon.
  247. # 1 tick = 0.05 seconds.
  248. # 20 ticks = 1 second
  249. max-living-ticks:
  250. enabled: false
  251. value: 50
  252.  
  253. # These settings allow for affecting the
  254. # gravity and can make the weapon
  255. # fall slower (have a longer range)
  256. # without requiring a very high speed.
  257. #
  258. # Warning, these settings can make the
  259. # weapon act weirdly and stay
  260. # in the air for a long time.
  261. # Preferably use with max-living-ticks
  262. # enabled, or use straight-trajectory
  263. # with max-living-ticks.
  264. gravity-modifiers:
  265. # Maximum Y velocity for the weapon.
  266. # if velocity y <= -value, the weapon
  267. # will not accelerate more downward.
  268. max-y-velocity:
  269. enabled: false
  270. value: 0.1
  271. # At each tick, this value is added
  272. # to the weapon's velocity y (upward).
  273. anti-gravity:
  274. enabled: false
  275. value: 0.01
Add Comment
Please, Sign In to add comment