Breaking Nodes with Tool's Last Use #3931
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#3931
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?
MineClone2 version:0.84.0
What happened?
When breaking nodes with a tool's last use, it is broken as if it is broken using bare hands.
Examples
What should happen:
Steps to reproduce
Breaking nodes when a tool only have 1 use left.
Which Minetest version did you use?
From what I have been told, this is an engine bug. On the last usage, when it breaks, it doesn't have a reference to the tool so doesn't know if it's the correct tool that was used.
The minetest version I am using is 5.7.0.
I read the engine source code and I can confirm that this is happening as the
minetest.on_dig
function wears the tools before calling theminetest.handle_node_drops
callback.However, I think there is a potential solution to this. We can try and replace the
minetest.get_node_drops
function to do the checks of using the right tools and plus silk touch. This will cascade thedrops
variable when calling theminetest.handle_node_drops
function.I am reopening this issue until the bug is fixed in the engine.
Issue at engine