Today I haven't done a lot of programming to be honest, but when I had I tried super hard to uncurse the fox model from Minecraft to allow tail wagging, now I have to tie that to when the player pet a fox.
I'm gonna try to get @scrappy to react with as many emojis as possible, for no particular reason.
I don't have anything to show today about the nixie clock, so I'm showing you something I recently added to my minecraft mod LambdaBetterGrass the better snow feature from OptiFine, but made it better again as now you can specify if it needs the snow layer and a custom block state json! So you can entirely replace the models, and the textures! and here's the result with a test resource pack, snowy fences! I'll embed the resource pack as optional in the mod as it uses custom textures which will not adapt with resource packs, but it really looks cool :)
Not happens a lot, but today I have nothing interesting to share, apart that I uncursed some Minecraft code and make my foxes spawn or that PCB designing is a bit hard when you can't find the symbol for an IC.
Instead, please accept those little pictures of the nixies lighten up in the dark, the result is not as good in pictures as it is in real life tho, but we can slightly see something really interesting about those nixies I couldn't show with the light on: a slight blue glow, in real life there's a blue glow around the orange glow, but why?
After some research it's perfectly normal as it's not blue dots (which are because there's too much current flowing in the nixie tube) but it's because of mercury present in the mix of gazes!
Mercury was not always present in nixie tubes, it was added in the latter versions to extend their lifespan and prevent, to an extent, cathode poisoning! That's also why some nixie clocks have blue LEDs below to hide that blue glow (but I personally dislike those LEDs) or that's also why some nixie tubes have a red-tinted glass instead of fully clear glass to hide the blue glow!
Nixie tubes are so special, I hope one day I'll fully remember all the physics behind nixie tubes so I can casually explain it xD
Working on fox/player interaction, bit hard. The idea is the fox likes you more the more you can interact with! (Like giving them an armor, etc.)
And when breeding, if they like you enough the baby will trust you more.
Today it was Minecraft modding again because why not, I wanted a multi line text box, and it has gone very wrong, it's not finished, it's very borked, and I spent too much time on it (big oof)
So here's a screenshot and a video of what it looks like when used: streamable.com/cw0qaz
Hopefully to finish it I won't spend another day xd
Was a very long time since last post, my scrapbook posts should resume starting now!
Got a bit burned out of programming and hardware for some time and I got caught up by Fallout 4 😔
Today still nothing about nixie clock but I learned that the PSU I have soldered works miraculously as the ground pad for the controller is under the SMD component and it makes contact because I accidentally applied solder on that pad xD
Instead I'll present you my most recent work which involves again Minecraft modding and this time it involves a whole lot more rendering!
For those who plays with OptiFine you might know the "Better Grass/Snow" feature. I personally dislike it a lot and the first image might tell you why: it's too unnatural.
So I wanted to make a mod to solve this and do it kind of better than OptiFine! But how? Introducing blending on those blocks!
When loading the models I look into the resource packs and search for bettergrass states file, if it exists then it tells which variants of this block is actually affected and their bettergrass metadata file! The metadata JSON file is composed of layers with top/side textures definition and overrides textures definition for the blending, masks textures to automatically generate the blending texture with top and side textures, and which color index is affected.
Then I replace the vanilla baked model and introduce logic to choose the correct texture and at resource pack time I add a virtual resource pack which holds the generated textures, the texture generator is highly cursed.
And here's the result on grass/snowy grass, mycelium, warped nylium and podzol! You can change a lot through resource packs which is useful for mod authors and resource pack authors!
Some of the textures are not definitive but it's already better than OF's bettergrass I believe ;)
If anyone is interested in the source code and documentation: github.com/LambdAurora/LambdaBetterGrass
Had a productive day today, adding reactions to the Scrapbook homepage & adding mention pages for users, thinking about explorability/browsability, being able to get lost in the site in a way that feels natural. Also made a site for Hack Club’s Minecraft server & got started on another site.
I started working on the PCB of my nixie clock but still don't have anything to show related to this ><
so please accept this instead: fennec foxes in Minecraft! Adding the big ears was a bit difficult ahah.
Random Minecraft mod coding is back!
Today I really wanted to add custom fox types in Minecraft, I had to make a little API as the original code uses an enum :c
And the worst is it uses numeric ids too! Which is horrible for modding.
So what did I do? I replaced the enum by a new class with the original values, when you want to add a new fox type you'll have to use a method which requires an identifier in the format namespace:name which is great for modding, to break the less things possible I made that it still associates a numerical id. But how does it work? The goal was to use a ℕ^n -. But how with strings? I simply for-loop the string characters and use their ASCII/UTF-8 values to compute the numerical id!
Honestly I wasn't thinking that when modding I would involve Maths ahah. But it's good I think and it works :)
And I'm happy with the texture I made for the silver fox!
The other cool detail is it can technically work with Vanilla clients, they will not crash if they join a server with the mod, they will just see red foxes.