Jump to content

Recommended Posts

Posted (edited)

When i said that you can do it the same way you did for the crafting table on stick, i meant, the exact same way. You see that for the crafting table you created a container class which extends WorkbenchContainer and overrides canInteractWith by making it always return true. To explain what this override actually does, you need to consider that vanilla containers, inside the canInteractWith method do a check to see if the player is near enough the block to open its container (chests, crafting table etc..)...so if that method always return true that means you are basically bypassing the proximity checks...and that what lets you open those container when you click with your item. So you need to do the same for your EnchantmenttableOnAStickItem

Edited by Beethoven92

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

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.