Posted July 5, 201411 yr Hello MCF foums, I would like to know how i would make a block that cant be collided with like a normal block but still be able to transfer you to a dimension.
July 5, 201411 yr Why not look in BlockPortal.java? Alternatively/additionally, you can inherit from BlockPortal and just override the code you need to.
July 5, 201411 yr Author Ok i will try that i guess i was trying to avoid extending anything but block(dont ask why im just weird like that).
July 5, 201411 yr Author One last thing what is the method to change the texture of the block within the block class i havent been able to figure it out and make it work
July 5, 201411 yr Author I have tried that when i did the: public static Block CodePortal = new CodePortal(Material.rock).setBlockName("CodePortal").setBlockTextureName("BOW:codePortal"); in my @mod file but it just uses the nether portal texture instead
July 5, 201411 yr The error log should tell you what is wrong. I believe you can't have your texture namespace in anything but lowercase. Also, don't have your variable the same name and capitalisation as your class.
July 5, 201411 yr Author what do you mean by?: I believe you can't have your texture namespace in anything but lowercase.
July 5, 201411 yr Currently, your texture namespace is "BOW". If I recall correctly, that gets noisily changed to the lowercase "bow", and as such will look for textures in assets/bow/textures/blocks/codePortal.png. You might as well change your texture namespace to "bow", as this happens regardless. Do yourself a favour and use a lowercase ModID anyway.
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.