Spartan Weaponry

Spartan Weaponry

34M Downloads

[SUGGESTION] Quiver

P4YN-Ki opened this issue ยท 1 comments

commented

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.

commented

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');
});