Giter Club home page Giter Club logo

autotools's Introduction

Stats ๐Ÿ“ˆ

Hello there! ๐Ÿ‘‹

Thank's for passing by!

I'm Andrew, a Romanian Backend and Frontend dev. โšก

I break and build stuff.

autotools's People

Contributors

slashedcodes avatar

Watchers

 avatar

autotools's Issues

Switching over and over to the same tooltype.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.