Thor597 Posted November 3, 2012 Posted November 3, 2012 Im making a block where I want it to change texture if its powered by redstone I dont want to make a second block just for a different texture How would I do this? Quote http://i.imgur.com/Hppni.png[/img]
Thor597 Posted November 3, 2012 Author Posted November 3, 2012 so if its powered set metadata to 1 and if not powered set to 0? Quote http://i.imgur.com/Hppni.png[/img]
Thor597 Posted November 3, 2012 Author Posted November 3, 2012 It worked, however because im doing this for a rail block it changes direction and shit when powered when this is done can you make an example for a rail that changes texture when powered and stays in the same position? I tried copying rail code and crap but it didnt work, because BlockRail has a different kind of setup than mine since both rail and powered rail uses it Quote http://i.imgur.com/Hppni.png[/img]
LexManos Posted November 4, 2012 Posted November 4, 2012 You have to do it yourself, its part of programming, understanding and overcoming problems. You have metadata specific texture functions, you just need to figure out what to do with that meta to hold all the info you need. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
Recommended Posts
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.