-
Notifications
You must be signed in to change notification settings - Fork 10
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
support relative coordinates #100
Comments
If that's the case it would be pretty easy to implement |
backward compat would make this a little more complicated unless jd's min MT version is bumped up. |
Just change input keys rel_x, rel_y, rel_z to easily keep everything compatible. |
I was thinking of not adding more fields to formspec, allowing user to prepend a number with '~' to indicate that it is a relative coordinate. |
Thinking about this a bit I believe this is one of those "convenience" things you probably should avoid and just implement very basic math yourself. |
The core developers are adding relative coordinate support to commands:
~x ~-y z ==> x and y coordinates are relative to current and z coordinate is absolute.
I think they also added a convenience function which could be used to support
this entry type in the JD formspec.
The text was updated successfully, but these errors were encountered: