Add ability for shovels to turn grass paths into dirt on shift+right click #3932
No reviewers
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-Minecraft feature
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#3932
Loading…
Reference in New Issue
No description provided.
Delete Branch "add-dirty-shovel-function"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is a quality of life enhancement that allows players to easily fix misplaced paths by shift+right_clicking with a shovel. Discussion for whether or not this non-vanilla enhancement should be put in happened in and closes #3928 and the consensus reached was that its a good fit.
PEBKAC
Hi, I tested this and it functions as described when single clicking.
If you right click and drag then a path is drawn. If you go over a node more than once it has no effect.
If you do the same using shift-right click when you go over a node you have removed a path from it will re-add the path.
I would prefer it if when using shift-click it only removed paths and didn't add them.
@ -171,2 +171,4 @@
end
-- Remove grass paths
if (minetest.get_item_group(node.name, "path_remove_possible") == 1) and placer:get_player_control().sneak == true then
Minor nitpick, but is there any particular reason you've used
and placer:get_player_control().sneak == true
instead of just
and placer:get_player_control().sneak
I currently do not possess the programming ability required to improve the code any further. It took everything I had just to get it working to this point.
I can see now that this PR is not of a high enough code quality to pass for merging into the main game code, and I don't have the skills to polish it to that acceptable point. It is not fair to expect any of the real devs here to fix up my sloppy work either. The mod is up on contentdb for those who would want it. I think its best to close this PR as I have no intentions of working on this farther any time soon.
Im sorry.
You did a bunch of work on it though. No need to be sorry. I'll see if I can fix this up later and merge it. Don't close it yet.
3be6bf404d
tofa1d8dfc47
Fixed it up.
Sweet. Good work, Smokey!
Thanks for final fixes, Herowl! :)
Thank you @the-real-herowl !
Good work, both of you!!! Thank you for this!