gotyaoi Posted June 7, 2012 Author Posted June 7, 2012 Yes, you could do this. Because of the way rendering see-through things works in minecraft (whatever color is in front overrides all see through colors behind it) such a pane would tint things black when looked through from one direction and red when looked through from the other. Unfortunately, the colors would always be on the same side relative to north, unless you did some tricky things with the rendering. For my panes, I was able to discard one of the squares because unlike normal rendering, which is only visible from one side, alpha (see-through) rendering is visible from both. This could be a problem with the two color glass, as if the two planes that make up the textures occupy the same space, you get z-fighting and it looks bad. Thus, you would need to separate the two planes slightly. Quote
ErusPrime Posted June 7, 2012 Posted June 7, 2012 yanno, if you can get those to work with shaders to actually filter the light, that would be awesome. Quote
saintnicster Posted June 7, 2012 Posted June 7, 2012 Yes, you could do this. Because of the way rendering see-through things works in minecraft (whatever color is in front overrides all see through colors behind it) such a pane would tint things black when looked through from one direction and red when looked through from the other. Unfortunately, the colors would always be on the same side relative to north, unless you did some tricky things with the rendering. For my panes, I was able to discard one of the squares because unlike normal rendering, which is only visible from one side, alpha (see-through) rendering is visible from both. This could be a problem with the two color glass, as if the two planes that make up the textures occupy the same space, you get z-fighting and it looks bad. Thus, you would need to separate the two planes slightly. Sounds like a pain... Quote
gotyaoi Posted June 7, 2012 Author Posted June 7, 2012 Wow. Ok, silly forums. Apparently you can't change a link location just by changing the text. Silly me. The links should be working now. Quote
gotyaoi Posted June 9, 2012 Author Posted June 9, 2012 I'm an idiot and forgot to include the texture file in the download. Sorry to anyone who downloaded in the last two days. Quote
Zebrin Posted June 11, 2012 Posted June 11, 2012 Sweet, finally my dream of having a hot pink ceiling letting in the light for my farm will be a reality! Kidding aside this is great. I like being able to make more artsy stuff in my worlds. Thanks for the work in making this mod. Quote
jakj Posted June 11, 2012 Posted June 11, 2012 Considering his new avatar, I'm almost scared to find out what this machine will be that he's cooking up; It's possible it will be fueled by ground-up baby animals and the tears of people who don't backup their worlds. Quote
gotyaoi Posted June 11, 2012 Author Posted June 11, 2012 Zebrin, glad you like it. Post some pictures if you make anything awesome. jakj, while I didn't have that idea before... huehuehuehue. Anyway, work is proceding on learning about container blocks and suchlike. Fun fact: in order to make a block with an inventory, you need a block class, a container class, a gui class and a tile entity class. And they're all sort of tangled up at various points. I've got the source to atomicstryker's advanced machines open in one tab and my project in another, which is helping a bunch. Quote
jakj Posted June 11, 2012 Posted June 11, 2012 You should look at the source to my Fair Trade thing, too. I had created a new set of classes that abstracted away a lot of the hoops Minecraft itself jumps through, and I even had started work on an easy way to do animation or state-sensitivity in GUIs. Maybe when 1.3 comes out, I'll go back to it...hmm. Depends on if the community outside of Technic has had its balls drop by then or not. Quote
Zebrin Posted June 16, 2012 Posted June 16, 2012 Considering his new avatar, I'm almost scared to find out what this machine will be that he's cooking up; It's possible it will be fueled by ground-up baby animals and the tears of people who don't backup their worlds. This is a Pink Glass Ceiling. All craftdwarfship is of the highest quality. It menaces with spikes of Pink Glass, it is Banded with diamond blocks. On the Pink Glass Ceiling is a figure of Steve and Testificates. The Testificates are burning, The Steve is Laughing. This Pink glass ceiling depicts the Pillaging and burning of the Testificate village on day 3. Quote
gotyaoi Posted June 16, 2012 Author Posted June 16, 2012 I would not want to see the type of mood that would cause a dwarf to make something like that. Quote
jkkid101 Posted June 22, 2012 Posted June 22, 2012 i have another problem i think i put it in right but when i go to craft it i put in the glass and a dye and then for a split second i see the coloured glass in the craftable box in the workbench and then it is gone and also when i try to spawn any it it logs me out and says internal server erorr Quote
jkkid101 Posted June 22, 2012 Posted June 22, 2012 haha ohh sorry i had no idea sorry for all this Quote
gotyaoi Posted June 24, 2012 Author Posted June 24, 2012 I am back! from a week in the mountains! It was quite refreshing. Anyway, the next release will at least support vanilla server. I've no idea at the moment how to make it a bukkit mod, but the thought is in my head. Quote
Zebrin Posted June 24, 2012 Posted June 24, 2012 Good luck, It would be nice to see SMP support. Quote
gotyaoi Posted July 2, 2012 Author Posted July 2, 2012 Ok, so I've got my glass furnace pretty much working, which means a release is probably soon. I'm just having trouble finding if there's a way to have my block conditionally emit light without using 2 block ids. All the notch blocks that do this use two (furnace, redstone lamp/repeater/torch) except, apparently, redstone wire. Odd... Quote
jakj Posted July 2, 2012 Posted July 2, 2012 Couldn't you just call "setLightValue" on state change, and once per world load? (I have not looked into the code to see if this would work or not.) Quote
gotyaoi Posted July 2, 2012 Author Posted July 2, 2012 As near as I can tell, all blocks in the world are sort of a reference to the one declared in Block.java, with things like metadata and such being stored separately, so changing the light level for one block sort of does it to all of them. Quote
jakj Posted July 2, 2012 Posted July 2, 2012 And that is why I shouldn't make coding comments when I'm short on sleep: I look like a total dumbass. >_< Yeah, of course it would change it for every block. Fuck me. Quote
gotyaoi Posted July 2, 2012 Author Posted July 2, 2012 No worries. I'm going to either try and puzzle out how the redstone dust works, or I might take a look at the latest forestry, to see if he found a way to do this with his new candle block. Quote
Xylord Posted July 2, 2012 Posted July 2, 2012 Okay, I guess I have no other choice than doing a church stained glass then I'm trying it live. Quote
jakj Posted July 2, 2012 Posted July 2, 2012 Maybe try looking at the Redstone Lamp's code, too. Quote
gotyaoi Posted July 4, 2012 Author Posted July 4, 2012 I got it. It's slightly stupid and hackish, but it works and it only uses the one block id. I had to override Block.getLightValue() for my block (made it conditional rather than array lookup) and then manually call worldObj.updateAllLightTypes(x,y,z) from my tileEntity when I needed it (since updating metadata doesn't normally call that while updating the block does) and it worked. I'm going to test a bit more, but I'll probably post something soon. Quote
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.