Started by
PythonIsCool
on
Topic category: Advanced modding
Ok so in my mod theres a stand called Crazy Diamond which can fix what has broken. I want to put that ability in there, but I have no idea if its even possible for it to fix something.
If you dont understand (im not a good explainer) its like this
you break a wall crazy diamond touches it and it fixes it back to the way it was
is this even theoretically possible, or can it just not be done?
I'm not even sure if that's possible with coding.
It is likely impossible to fix structures (like walls, houses, etc.) that have been broken without having significantly large amounts of rollback power (like in server plugins).
You might be able to fix tools that have broken instead. Maybe make the stand a totem-like effect that activates when the tool in your main hand breaks (or possibly your armor if you want to give it that power), which cancels the breaking of the item and instead restores the durability of it to full, which would count as "fixing" what broke.
yeah thats what i ended up doing, it sucks because it wouldve been so cool to break something, then fix it. Ah well, minecraft has its limitations.