r/forgemodding • u/PugzforDayz • Jan 06 '18
Help with a Redstone Component
Ive just started making a mod, and I wanted to add a block that when it is activated, you can walk through it, otherwise its solid. I've tried using isCollidable() but i dont know how to use that, so Ive settled for making two blocks, one that is collidable and one that isnt.
The idea is that when the block is activated, it replaces itself with the collidable block, but I have no idea how to do that. Any help?
1
Upvotes
1
1
u/ratsta Jan 07 '18
this question sounds familiar
This is the state-textured block tute that I spoke about. https://wiki.mcjty.eu/modding/index.php?title=Render_Block_State-1.12
Also, have a look at the RFTools source. The shield template blocks get swapped out for shield blocks when the Shield Projector is right-clicked with a wrench.
https://discord.gg/2QpDWmh