Raised This Month: $ Target: $400
 0% 

Solved Shield entitiy detection doesn't work while player is using it?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GasmoN
Member
Join Date: Jul 2014
Old 05-23-2022 , 08:58   Re: Shield entitiy detection doesn't work while player is using it?
Reply With Quote #1

I know that, it really do works that way but I can't achive what I really need that way (or can I?).
So when custom entity touches player's shield, I need to check If player is actually using shield (sequence 98 ), if he is using it, I can call some function there.


Custom Entity touches player's shield > check if player is using that shield (sequence 98 ) > Call custom function

And by the method u mentioned, I am not really sure how to check if custom entity is touching player's shield. I do know to check if player is using shield tho.

PS: I don't need anyone to write me a code, I just need explanation how to actually achive this since I ran out of ideas.

Last edited by GasmoN; 05-24-2022 at 15:34.
GasmoN is offline
StanGilbertlandria
BANNED
Join Date: Mar 2022
Old 05-25-2022 , 07:07   Re: Shield entitiy detection doesn't work while player is using it?
Reply With Quote #2

I'm trying to detect if a player is holding up a shield, either in the main hand or offhand, for a stamina system. When they drop the shield, the stamina should start regenerating. Any suggestions?

I've tried using armour stands and villagers, but neither really work. With armour stands, I can't use the offhand. With villagers, it won't detect when I've stopped holding it up (also it means I can't interact with other blocks while the shield is in the offhand
StanGilbertlandria is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode