Jump to content




Making blocks shaped like the modem.


  • You cannot reply to this topic
2 replies to this topic

#1 gamax92

  • Members
  • 157 posts

Posted 23 October 2012 - 02:11 AM

Is there any guide or framework for getting your peripheral to be the size of a modem and act like the modem in the way of attaching to blocks?

#2 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 23 October 2012 - 04:05 PM

well, first you should understand how half or smaller blocks work in general. look at the code for BlockHalfSlab, for example. Then, you should store the side the block is attached to somewhere (metadata or tile entity field). The IPeripheral interface defines a method canAttachToSide(int side). you return true only if the given side value is equal to your stored attachment side value.

#3 gamax92

  • Members
  • 157 posts

Posted 23 October 2012 - 07:50 PM

Thank you, I will go study that block.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users