Browse Source

[nalc_hell] Corrige support toolranks

tags/nalc-1.2.0
sys4 1 month ago
parent
commit
73408c74b5
4 changed files with 100 additions and 93 deletions
  1. +97
    -0
      nalc_hell/init.lua
  2. +3
    -0
      nalc_hell/mod.conf
  3. +0
    -2
      nalc_nether/depends.txt
  4. +0
    -91
      nalc_nether/init.lua

+ 97
- 0
nalc_hell/init.lua View File

@@ -0,0 +1,97 @@
-- Aliases
minetest.register_alias("hell:sword_sywtonic", "nether:sword_white")
minetest.register_alias("hell:sword_sywtonic", "nether:sword_sywtonic")

-- Hell Toolranks
-- Hell Pickaxes
minetest.override_item(
"hell:pick_mushroom",
{
original_description = "Hell Mushroom Pickaxe",
description = toolranks.create_description("Hell Mushroom Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"hell:pick_wood",
{
original_description = "Hell Wood Pickaxe",
description = toolranks.create_description("Hell Wood Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"hell:pick_hellrack",
{
original_description = "Hellrack Pickaxe",
description = toolranks.create_description("Hellrack Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"hell:pick_hellrack_blue",
{
original_description = "Blue Hellrack Pickaxe",
description = toolranks.create_description("Blue Hellrack Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"hell:pick_white",
{
original_description = "Siwtonic Pickaxe",
description = toolranks.create_description("Siwtonic Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})

-- Hell Axes
minetest.override_item(
"hell:axe_hellrack",
{
original_description = "Hellrack Axe",
description = toolranks.create_description("Hellrack Axe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"hell:axe_hellrack_blue",
{
original_description = "Blue Hellrack Axe",
description = toolranks.create_description("Blue Hellrack Axe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"hell:axe_white",
{
original_description = "Siwtonic Axe",
description = toolranks.create_description("Siwtonic Axe", 0, 1),
after_use = toolranks.new_afteruse
})

-- Hell Shovels
minetest.override_item(
"hell:shovel_hellrack",
{
original_description = "Hellrack Shovel",
description = toolranks.create_description("Hellrack Shovel", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"hell:shovel_hellrack_blue",
{
original_description = "Blue Hellrack Shovel",
description = toolranks.create_description("Blue Hellrack Shovel", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"hell:shovel_white",
{
original_description = "Siwtonic Shovel",
description = toolranks.create_description("Siwtonic Shovel", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.log("action", "[nalc_hell] loaded.")

+ 3
- 0
nalc_hell/mod.conf View File

@@ -0,0 +1,3 @@
name = nalc_hell
description = Add toolranks support to hell mod
depends = hell,toolranks

+ 0
- 2
nalc_nether/depends.txt View File

@@ -1,2 +0,0 @@
nether
toolranks

+ 0
- 91
nalc_nether/init.lua View File

@@ -1,96 +0,0 @@
minetest.register_alias("nether:sword_sywtonic", "nether:sword_white")

minetest.override_item(
"nether:pick_mushroom",
{
original_description = "Nether Mushroom Pickaxe",
description = toolranks.create_description("Nether Mushroom Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"nether:pick_wood",
{
original_description = "Nether Wood Pickaxe",
description = toolranks.create_description("Nether Wood Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"nether:pick_netherrack",
{
original_description = "Netherrack Pickaxe",
description = toolranks.create_description("Netherrack Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"nether:pick_netherrack_blue",
{
original_description = "Blue Netherrack Pickaxe",
description = toolranks.create_description("Blue Netherrack Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"nether:pick_white",
{
original_description = "Siwtonic Pickaxe",
description = toolranks.create_description("Siwtonic Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"nether:axe_netherrack",
{
original_description = "Netherrack Axe",
description = toolranks.create_description("Netherrack Axe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"nether:axe_netherrack_blue",
{
original_description = "Blue Netherrack Axe",
description = toolranks.create_description("Blue Netherrack Axe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"nether:axe_white",
{
original_description = "Siwtonic Axe",
description = toolranks.create_description("Siwtonic Axe", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"nether:shovel_netherrack",
{
original_description = "Netherrack Shovel",
description = toolranks.create_description("Netherrack Shovel", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"nether:shovel_netherrack_blue",
{
original_description = "Blue Netherrack Shovel",
description = toolranks.create_description("Blue Netherrack Shovel", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.override_item(
"nether:shovel_white",
{
original_description = "Siwtonic Shovel",
description = toolranks.create_description("Siwtonic Shovel", 0, 1),
after_use = toolranks.new_afteruse
})

minetest.log("action", "[nalc_nether] loaded.")

Loading…
Cancel
Save