Selecting any sword to prevent accidentally breaking any blocks in creative mode. #62
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
feature request
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-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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#62
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
Author: @WSDguy2014 Posted at: 20.02.2017 21:33
Author: @Wuzzy2 Posted at: 01.04.2017 16:31
I'm currently looking for ways to implement this:
https://forum.minetest.net/viewtopic.php?f=47&t=17125
@ryvnf
Is this possible with mcl_autogroups?
Not with the API currently.
I would implement this by setting
tool_capabilities
for swords to the following with creative is enabledand then not setting
_mcl_diggroups
(or setting it to{}
) when that is the case. This can be implemented in aregister_sword
function inmcl_tools
.This should make all nodes undiggable with sword. They will still show cracks but the nodes will be practically unbreakable. Setting it to empty groupcaps as mentioned in the forum post will not work because then it will be overwritten by the digging times for hand.
I do not think it is a good idea to extend the mcl_autogroup API to be able to do this. This is because I think the responsibility to implement the sword behaviour should be elsewhere like in
mcl_tools
.Yes, the question was more or less just whether the needs engine change label can be removed.
The label can be definitely removed. I tested making a tool with those
tool_capabilities
values in singleplayer and it worked.Feel free to remove your assignment if you want to!