04-26-2014, 04:31 AM
Do arrows actually get used up? I've been looking around, and I can't seem to find where that happens.
Enchanting
|
04-26-2014, 04:31 AM
Do arrows actually get used up? I've been looking around, and I can't seem to find where that happens.
04-26-2014, 04:36 AM
Yes, the arrows will be used and removed from the inventory. I also can't find it ...
04-26-2014, 06:33 AM
All completely clientside I think.
src/Items/ItemBow.h line 78:
if (!a_Player->IsGameModeCreative()) { a_Player->UseEquippedItem(); } EDIT: Wait, no, that only decreases bow durability. Then the arrows aren't removed server-side.
04-26-2014, 11:25 AM
So arrow use hasn't been actually implemented yet. Huh.
04-27-2014, 12:16 AM
(This post was last modified: 04-27-2014, 12:20 AM by daniel0916.)
So when the client remove the arrow from the inventory, mcserver don't remove it or? Then the server and client are out of sync.
EDIT: Yes, it is so. You can duplicate arrows. I will fix this. EDIT2: Give it a method to search in the inventory for a item?
04-27-2014, 07:34 AM
I think you'll have to make a method yourself: that was one reason why it wasn't fixed a long time back :P
04-28-2014, 03:34 AM
(This post was last modified: 04-28-2014, 03:37 AM by daniel0916.)
Where should i add the checks for the protection enchantments?
In the "TakeDamage" method or in the "GetArmorCoverAgainst" method?
Based on the armor wiki page, I think the TakeDamage function is a better place for that calculation (but implement the core calculation in a separate function, called by TakeDamage)
Ref.: http://minecraft.gamepedia.com/Armor#Enchantments
06-18-2014, 12:49 AM
Are you still working on this? If you aren't you could maybe do a PR of actually implemented enchantments
|
« Next Oldest | Next Newest »
|