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?
Making blocks shaped like the modem.
Started by gamax92, Oct 23 2012 02:11 AM
2 replies to this topic
#1
Posted 23 October 2012 - 02:11 AM
#2
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
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











