Can change slots by changing Equipment.SLOT_ARROWS to what you need.Code:int ammo = player.getEquipment().getItem(Equipment.SLOT_ARROWS).getAmount();
|
im trying to make it so the amount of ammo weilded can be saved,
for example
in player.java
public int ammocount = 0;
in commands.java
case "getammocount":
player.ammocount = the amount of ammo that player is wearing
return true;
been looking around and rlly cant find out how to do this, theres nothing in my equipment class for this (or that i know of)
thanks
Can change slots by changing Equipment.SLOT_ARROWS to what you need.Code:int ammo = player.getEquipment().getItem(Equipment.SLOT_ARROWS).getAmount();
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |