Posted September 15, 201312 yr Hello! I am having trouble with a portal to my custom dimension. I have created a dimension and the portal block functions as expected and is only available via the /give command, but I don't know how to make the portal blocks spawn within a portal shape (in diamond blocks) by right clicking with flint and steel (I could create my own tool if that is not possible without editing the base classes). Could anyone help me?. Thanks! / SirTheori P. S. I'm new to Forge modding.
September 15, 201312 yr Within onBlockActivated method, you want to perform checks for the item in player hand, and whether the blocks are in the correct shape. Then use world.setBlock(x,y,z, blockportalid) for all good coordinates.
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.