[Mod] Handholds Redo [2.0.2] [handholds_redo]

Post Reply
User avatar
TestificateMods
Member
Posts: 88
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

[Mod] Handholds Redo [2.0.2] [handholds_redo]

by TestificateMods » Post

Handholds Redo
Mountaineering made easy for Minetest Game, MineClone2, and Realtest

Image

This mod is inspired by the handholds mod that adds a climbing pick for easier mountaineering.
In that mod you can use a specialized tool to carve handholds into stone, sandstone, and ice blocks. These handholds would then allow you to climb upwards.


Noticeable Differences
The code has been completely rewritten from scratch in order to make some significant changes.
  • Instead of adding a new tool, handholds_redo lets you use your normal pickaxes by right-clicking
  • Handholds can now be carved into a lot more materials including nodes from various different mods and subgames
  • Handholds can now be carved into multiple sides of the same node
  • Handholds can now be carved into the bottom face of a node, allowing you to climb on the ceiling
  • Mod authors can now mark nodes as carveable more easily
  • Mod authors can now assign a climbing pick ability to custom tools
  • On a technical note, handhold nodes are now wallmounted and attached, meaning they don't need to be synced with their neighbouring nodes anymore

Modding Capabilities
Adding a carveable node: Adding additional nodes to the list of carveable materials is extremely easy.
All you need to do is assign a group value called handholds to the respective node like so:

Code: Select all

minetest.register_node("mymod:test_node", {
	description = "Test Node",
	tiles = { "mymod_testnode.png" },
	groups = { handholds = 2 },
})
If you want to assign a group value to an already registered node you can either override that node
using minetest.override_item(node_name, node_definition) or a helper utility provided by this mod: handholds.mark_climbable(node_name, level).
This function will apply the specified level to the handholds group and assign it to the given node.
A pickaxe needs to have at least the same level in order to carve the material.
If left unspecified, this value defaults to 1.
For reference: A wooden pickaxe has a value of 1, stone a value of 2, bronze and steel a value of 3, mese and diamond a value of 4.

Adding a custom pickaxe: In order to apply the climbing behaviour to a custom pickaxe you will need to tell this mod about it. Register it as a tool like normal and then call handholds.register_pick(name, level). This function will then override the tool's right-click handler in order to assign the new behaviour. The specified level determines which nodes can be carved. If left unspecified, this value defaults to 1.


License Information
The source code is licensed under GNU Lesser General Public License v3.0. Look at the included license file for more information.

The texture for the handholds node is taken from the mod handholds and licensed under CC BY-SA 4.0. Credit for this goes to Shara RedCat. The texture has been marginally tweaked by me for better visibility.

No required dependencies
Links: Downloads - Source Code - ContentDB
Last edited by TestificateMods on Mon Apr 12, 2021 05:54, edited 4 times in total.

User avatar
TestificateMods
Member
Posts: 88
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Handholds Redo [2.0.0] [handholds_redo]

by TestificateMods » Post

I just uploaded a huge update. Handholds Redo no longer has a hard dependency on default. Instead, it now supports MineClone2 and Realtest MT5 in addition to Minetest Game.
I have also added more optional dependencies. Pickaxes from lavastuff and obsidianstuff can now be used as well. You can also climb some nodes from gloopblocks.

User avatar
uwu
Member
Posts: 43
Joined: Sun Jan 21, 2018 15:01

Re: [Mod] Handholds Redo [2.0.1] [handholds_redo]

by uwu » Post

I noticed that you can open chests and doors with a pickaxe again but the changes didn't mentioned that, so thanks for this fix :)

User avatar
TestificateMods
Member
Posts: 88
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Handholds Redo [2.0.1] [handholds_redo]

by TestificateMods » Post

uwu wrote:
Fri Jun 05, 2020 15:56
I noticed that you can open chests and doors with a pickaxe again but the changes didn't mentioned that, so thanks for this fix :)
You can? I was told about this issue only recently and didn't have the time to test it yet. I didn't do anything about it really :D So, uhm, nice to hear that my refactoring fixed it by accident. Thank you for letting me know.

User avatar
voxelproof
Member
Posts: 1087
Joined: Sat Aug 05, 2017 08:13
Location: Europe

Re: [Mod] Handholds Redo [2.0.1] [handholds_redo]

by voxelproof » Post

Great, at last it works on cave ice :)) Thanks a lot, excellent job done. BTW can you tell me what is the texture pack you used in the screenshot in the topic's head? It looks as a really good artistic work.
To miss the joy is to miss all. Robert Louis Stevenson

User avatar
TestificateMods
Member
Posts: 88
Joined: Sat Apr 11, 2020 02:09
GitHub: t-affeldt
In-game: Testificate

Re: [Mod] Handholds Redo [2.0.1] [handholds_redo]

by TestificateMods » Post

voxelproof wrote:
Sat Jun 06, 2020 17:55
BTW can you tell me what is the texture pack you used in the screenshot in the topic's head?
Yes. I use Polygonia (128x edition) for all of my screenshots.

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests