Jump to content

[1.12.1] Get tile entity on server


Recommended Posts


I have created tile enitty with GUI and button. When player presses the button, message is sent to server informing it, that the tile entity should start crafting. However, how can the server know, which tile entity is the player interracting with? Is there any way to get this information? There isn't anythng like tile entity ID player could send to server to inform it. I can use coordinates to specify the tile, but it's not good idea. The number is too big and might reffer unloaded chunk. Another solution would be a raytrace result (player has to look at the tile entity to start the interraction), but that's not ideal solution either. Is there any better way?

Thanks for any help.

Link to comment
Share on other sites

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.

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.

  • Create New...

Important Information

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