EnderiumSmith / CharcoalPit

Minecraft mod for better charcoal and coke production
GNU General Public License v3.0
5 stars 5 forks source link

[request] Make the check for solid sides into a check for solid blockfaceshape instead #42

Closed DaedalusGame closed 6 years ago

DaedalusGame commented 6 years ago

Right now, the check for your charcoal/coke pile blocks checks for solid sides and non-flammable blocks, could this check be modified to check for getBlockFaceShape == BlockFaceShape.SOLID? This would enable use of blocks like glass as walls for coke ovens and charcoal pits (I'd like it for coke ovens atleast, charcoal pits i don't care as much about, it might look a bit weird too)

(in my case it's some kind of insulated glass or iron grate block, i'm replacing the IE Coke Oven with the one from this mod, and i'd like to keep the ability to see a glowing hole to gauge whether it's active)

Thanks in advance.

EnderiumSmith commented 6 years ago

i didnt know that was a thing. that will make adding iron doors as valid much easier. Also do you think the texture for the burning piles look good?

DaedalusGame commented 6 years ago

I think it looks good enough to showcase it to the world outside the coke oven :p also looking at the vanilla doors, they appear to be BlockFaceShape.Undefined on all sides unfortunately. Trapdoors are Solid on the top/bottom if they are closed, so that would work for atleast one orientation

EnderiumSmith commented 6 years ago

@DaedalusGame found a problem. the shape defaults to solid. for example my ceramic vessel counts as a valid cover. I can fix my blocks but my guess is that most mods wont know about it.

DaedalusGame commented 6 years ago

yeah this is a problem for many many mods, I've personally fixed this for BWM, but the best way to exorcise this problem is to just open issues whenever you see this issue in the wild. You'll know when you can place torches on odd sides of the block :)

EnderiumSmith commented 6 years ago

ill just revert back to isSideSolid(). you can use iron doors to see inside. and maybe ill add a list config of glass blocks.