Consolidate core code
|
@ -1,25 +0,0 @@
|
|||
## Antum Craft (***antum_craft***) mod for [Minetest][]
|
||||
|
||||
|
||||
---
|
||||
### **Description**
|
||||
|
||||
Craft mod for the Antum Minetest sub-game.
|
||||
|
||||
|
||||
---
|
||||
### **Dependencies**
|
||||
|
||||
#### Required:
|
||||
- 3d_armor (part of [3d_armor modpack][3d_armor])
|
||||
- [antum_core][]
|
||||
- default (part of [minetest_game][])
|
||||
- [unifieddyes][]
|
||||
|
||||
|
||||
[Minetest]: http://www.minetest.net/
|
||||
|
||||
[3d_armor]: https://forum.minetest.net/viewtopic.php?t=4654
|
||||
[antum_core]: https://github.com/AntumMT/mod-antum_core
|
||||
[minetest_game]: https://github.com/minetest/minetest_game
|
||||
[unifieddyes]: https://forum.minetest.net/viewtopic.php?t=2178
|
|
@ -1,74 +0,0 @@
|
|||
--[[ LICENSE HEADER
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
-- Nyan cat blocks
|
||||
antum.registerCraft({
|
||||
output = "default:nyancat_rainbow",
|
||||
recipe = {
|
||||
{"", "dye:red", "",},
|
||||
{"dye:violet", "group:wood", "dye:yellow",},
|
||||
{"", "dye:blue", "",},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
-- Walking light items
|
||||
antum.registerCraft({
|
||||
output = "walking_light:helmet_gold",
|
||||
recipe = {
|
||||
{"default:torch"},
|
||||
{"3d_armor:helmet_gold"},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
local glowlight = {
|
||||
cube = "homedecor:glowlight_small_cube_14",
|
||||
quarter = "homedecor:glowlight_quarter_14",
|
||||
half = "homedecor:glowlight_half_14",
|
||||
glass = "moreblocks:super_glow_glass",
|
||||
}
|
||||
|
||||
if core.registered_items[glowlight.glass] then
|
||||
if core.registered_items[glowlight.cube] then
|
||||
core.register_craft({
|
||||
type = "shapeless",
|
||||
output = glowlight.cube .. " 4",
|
||||
recipe = {glowlight.glass},
|
||||
})
|
||||
end
|
||||
|
||||
if core.registered_items[glowlight.quarter] then
|
||||
core.register_craft({
|
||||
output = glowlight.quarter,
|
||||
recipe = {
|
||||
{glowlight.glass, glowlight.glass},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
if core.registered_items[glowlight.half] then
|
||||
core.register_craft({
|
||||
output = glowlight.half,
|
||||
recipe = {
|
||||
{glowlight.glass, glowlight.glass},
|
||||
{glowlight.glass, glowlight.glass},
|
||||
},
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = glowlight.half,
|
||||
recipe = {
|
||||
{glowlight.quarter},
|
||||
{glowlight.quarter},
|
||||
},
|
||||
})
|
||||
end
|
||||
end
|
|
@ -1,25 +0,0 @@
|
|||
--[[ LICENSE HEADER
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
antum.craft = {}
|
||||
|
||||
antum.craft.modname = core.get_current_modname()
|
||||
antum.craft.modpath = core.get_modpath(antum.craft.modname)
|
||||
|
||||
|
||||
-- Load sub-scripts
|
||||
local scripts = {
|
||||
"items",
|
||||
"crafting",
|
||||
}
|
||||
|
||||
for _, script in ipairs(scripts) do
|
||||
antum.loadScript(script)
|
||||
end
|
|
@ -1,24 +0,0 @@
|
|||
--[[ LICENSE HEADER
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
core.register_tool(":walking_light:helmet_gold", {
|
||||
description = "Gold Helmet with light",
|
||||
inventory_image = "walking_light_inv_helmet_gold.png",
|
||||
wield_image = "3d_armor_inv_helmet_gold.png",
|
||||
groups = {armor_head=10, armor_heal=6, armor_use=250},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
--[[
|
||||
walking_light.addLightItem("walking_light", {
|
||||
"helmet_gold",
|
||||
}
|
||||
)
|
||||
--]]
|
|
@ -1,7 +0,0 @@
|
|||
name = antum_craft
|
||||
author = AntumDeluge
|
||||
description = Custom craft recipes for the Antum game.
|
||||
license = MIT
|
||||
version = 0.1
|
||||
depends = antum, default, 3d_armor, unifieddyes
|
||||
optional_depends = homedecor, moreblocks
|
|
@ -14,3 +14,38 @@ if core.registered_items["bucket:bucket_water"] and core.registered_items["vesse
|
|||
},
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- animalmaterials:contract
|
||||
core.register_craftitem(":ritems:contract", {
|
||||
description = "Contract",
|
||||
image = "ritems_contract.png",
|
||||
stack_max=10,
|
||||
})
|
||||
|
||||
if core.registered_items["animalmaterials:contract"] then
|
||||
override.replaceItems("animalmaterials:contract", "ritems:contract")
|
||||
end
|
||||
|
||||
if core.get_modpath("default") then
|
||||
minetest.register_craft({
|
||||
output = "ritems:contract",
|
||||
recipe = {
|
||||
{"default:paper"},
|
||||
{"default:paper"},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- animalmaterials:scale_*
|
||||
for _, color in pairs({"blue", "golden", "grey", "white"}) do
|
||||
core.register_craftitem(":ritems:scale_" .. color, {
|
||||
description = "Scale (" .. color .. ")",
|
||||
image = "ritems_scale_" .. color .. ".png",
|
||||
stack_max = 25
|
||||
})
|
||||
|
||||
if core.registered_items["animalmaterials:scale_" .. color] then
|
||||
override.replaceItems("animalmaterials:scale_" .. color, "ritems:scale_" .. color)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name = antum_items
|
||||
description = Custom items for Antum game
|
||||
depends = antum, bonemeal, gems_tools, basic_materials
|
||||
optional_depends = bucket, vessels, asm_spawneggs, farming, mobs, cmer_shark, mobs_cow
|
||||
depends = antum, bonemeal, gems_tools, basic_materials, override, walking_light, 3d_armor, unifieddyes
|
||||
optional_depends = bucket, vessels, asm_spawneggs, farming, mobs, cmer_shark, mobs_cow, homedecor_common, moreblocks
|
||||
|
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 475 B |
Before Width: | Height: | Size: 893 B After Width: | Height: | Size: 893 B |
Before Width: | Height: | Size: 361 B After Width: | Height: | Size: 361 B |
|
@ -31,3 +31,71 @@ core.register_craft({
|
|||
})
|
||||
|
||||
core.register_alias("animalmaterials:sword_deamondeath", "antum:sword_daemondeath")
|
||||
|
||||
|
||||
core.register_tool(":walking_light:helmet_gold", {
|
||||
description = "Gold Helmet with light",
|
||||
inventory_image = "walking_light_inv_helmet_gold.png",
|
||||
wield_image = "3d_armor_inv_helmet_gold.png",
|
||||
groups = {armor_head=10, armor_heal=6, armor_use=250},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
walking_light.addLightItem("walking_light", {
|
||||
"helmet_gold",
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
antum.registerCraft({
|
||||
output = "walking_light:helmet_gold",
|
||||
recipe = {
|
||||
{"default:torch"},
|
||||
{"3d_armor:helmet_gold"},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
local glowlight = {
|
||||
cube = "homedecor:glowlight_small_cube_14",
|
||||
quarter = "homedecor:glowlight_quarter_14",
|
||||
half = "homedecor:glowlight_half_14",
|
||||
glass = "moreblocks:super_glow_glass",
|
||||
}
|
||||
|
||||
if core.registered_items[glowlight.glass] then
|
||||
if core.registered_items[glowlight.cube] then
|
||||
core.register_craft({
|
||||
type = "shapeless",
|
||||
output = glowlight.cube .. " 4",
|
||||
recipe = {glowlight.glass},
|
||||
})
|
||||
end
|
||||
|
||||
if core.registered_items[glowlight.quarter] then
|
||||
core.register_craft({
|
||||
output = glowlight.quarter,
|
||||
recipe = {
|
||||
{glowlight.glass, glowlight.glass},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
if core.registered_items[glowlight.half] then
|
||||
core.register_craft({
|
||||
output = glowlight.half,
|
||||
recipe = {
|
||||
{glowlight.glass, glowlight.glass},
|
||||
{glowlight.glass, glowlight.glass},
|
||||
},
|
||||
})
|
||||
|
||||
core.register_craft({
|
||||
output = glowlight.half,
|
||||
recipe = {
|
||||
{glowlight.quarter},
|
||||
{glowlight.quarter},
|
||||
},
|
||||
})
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
## Replaced Items Mod for Antum Game
|
||||
|
||||
A simple mod to replace some items removed from mod updates for the [Antum game](https://github.com/AntumMT/game-antum).
|
||||
|
||||
Code licensing: CC0
|
||||
|
||||
Textures licensing: CC0
|
||||
* ritems_contract: by [Alastair](https://openclipart.org/detail/193532)
|
||||
* ritems_scale_*: by [verbage](https://openclipart.org/detail/181916)
|
|
@ -1,34 +0,0 @@
|
|||
|
||||
-- animalmaterials:contract
|
||||
core.register_craftitem(":ritems:contract", {
|
||||
description = "Contract",
|
||||
image = "ritems_contract.png",
|
||||
stack_max=10,
|
||||
})
|
||||
|
||||
if core.registered_items["animalmaterials:contract"] then
|
||||
override.replaceItems("animalmaterials:contract", "ritems:contract")
|
||||
end
|
||||
|
||||
if core.get_modpath("default") then
|
||||
minetest.register_craft({
|
||||
output = "ritems:contract",
|
||||
recipe = {
|
||||
{"default:paper"},
|
||||
{"default:paper"},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- animalmaterials:scale_*
|
||||
for _, color in pairs({"blue", "golden", "grey", "white"}) do
|
||||
core.register_craftitem(":ritems:scale_" .. color, {
|
||||
description = "Scale (" .. color .. ")",
|
||||
image = "ritems_scale_" .. color .. ".png",
|
||||
stack_max = 25
|
||||
})
|
||||
|
||||
if core.registered_items["animalmaterials:scale_" .. color] then
|
||||
override.replaceItems("animalmaterials:scale_" .. color, "ritems:scale_" .. color)
|
||||
end
|
||||
end
|
|
@ -1,6 +0,0 @@
|
|||
name = replaced_items
|
||||
version = 0.1
|
||||
description = A simple mod for the Antum game to replace some items that have been removed from mod updates.
|
||||
author = Jordan Irwin (AntumDeluge)
|
||||
depends = override
|
||||
optional_depends = default
|