Chance Cubes

Chance Cubes

46M Downloads

String Replaces Blocks

Dolinmyster opened this issue ยท 11 comments

commented

When a Chance Cube is used that spawns the string it will replace blocks completely deleting them.

commented

A lot of rewards do this? Is there something wrong with that?

commented

Well, it destroys the witherproof boxes people build around their chancecube openign altar?
It promotes griefing other peopel's bases?
It allows going through protected or warded blocks?

None of that is really good :V

commented

As much as I respect your work Turkey... Yes, there's a problem with it. Blu finished his response before I could finish mine though.

commented

I would not recommend the mod on servers because of that reason. There's nothing I can do about it because if I dis allow the blocks to be able to remove and replace blocks then half of the rewards are now pointless and would do nothing. The cubes should not replace any block that is unbreakable (like bedrock and such), but that's about all i can do.

commented

As far as protected/ warded blocks go. There's no singular system for checking this. I can add mod hooks, but that'l take time and there's no guarantee I will be able to keep them all up to date and 100% verified.

commented

Maby it's time for the modders to make a singular system for this? It's something that have been in need for a long time! :)

commented

This isn't the first time someone has asked for a way to incorporate a protection based system into the mod, but a strong solution was never found. I have been thinking and I may have a solution, but it will still require mod hooks and there still are some things that would need to be fleshed out. Suggestions are welcome though

commented

Maybe IMC messages would be a good start?
Keep an internal list of ItemStacks (blocks+metadata) that musn't be replaced, and allow other mods to send IMCs to you to add to that list.
It's the most basic form of compat and doesn't actually require other mods to implement any API of yours.

commented

I can look into that

commented

Would a No-Break array of block ids in the configs be feasible?

commented

IMC was added and I will add the info to the wiki. I am leaving to open as a reminder to added the ability to added blocks to the list via the config in the future.