-
Notifications
You must be signed in to change notification settings - Fork 121
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
New sticky and slippy blocks #489
base: master
Are you sure you want to change the base?
Conversation
Rotation should probably better be done with a screwdriver. In some places the indentation is a bit wrong. Could you explain how the slippy block works? I guess it uses |
{x = 0, y = -1, z = 0}, | ||
{x = 0, y = 0, z = 1}, | ||
{x = 0, y = 0, z = -1}, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make those tables in this file: https://github.com/minetest-mods/mesecons/blob/master/mesecons/presets.lua
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they want to merge the change it's indeed a good idea to move them back in preset. I placed them there originally. But I moved them so that it can work as stand alone with older/unmodified version of mesecon.
mesecons_slippyblocks/init.lua
Outdated
pointable = true, | ||
diggable = true, | ||
buildable_to = true, | ||
groups = {cracky=3,oddly_breakable_by_hand=3}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would look nicer:
groups = {cracky=3,oddly_breakable_by_hand=3}, | |
groups = {cracky = 3, oddly_breakable_by_hand = 3}, |
(Not only here.)
mesecons_slippyblocks/init.lua
Outdated
tiles = {"mesecons_slippyblocks.png"}, | ||
walkable = true, | ||
pointable = true, | ||
diggable = true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest not to explicitly set all these properties to their default values.
{x = 0, y = 1, z = 0}, | ||
{x = 0, y = -1, z = 0}, | ||
{x = 0, y = 0, z = 0}, | ||
{x = 0, y = 0, z = 0}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the (0,0,0)? Should it connect to itself?
I noticed that the sticky system already ignore air and water or any build_to block. So I made a built_to block that swap place with a common block when we try interact with it. I am sure there is a better way to do this. But it will require change to be done to other mesecon files. If these block are approved as a concept and included to mesecon it will be a good idea to look into these improvement. |
It's possible to change axis with the screw driver. Note that It does not really use facedir but still use 3 pre-made orientations. Paramtype2 facedir is required for some screw driver to trigger on_rotate but it's not really used for the rotation.
It's possible to change axis with the screw driver. Note that It does not really use facedir but still use 3 pre-made orientations. Paramtype2 facedir is required for some screw driver to trigger on_rotate but it's not really used for the rotation.
c3451eb
to
e5399a3
Compare
Linear sticky block, sticky on opposite side of one axis.
Flat sticky block, sticky on opposite side of two axis.
These block can switch to any x,y,z orientation we can chose the next axis by punching it with anything sticky.
The slippy block do not stick to stickypiston stickyblock and movestone.
A little demo video, https://www.youtube.com/watch?v=DumoGyWlGJg&feature=youtu.be