Thank's for passing by!
I'm Andrew, a Romanian Backend and Frontend dev. โก
I break and build stuff.
This mod adds an item which automatically switches to the correct tool when mining a block.
License: GNU General Public License v3.0
This is more of a technical issue. The system the mod uses to find out which tool to use (itemstack.isToolEffective
iirc) only returns a boolean (true or false).
For Example: If I want to mine a dirt block, if I have two shovels in my hotbar, the mod uses the isToolEffective
function to determine what tools to use. In this case, both of my shovels return true. To my knowledge, since we modified the system we took the code from, there isn't really a way to fix this. The original code used getDestroySpeed(itemStack, blockState)
which (i think) is a legacy function only left in the source code (of Minecraft) for mod support.
The problem is, that this function, always returns 1.0F. This is problematic, since the mod will never find the correct slot to switch to if everything is effective (aka it will think that the current hotbar slot selected is the tool that should be used to mine the block).
TL;DR: We stole used some source code from somewhere and it used a legacy function which is broken. We switched it so that it works now but it has a technical limitation which causes this issue.
I will look further into this issue and potential solutions when I can.
For now, you can leave solutions/suggestions you would think work in the comment section of this issue. Thank you for your time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.