Skip to content
Snippets Groups Projects
Unverified Commit e8097c9e authored by Paramat's avatar Paramat Committed by GitHub
Browse files

Creative: Override the hand instead of re-registering

Allows the initial hand registration to alter the 'wield_scale' without
needing to also alter it in creative mod.
Also make default mod a dependency again, as the initial hand
registration is required.
parent 5c3e4b1d
No related branches found
No related tags found
No related merge requests found
......@@ -40,10 +40,8 @@ if creative_mode_cache then
local digtime = 42
local caps = {times = {digtime, digtime, digtime}, uses = 0, maxlevel = 256}
minetest.register_item(":", {
type = "none",
wield_image = "wieldhand.png",
wield_scale = {x = 1, y = 1, z = 2.5},
-- Override the hand tool
minetest.override_item("", {
range = 10,
tool_capabilities = {
full_punch_interval = 0.5,
......
name = creative
description = Minetest Game mod: creative
depends = sfinv
optional_depends = default
depends = default, sfinv
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment