Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make painted blocks more 'real' #666

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

superzanti
Copy link

I added some stuff specifically in BlockCanvas.java that makes it so any painted block acts more like the block that they were originally instead of a canvas. For example, painted netherrack can still sustain fire, leaves will disappear if they are not attached to wood, painted wood can still sustain leaves.

I think the best addition however is that the mining speed is the same as the original block. This prevents cheating. I was using this mod on my server and people would paint obsidian and then mine the now canvas block. They would then get a piece of obsidian as a drop without nearly any mining time. Users would also do this for things that they couldn't mine such as iron and diamond.

Another neat thing is that the mod 'waila' now recognizes the painted block as the same block before they were painted. So if you are looking at say, a piece of dirt. Waila will tell you you are looking at a piece of dirt and it is best harvested by a shovel. Now, if you paint it, Waila will say the same thing. Users will never even know that the block was replaced by a whole new one! :D

This addition makes many more blocks paintable and adds some fairness to the mod. It's not perfect, but I think it's better.

Feel free not to accept the PaintUtils.java.superzanti file that I added, this is simply the file that I'm using to make many more blocks paintable without having to parse through all my mods.

@superzanti
Copy link
Author

Something that currently doesn't work is rotations. If you paint a Log, the rotation is reset and it can't be rotated even with a tool.

However, I do override some of the rotation functions necessary for this to work. It would be really cool if the canvas block had rotations implemented.

@superzanti
Copy link
Author

There is currently an error. Everything works fine in singleplayer, but when you go over to multiplayer I get an exception on line 649 of BLockCanvas.java if I try to paint a block that already has a colorMultiplier. I'm trying to figure out how to fix this.

Another thing I'm working on is how to get doors and plants placeable on the blocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant