The Meaning of Life, the Universe, and Everything.
Join Date:
10/26/2014
Posts:
205
Minecraft:
TheBoeing767fan
Member Details
Greetings Fellow Modders,
I am having difficulty regarding the rotation of the top texture on a block. I was just wondering if somebody could take a quick peak at my code and check if they can find anything wrong.
Are you sure the metadata values are what you think they should be? What I mean by that is are you sure 0 and 1 are the same axis, rather than 0 and 2?
You still haven't really explained what, exactly, isn't working. Which texture are you getting? Did you try changing you getIcon method to use 0 and 2 for the first texture and 1 and 3 for the second, like I suggested? If that's backwards, swap them.
The Meaning of Life, the Universe, and Everything.
Join Date:
10/26/2014
Posts:
205
Minecraft:
TheBoeing767fan
Member Details
Hello,
Sorry for not being clear previously. I tried what you told me.
However, the texture fails to rotate at all regardless of the direction I place it. If it worked for one of the directions, then the texture should be in a different orientation. I am not interested at making it line up correctly with the player at this point. I just want the damn block to rotate!
Anyhow, I hope you or somebody else can solve this problem
Block rotation doesn't actually cause the texture to rotate - you have to make one texture horizontal and one vertical to get the effect you're going for.
This is exactly the reason you should always use the @Override annotation on inherited methods - your IDE will tell you right away if the method name or arguments are incorrect.
Greetings Fellow Modders,
I am having difficulty regarding the rotation of the top texture on a block. I was just wondering if somebody could take a quick peak at my code and check if they can find anything wrong.
Here is the block class... http://pastebin.com/Y3LM58jt
Thanks,
TheBoeing767fan
CPU Cooler: Corsair H100i 77.0 CFM Liquid CPU Cooler
Motherboard: Asus Maximus V Extreme
Memory: G.Skill Ripjaws Z Series 32GB @1866 MHz
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 500GB
Video Card: Asus GeForce GTX 780 3GB
Case: Corsair Obsidian Series 800D ATX Full Tower Case
Power Supply: Corsair AX1200i
Sound Card: Creative Labs Sound Blaster Zx 24-bit 192 KHz Sound Card
Wireless Network Adapter: Netgear WNDA4100-100NAS 802.11a/b/g/n USB 2.0 Wi-Fi Adapter
Mouse: Corsair Vengeance M95 Wired Laser Mouse
Keyboard: Corsair Gaming K95 RGB Cherry MX Brown Fully Mechanical Gaming Keyboard
Help Please
CPU Cooler: Corsair H100i 77.0 CFM Liquid CPU Cooler
Motherboard: Asus Maximus V Extreme
Memory: G.Skill Ripjaws Z Series 32GB @1866 MHz
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 500GB
Video Card: Asus GeForce GTX 780 3GB
Case: Corsair Obsidian Series 800D ATX Full Tower Case
Power Supply: Corsair AX1200i
Sound Card: Creative Labs Sound Blaster Zx 24-bit 192 KHz Sound Card
Wireless Network Adapter: Netgear WNDA4100-100NAS 802.11a/b/g/n USB 2.0 Wi-Fi Adapter
Mouse: Corsair Vengeance M95 Wired Laser Mouse
Keyboard: Corsair Gaming K95 RGB Cherry MX Brown Fully Mechanical Gaming Keyboard
What's wrong with the rotation?
Are you sure the metadata values are what you think they should be? What I mean by that is are you sure 0 and 1 are the same axis, rather than 0 and 2?
Hello,
I quadruple checked the meta values and the textures and they do seem to be the correct ones.
I still am stumped at why this will not work...
CPU Cooler: Corsair H100i 77.0 CFM Liquid CPU Cooler
Motherboard: Asus Maximus V Extreme
Memory: G.Skill Ripjaws Z Series 32GB @1866 MHz
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 500GB
Video Card: Asus GeForce GTX 780 3GB
Case: Corsair Obsidian Series 800D ATX Full Tower Case
Power Supply: Corsair AX1200i
Sound Card: Creative Labs Sound Blaster Zx 24-bit 192 KHz Sound Card
Wireless Network Adapter: Netgear WNDA4100-100NAS 802.11a/b/g/n USB 2.0 Wi-Fi Adapter
Mouse: Corsair Vengeance M95 Wired Laser Mouse
Keyboard: Corsair Gaming K95 RGB Cherry MX Brown Fully Mechanical Gaming Keyboard
You still haven't really explained what, exactly, isn't working. Which texture are you getting? Did you try changing you getIcon method to use 0 and 2 for the first texture and 1 and 3 for the second, like I suggested? If that's backwards, swap them.
Hello,
Sorry for not being clear previously. I tried what you told me.
However, the texture fails to rotate at all regardless of the direction I place it. If it worked for one of the directions, then the texture should be in a different orientation. I am not interested at making it line up correctly with the player at this point. I just want the damn block to rotate!
Anyhow, I hope you or somebody else can solve this problem
Thanks,
TheBoeing767fan
CPU Cooler: Corsair H100i 77.0 CFM Liquid CPU Cooler
Motherboard: Asus Maximus V Extreme
Memory: G.Skill Ripjaws Z Series 32GB @1866 MHz
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 500GB
Video Card: Asus GeForce GTX 780 3GB
Case: Corsair Obsidian Series 800D ATX Full Tower Case
Power Supply: Corsair AX1200i
Sound Card: Creative Labs Sound Blaster Zx 24-bit 192 KHz Sound Card
Wireless Network Adapter: Netgear WNDA4100-100NAS 802.11a/b/g/n USB 2.0 Wi-Fi Adapter
Mouse: Corsair Vengeance M95 Wired Laser Mouse
Keyboard: Corsair Gaming K95 RGB Cherry MX Brown Fully Mechanical Gaming Keyboard
Block rotation doesn't actually cause the texture to rotate - you have to make one texture horizontal and one vertical to get the effect you're going for.
Hello,
i did rotate the two textures. For testing purposes I created an arrow as the top texture. One is pointing north, and the other one is pointing east.
CPU Cooler: Corsair H100i 77.0 CFM Liquid CPU Cooler
Motherboard: Asus Maximus V Extreme
Memory: G.Skill Ripjaws Z Series 32GB @1866 MHz
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 500GB
Video Card: Asus GeForce GTX 780 3GB
Case: Corsair Obsidian Series 800D ATX Full Tower Case
Power Supply: Corsair AX1200i
Sound Card: Creative Labs Sound Blaster Zx 24-bit 192 KHz Sound Card
Wireless Network Adapter: Netgear WNDA4100-100NAS 802.11a/b/g/n USB 2.0 Wi-Fi Adapter
Mouse: Corsair Vengeance M95 Wired Laser Mouse
Keyboard: Corsair Gaming K95 RGB Cherry MX Brown Fully Mechanical Gaming Keyboard
I fixed it, I typed the method incorrectly...
Here is the block class in case anyone is interested... http://pastebin.com/datBacyR
Cheers!
CPU Cooler: Corsair H100i 77.0 CFM Liquid CPU Cooler
Motherboard: Asus Maximus V Extreme
Memory: G.Skill Ripjaws Z Series 32GB @1866 MHz
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 500GB
Video Card: Asus GeForce GTX 780 3GB
Case: Corsair Obsidian Series 800D ATX Full Tower Case
Power Supply: Corsair AX1200i
Sound Card: Creative Labs Sound Blaster Zx 24-bit 192 KHz Sound Card
Wireless Network Adapter: Netgear WNDA4100-100NAS 802.11a/b/g/n USB 2.0 Wi-Fi Adapter
Mouse: Corsair Vengeance M95 Wired Laser Mouse
Keyboard: Corsair Gaming K95 RGB Cherry MX Brown Fully Mechanical Gaming Keyboard
This is exactly the reason you should always use the @Override annotation on inherited methods - your IDE will tell you right away if the method name or arguments are incorrect.
Hello,
Thank you for the tip, I never knew it would do that for me.
Cheers!!
CPU Cooler: Corsair H100i 77.0 CFM Liquid CPU Cooler
Motherboard: Asus Maximus V Extreme
Memory: G.Skill Ripjaws Z Series 32GB @1866 MHz
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 250GB
Storage: Samsung 840 EVO 500GB
Video Card: Asus GeForce GTX 780 3GB
Case: Corsair Obsidian Series 800D ATX Full Tower Case
Power Supply: Corsair AX1200i
Sound Card: Creative Labs Sound Blaster Zx 24-bit 192 KHz Sound Card
Wireless Network Adapter: Netgear WNDA4100-100NAS 802.11a/b/g/n USB 2.0 Wi-Fi Adapter
Mouse: Corsair Vengeance M95 Wired Laser Mouse
Keyboard: Corsair Gaming K95 RGB Cherry MX Brown Fully Mechanical Gaming Keyboard