Giter Club home page Giter Club logo

explorertoolsall's Introduction

Adds the ability for every pick, axe, and shovel in the game to not only dig on a left click, but place whatever item is in the inventory slot immediately to its right on a right click.

Explorer Tools All Version 1.0

Have you ever been frustrated when digging a mine or exploring a cavern because you have to dig, dig, dig, then swap the active inventory item to a torch, place a torch, swap the active inventory item back to your pick, and repeat? Did you ever wish that you could just place a torch (or a block of stone or glass) with a right click while still wielding your pick, axe, or shovel? If so, then this mod is for you!

With this mod, when wielding any pick, axe or shovel, if you right click, it does a "place" using the item directly to the right in the players inventory. So, for example, if your inventory slots looked like this:

alt text

Then a left click with the pick would dig, but point the pick at the wall and right click, and it will place a torch from your second inventory slot on the wall. No need to switch active inventory items at all. Left click to dig with the pick, right click to place a torch.

And it doesn't have to be a torch. Perhaps you are building a project that requires digging out stone and replacing it with glass. Just put your stack of glass in the inventory slot next to the pick, dig the stone out with a left click, place the glass with a right click. The axe and the shovel work the same way.

Credits:

My son helped me with the idea, the programming, and the textures. Thanks to kaeza for sample code of how to get the inventory item to the right of the tool, and to PilzAdam and Stu for answering my questions about how the uses field works. The original version only gave the right click onplace ability to 3 specially crafted tools. 4aiman came up with the way to apply this on_place function to every pick, axe, and shovel in the game. Explorer Tools All is just a slightly modified version of his code.

Dependencies:

Soft depends on default. If you have any tool mods that you want to have this ability, they should be added as soft dependencies to this mod so that they will be loaded before this mod. Let me know about any mods you'd like added as soft dependencies to the basic mod and I'll put them in there. (Or just do a pull request in github)

Incompatibilities:

Do not use with Inventory Tweak mod, on right click your tool will disappear!

License: gplv3

To browse source:

https://github.com/Kilarin/explorertoolsall

Download:

https://github.com/Kilarin/explorertoolsall/archive/master.zip

To install:

Simply unzip the file into your mods folder, and rename the folder to explorertoolsall

OR, simply install it directly from minetest using the online mod repository.

Mod Database:

If you use this mod, please consider reviewing it on the MineTest Mod Database.

https://forum.minetest.net/mmdb/mod/explorertoolsall/

explorertoolsall's People

Contributors

kilarin avatar

Watchers

 avatar

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.