ObliviousSpartan / SpartanWeaponry

Weapons Galore! A whole new arsenal of weaponry made for Minecraft
https://www.curseforge.com/minecraft/mc-mods/spartan-weaponry
Apache License 2.0
30 stars 8 forks source link

[SUGGESTION] Quiver #89

Open P4YN-Ki opened 1 month ago

P4YN-Ki commented 1 month ago

Would it be possible to make which slot the Quiver uses when using Curios, Accessories, Baubles and what ever else this is compatible with? With so many other items possibly taking up the back slot, Elytra, Backpack etc etc It would be cool to be able to hang the quiver on say the waist slot.

Stranding14 commented 1 month ago

You can do so with KubeJS I've found. You need to remove all of the spartan tags on the item for the accessories quiver slot to show up & be functional The below code needs to be in $modpackroot/kubejs/server_scripts


ServerEvents.tags('item', event => {
  event.removeAllTagsFrom('spartanweaponry:small_arrow_quiver');
  event.removeAllTagsFrom('spartanweaponry:medium_arrow_quiver');
  event.removeAllTagsFrom('spartanweaponry:large_arrow_quiver');
  event.removeAllTagsFrom('spartanweaponry:huge_bolt_quiver');
  event.removeAllTagsFrom('spartanweaponry:small_bolt_quiver');
  event.removeAllTagsFrom('spartanweaponry:medium_bolt_quiver');
  event.removeAllTagsFrom('spartanweaponry:large_bolt_quiver');
  event.removeAllTagsFrom('spartanweaponry:huge_bolt_quiver'); 
  event.add('trinkets:legs/quiver', 'spartanweaponry:small_arrow_quiver');
  event.add('trinkets:legs/quiver', 'spartanweaponry:medium_arrow_quiver');
  event.add('trinkets:legs/quiver', 'spartanweaponry:large_arrow_quiver');
  event.add('trinkets:legs/quiver', 'spartanweaponry:huge_arrow_quiver');
  event.add('trinkets:legs/quiver', 'spartanweaponry:small_bolt_quiver');
  event.add('trinkets:legs/quiver', 'spartanweaponry:medium_bolt_quiver');
  event.add('trinkets:legs/quiver', 'spartanweaponry:large_bolt_quiver');
  event.add('trinkets:legs/quiver', 'spartanweaponry:huge_bolt_quiver');
});