tag:blogger.com,1999:blog-7152610993519162429.post8275779229127812737..comments2024-03-28T17:46:10.047+10:30Comments on Minecraft Modding: Blocks [1.8]The Grey Ghosthttp://www.blogger.com/profile/13883358338801683207noreply@blogger.comBlogger13125tag:blogger.com,1999:blog-7152610993519162429.post-79704567734740369632015-05-01T10:09:16.852+09:302015-05-01T10:09:16.852+09:30Perfect! Makes so much more sense now! Thanks alot...Perfect! Makes so much more sense now! Thanks alot TGG! :Ddev909https://www.blogger.com/profile/07427088903183947783noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-15535244335900686662015-05-01T09:25:15.862+09:302015-05-01T09:25:15.862+09:30Ah, ok. For each block, you can store a single nu...Ah, ok. For each block, you can store a single number from 0 to 15. But you have the choice of how many properties you cram into that.<br /><br />So for example, if you have a FACING (north, south, east, west), that is four values.<br />If you also have a property DAMAGE (0, 1, 2) you now have a total of twelve combinations;<br />i.e.<br />metadata facing damage<br />0 north, damage=0<br />1 north, damage=1<br />2 north, damage=2<br />3 south, damage=0<br />4 south, damage=1<br />5 south, damage=2<br />6 east, damage=0<br />7 east, damage=1<br />8 east, damage=2<br />9 west, damage=0<br />10 west, damage=1<br />11 west, damage=2<br /><br />Another example - <br />you could have four YES/NO properties, = 2 * 2 * 2 * 2 combinations = 16<br />or you could have one single blockproperty with 16 values all by itself.<br /> <br />-TGGThe Grey Ghosthttps://www.blogger.com/profile/13883358338801683207noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-58997872478388247722015-05-01T08:09:55.513+09:302015-05-01T08:09:55.513+09:30I think I may have worded my question badly (or I ...I think I may have worded my question badly (or I might have some terminology mixed up). I'm going to use the Anvil to try to help out. The Anvil has two properties (DAMAGE, and FACING) and those two properties have multiple values, such as DAMAGE either having a value of 0, 1, or 2. I want to know how many values the property can have (can DAMAGE hold values of 4, 5, 6, 7, etc) and how many properties a block can have (say the anvil had a POWERED property, with two values of either true or false)?<br /><br />I am confused if you meant that there can only be 0 - 15 values per property (DAMAGE can only have 0 - 15 number of values), or if you mean there can only be 0 - 15 properties per block (the block can only have 0 - 15 properties such as DAMAGE, FACING, POWERED, ROTATION, etc). Sorry for being tedious, but I hope that this post will help you to understand what I am asking, so that you can help me! :)dev909https://www.blogger.com/profile/07427088903183947783noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-91746548782013486482015-04-30T23:06:32.462+09:302015-04-30T23:06:32.462+09:30Hi
You can still only store 0 - 15 in metadata. Y...Hi<br />You can still only store 0 - 15 in metadata. You can do blockstates with more than that, if you are tricky. For example, the door does this, by storing some info in the bottom door block metadata, and some more in the upper door block metadata. You can also calculate some of the properties instead of storing them (getActualState()) - for example, BlockWall changes its blockstates by checking whether there are other walls to the north, south, east, west, and up - which is five properties instead of four, on top of the VARIANT property it stores in metadata)<br /><br />But in general - 0 - 15 only. If you need to store more than that, you need to use a TileEntity.<br /><br />-TGGThe Grey Ghosthttps://www.blogger.com/profile/13883358338801683207noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-59427937385716091102015-04-29T05:00:41.463+09:302015-04-29T05:00:41.463+09:30Hey TGG, I have a clarity question to ask. You sai...Hey TGG, I have a clarity question to ask. You said "As for versions 1.7 and earlier, minecraft only uses a total of 16 bits for IBlockState - 12 bits for a blockID plus 4 bits for the state information (previously called metadata))". Does this mean that in 1.8, you can use more than 4 bits of metadata on a block? Such as you can have more than 4 blockstate properties? I understand that before we only had 0-15 to do extra stuff (excluding using tile entities), but now we may have then that? What is the theoretical property limit we can use? dev909https://www.blogger.com/profile/07427088903183947783noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-69349051791293517122015-04-28T22:34:55.692+09:302015-04-28T22:34:55.692+09:30You're welcome :)You're welcome :)The Grey Ghosthttps://www.blogger.com/profile/13883358338801683207noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-36326562575348348462015-04-27T12:13:40.975+09:302015-04-27T12:13:40.975+09:30Thanks for the excellent, in-depth information.Thanks for the excellent, in-depth information.Anonymoushttps://www.blogger.com/profile/11616442950035583391noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-14108004384453765302015-02-12T09:17:10.732+10:302015-02-12T09:17:10.732+10:30Hi. I have plans for a redstone tutorial once I h...Hi. I have plans for a redstone tutorial once I have finished updating a mod from 1.7 to 1.8. I think that will take around a month at the rate I'm going :(.... -TGGThe Grey Ghosthttps://www.blogger.com/profile/13883358338801683207noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-79877633179553910092015-02-12T02:24:01.490+10:302015-02-12T02:24:01.490+10:30Please explain the redstone for FML 1.8Please explain the redstone for FML 1.8Anonymoushttps://www.blogger.com/profile/15171768372127568420noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-63707467011884220622015-01-11T05:38:31.374+10:302015-01-11T05:38:31.374+10:30getActualState() - exactly what I am looking for. ...getActualState() - exactly what I am looking for. Great post, thank you!Anonymoushttps://www.blogger.com/profile/01822392898964944222noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-74913629444821205882014-12-24T12:46:58.594+10:302014-12-24T12:46:58.594+10:30I'm learning the core code myself too, with th...I'm learning the core code myself too, with the aim to contribute to M3L (Magic Mojo Mod Loader) - maybe you can check it out sometime, it might interest you ;) I'm only new to Minecraft but I'm no stranger to Java heh.<br /><br />Merry xmas and all the best to you this season, lets hope it's a cool one this year (I'm also Aussie). Looking forward to your future posts!CosmicDanhttps://www.blogger.com/profile/13479274003101945177noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-55011672547591743052014-12-24T05:49:29.775+10:302014-12-24T05:49:29.775+10:30Keen thanks :)
There's a lot to learn in 1.8, ...Keen thanks :)<br />There's a lot to learn in 1.8, it's pretty interesting. I'm working on block rendering at the moment, more in a few days....The Grey Ghosthttps://www.blogger.com/profile/13883358338801683207noreply@blogger.comtag:blogger.com,1999:blog-7152610993519162429.post-75229231689030693232014-12-22T06:34:18.620+10:302014-12-22T06:34:18.620+10:30Hi Grey Ghost,
It's great to see you back and...Hi Grey Ghost,<br /><br />It's great to see you back and posting again! It's fantastic that you are bringing us your great information on 1.8.<br /><br />Thank you for all your previous posts. Of any person out there, you have been the most helpful in Minecraft modding for me.<br /><br />Cheers!CosmicDanhttps://www.blogger.com/profile/13479274003101945177noreply@blogger.com