Jump to content

Recommended Posts

Posted

Hello, i'm trying to make a mod that makes some things easier on a server i play with, so the mod has to be 100% client side.

 

My problem is i don't know which events are client side.

 

I see 2 events which might be useful EntityItemPickupEven and PlayerEvent.ItemPickupEvent

 

But i tried both and tried setting them to either event.setcanceled(true) or event.setresult(result.deny) and neither seem to stop my character from picking up items..

 

So, yeah i'd just like to know how to stop myself from picking up items client side and if possible to know how i know which event is client side. Thanks for any help!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.