Jump to content

block that only works when there is a certain structure around


auriny

Recommended Posts

you could open the Gui via NetworkHooks#openGui when your Block is right clicked you can take a look st the AbstractFurnaceBlock as an example, before you open the Gui you need to check if the structure is near by gor this you can check out the LocateCommand 

Link to comment
Share on other sites

On 4/26/2022 at 4:32 PM, Luis_ST said:

you could open the Gui via NetworkHooks#openGui when your Block is right clicked you can take a look st the AbstractFurnaceBlock as an example, before you open the Gui you need to check if the structure is near by gor this you can check out the LocateCommand 

I had in mind a little different: I need the player to build the structure himself and the block checks if there are certain blocks around. but I already figured out how to implement it

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.

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.