Hello, i recently edited the slingshot in my server, and it works pretty nice but i want to make it more complex and i want the slingshot to work kind of like a bow, i want my slingshot to shoot rocks, i already got it to work, but the problem is that it shoots rocks even if you dont have the rock in the arrow slot, i want it to work only if it has the rock in the arrow slot, but i dont want other bows or crossbows to shoot the rock, only the slingshot :l idk if you guys understand me im trying my best.
this is the code i have right now
in items.xml
and in weapons
please help
this is the code i have right now
in items.xml
Code:
<item id="5907" article="a" name="Slingshot">
<attribute key="weight" value="1200" />
<attribute key="attack" value="750" />
<attribute key="weaponType" value="distance" />
<attribute key="shootType" value="smallstone" />
<attribute key="maxHitChance" value="95"/>
<attribute key="range" value="7" />
<attribute key="breakChance" value="0" />
</item>
Code:
<distance id="5907" level="200" event="function" value="default"> <!-- Slingshot-->
<vocation id="3"/>
<vocation id="7" showInDescription="0"/>
</distance>