Jump to content

Recommended Posts

Posted

Hello,

I am currently working on my first container and I was wondering how I can set the Output slot unaccessible for the player to put Items in. I already managed to block the shift clicking ability for this slot but I am still able to drag the Item in there.

I tried to look at the Furnaces tileentity but it is to complicated to find what I need.

 

Please Help

 

Busti

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Posted
to complicated

...

 

 

 

you need to make a class extending Slot, from there you can prevent item to be placed in the slot (you can also filter to accept only certain item)

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

i dont recall the exact name, but just override the method names "isItemValidForSlot" or something similar

 

you can jsut return false and nothing will be placable there

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

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.