This commit is contained in:
Jordan Irwin 2021-05-25 01:07:45 -07:00
parent 2d2d8efd82
commit 7520790db4
46 changed files with 263 additions and 1182 deletions

View File

@ -1,27 +1,10 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
See: LICENSE.txt
--]] --]]
@ -29,19 +12,19 @@
antum.registerCraft({ antum.registerCraft({
output = "default:nyancat_rainbow", output = "default:nyancat_rainbow",
recipe = { recipe = {
{'', 'dye:red', '',}, {"", "dye:red", "",},
{'dye:violet', 'group:wood', 'dye:yellow',}, {"dye:violet", "group:wood", "dye:yellow",},
{'', 'dye:blue', '',}, {"", "dye:blue", "",},
} }
}) })
-- Walking light items -- Walking light items
antum.registerCraft({ antum.registerCraft({
output = 'walking_light:helmet_gold', output = "walking_light:helmet_gold",
recipe = { recipe = {
{'default:torch'}, {"default:torch"},
{'3d_armor:helmet_gold'}, {"3d_armor:helmet_gold"},
} }
}) })

View File

@ -1,6 +0,0 @@
3d_armor
antum
default
unifieddyes
homedecor?
moreblocks?

View File

@ -1,27 +1,10 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
@ -33,10 +16,10 @@ antum.craft.modpath = core.get_modpath(antum.craft.modname)
-- Load sub-scripts -- Load sub-scripts
local scripts = { local scripts = {
'items', "items",
'crafting', "crafting",
} }
for I in pairs(scripts) do for _, script in ipairs(scripts) do
antum.loadScript(scripts[I]) antum.loadScript(script)
end end

View File

@ -1,41 +1,24 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
core.register_tool(':walking_light:helmet_gold', { core.register_tool(":walking_light:helmet_gold", {
description = 'Gold Helmet with light', description = "Gold Helmet with light",
inventory_image = 'walking_light_inv_helmet_gold.png', inventory_image = "walking_light_inv_helmet_gold.png",
wield_image = "3d_armor_inv_helmet_gold.png", wield_image = "3d_armor_inv_helmet_gold.png",
groups = {armor_head=10, armor_heal=6, armor_use=250}, groups = {armor_head=10, armor_heal=6, armor_use=250},
wear = 0, wear = 0,
}) })
--[[ --[[
walking_light.addLightItem('walking_light', { walking_light.addLightItem("walking_light", {
'helmet_gold', "helmet_gold",
} }
) )
--]] --]]

View File

@ -2,4 +2,6 @@ name = antum_craft
author = AntumDeluge author = AntumDeluge
description = Custom craft recipes for the Antum game. description = Custom craft recipes for the Antum game.
license = MIT license = MIT
version = 0.1 version = 0.1
depends = antum, default, 3d_armor, unifieddyes
optional_depends = homedecor, moreblocks

View File

@ -1,19 +0,0 @@
## Antum Entities (***antum_entities***) mod for [Minetest][]
---
### **Description**
Entities mod for the Antum Minetest sub-game (this mod is a work-in-progress).
---
### **Dependencies**
#### Required:
- [antum_core][]
[Minetest]: http://www.minetest.net/
[antum_core]: https://github.com/AntumMT/mod-antum_core

View File

@ -1,58 +0,0 @@
--[[ LICENSE HEADER
MIT License
Copyright © 2017 Jordan Irwin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
-- Battle defines hp, knockback level, ....
antum.def.battle = {}
-- HP defines how durable the entity is when attacked
antum.def.battle.sturdy = {
hp = 40,
knockback = 0,
}
antum.def.battle.strong = {
hp = 40,
knockback = 1,
}
antum.def.battle.average = {
hp = 20,
knockback = 2,
}
antum.def.battle.weak = {
hp = 10,
knockback = 4,
}
-- TESTING
antum.def.battle.creeper = {
hp = 20,
physical = true,
knockback = 2,
}

View File

@ -1,28 +0,0 @@
--[[ LICENSE HEADER
MIT License
Copyright © 2017 Jordan Irwin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
antum.def.behavior = {}

View File

@ -1,45 +0,0 @@
--[[ LICENSE HEADER
MIT License
Copyright © 2017 Jordan Irwin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
-- Movement defines footstep sounds
antum.def.movement = {}
antum.def.movement.walking = {
footsteps = true,
}
antum.def.movement.flying = {
footsteps = false,
}
-- TESTING
antum.def.movement.creeper = {
footsteps = true,
speed = 1.5,
jump = 5,
}

View File

@ -1,42 +0,0 @@
--[[ LICENSE HEADER
MIT License
Copyright © 2017 Jordan Irwin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
antum.def.visual = {}
-- TESTING
antum.def.visual.creeper = {
collisionbox = {-0.25,-0.7,-0.25, 0.25,0.8,0.25},
visual = 'mesh',
mesh = 'character.b3d',
animation = {
stand_START = 0,
stand_END = 79,
walk_START = 168,
walk_END = 187
},
animation_speed = 30,
}

View File

@ -1 +0,0 @@
antum

View File

@ -1 +0,0 @@
Entity engine for the Antum game.

View File

@ -1,54 +0,0 @@
--[[ LICENSE HEADER
MIT License
Copyright © 2017 Jordan Irwin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
antum.entities = {}
antum.entities.modname = core.get_current_modname()
antum.entities.modpath = core.get_modpath(antum.entities.modname)
-- Loading entity definitions
antum.logAction('Loading entity definitions ...')
antum.def = {}
local defs = {
'visual', 'movement', 'battle',
}
for I in pairs(defs) do
antum.loadScript('definitions/' .. defs[I])
end
-- Loading entity types
antum.logAction('Loading entity types ...')
local types = {
'hostile', 'peaceful', 'npc',
}
for I in pairs(types) do
antum.loadScript('types/' .. types[I])
end

View File

@ -1,5 +0,0 @@
name = antum_entities
author = AntumDeluge
description = Entity engine for the Antum game.
license = MIT
version = 0.1

View File

@ -1,68 +0,0 @@
--[[ LICENSE HEADER
MIT License
Copyright © 2017 Jordan Irwin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
function antum.createHostileEntity(def)
-- def must have name, visual, movement, battle,
local name = def.name
local vi = def.visual
local mo = def.movement
local ba = def.battle
local tex = def.textures
local def = {
-- Visuals
collisionbox = vi.collisionbox,
visual = vi.visual,
animation = vi.animation,
animation_speed = vi.animation_speed,
textures = tex,
-- Movement
makes_footstep_sound = mo.footsteps,
walk_speed = mo.speed,
jump_height = mo.jump,
-- Battle definitions
hp_max = ba.hp,
physical = ba.physical,
knockback_level = ba.knockback,
}
core.register_entity(name, def)
end
-- TESTING
--[[
local creeper = {
name = ':antum:creeper',
visual = antum.def.visual.creeper,
movement = antum.def.movement.creeper,
battle = antum.def.battle.creeper,
textures = {'creeper.png'},
}
antum.createHostileEntity(creeper)--]]

View File

@ -1,25 +0,0 @@
--[[ LICENSE HEADER
MIT License
Copyright © 2017 Jordan Irwin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]

View File

@ -1,25 +0,0 @@
--[[ LICENSE HEADER
MIT License
Copyright © 2017 Jordan Irwin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]

View File

@ -1,55 +1,38 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
See: LICENSE.txt
--]] --]]
local modoverrides = { local modoverrides = {
'atm', "atm",
'bags', "bags",
'biofuel', "biofuel",
'carts', "carts",
'castle_weapons', "castle_weapons",
'craftguide', "craftguide",
'currency', "currency",
'dye', "dye",
'ethereal', "ethereal",
'farming', "farming",
'helicopter', "helicopter",
'invisibility', "invisibility",
'motorbike', "motorbike",
'mypaths', "mypaths",
'simple_protection', "simple_protection",
} }
for index, modname in ipairs(modoverrides) do for index, modname in ipairs(modoverrides) do
if core.get_modpath(modname) then if core.get_modpath(modname) then
if antum.verbose then if antum.verbose then
antum.logAction('Executing craft overrides for "' .. modname .. '" mod') antum.log("action", "Executing craft overrides for \"" .. modname .. "\" mod")
end end
antum.loadScript('crafting/' .. modname) antum.loadScript("crafting/" .. modname)
end end
end end

View File

@ -1,27 +1,10 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
See: LICENSE.txt
--]] --]]

View File

@ -1,27 +1,10 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
See: LICENSE.txt
--]] --]]

View File

@ -1,35 +1,10 @@
--[[ LICENSE HEADER
MIT License
Copyright © 2017 Jordan Irwin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
antum.registerCraft({ antum.registerCraft({
output = 'biofuel:biofuel', output = "biofuel:biofuel",
recipe = { recipe = {
{'group:leaves', 'group:leaves', 'group:leaves'}, {"group:leaves", "group:leaves", "group:leaves"},
{'group:leaves', 'group:leaves', 'group:leaves'}, {"group:leaves", "group:leaves", "group:leaves"},
{'group:leaves', 'group:leaves', 'group:leaves'}, {"group:leaves", "group:leaves", "group:leaves"},
} }
}) })

View File

@ -1,33 +1,16 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
local depends_satisfied = true local depends_satisfied = true
local depends = { local depends = {
'default', "default",
} }
for I in pairs(depends) do for I in pairs(depends) do
@ -38,10 +21,10 @@ end
if depends_satisfied then if depends_satisfied then
antum.registerCraft({ antum.registerCraft({
output = 'carts:powerrail', output = "carts:powerrail",
type = 'shapeless', type = "shapeless",
recipe = { recipe = {
'default:rail', 'default:mese_crystal_fragment', "default:rail", "default:mese_crystal_fragment",
} }
}) })
end end

View File

@ -1,27 +1,10 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
See: LICENSE.txt
--]] --]]

View File

@ -1,74 +1,57 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
-- Override craftguide:sign -- Override craftguide:sign
antum.overrideCraftOutput({ antum.overrideCraftOutput({
type = 'shapeless', type = "shapeless",
output = 'craftguide:sign', output = "craftguide:sign",
recipe = {'default:sign_wall_wood', 'default:paper'}, recipe = {"default:sign_wall_wood", "default:paper"},
}) })
-- Alternate recipes for craftguide:sign -- Alternate recipes for craftguide:sign
antum.registerCraft({ antum.registerCraft({
type = 'shapeless', type = "shapeless",
output = 'craftguide:sign', output = "craftguide:sign",
recipe = {'default:sign_wall_wood', 'craftguide:book'}, recipe = {"default:sign_wall_wood", "craftguide:book"},
}) })
antum.registerCraft({ antum.registerCraft({
output = 'craftguide:sign', output = "craftguide:sign",
recipe = { recipe = {
{'default:sign_wall_wood', 'default:sign_wall_wood', ''}, {"default:sign_wall_wood", "default:sign_wall_wood", ""},
{'default:sign_wall_wood', 'default:sign_wall_wood', ''}, {"default:sign_wall_wood", "default:sign_wall_wood", ""},
}, },
}) })
-- Override craftguide:book -- Override craftguide:book
antum.overrideCraftOutput({ antum.overrideCraftOutput({
type = 'shapeless', type = "shapeless",
output = 'craftguide:book', output = "craftguide:book",
recipe = {'default:book', 'default:paper'}, recipe = {"default:book", "default:paper"},
}) })
-- Alternate recipes for craftguide:book -- Alternate recipes for craftguide:book
antum.registerCraft({ antum.registerCraft({
type = 'shapeless', type = "shapeless",
output = 'craftguide:book', output = "craftguide:book",
recipe = {'default:book', 'craftguide:sign'}, recipe = {"default:book", "craftguide:sign"},
}) })
antum.registerCraft({ antum.registerCraft({
type = 'shapeless', type = "shapeless",
output = 'craftguide:book', output = "craftguide:book",
recipe = {'default:book_written', 'default:paper'}, recipe = {"default:book_written", "default:paper"},
}) })
antum.registerCraft({ antum.registerCraft({
type = 'shapeless', type = "shapeless",
output = 'craftguide:book', output = "craftguide:book",
recipe = {'default:book_written', 'craftguide:sign'}, recipe = {"default:book_written", "craftguide:sign"},
}) })

View File

@ -1,41 +1,41 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT Licensing The MIT License (MIT)
Copyright © 2017 Jordan Irwin (AntumDeluge) Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
See: LICENSE.txt See: LICENSE.txt
]] --]]
if antum.dependsSatisfied({'default', 'currency'}) then if antum.dependsSatisfied({"default", "currency"}) then
core.register_craft({ core.register_craft({
output = 'default:paper', output = "default:paper",
recipe = { recipe = {
{'currency:minegeld', 'currency:minegeld'}, {"currency:minegeld", "currency:minegeld"},
{'currency:minegeld', 'currency:minegeld'}, {"currency:minegeld", "currency:minegeld"},
}, },
}) })
core.register_craft({ core.register_craft({
output = 'default:paper', output = "default:paper",
recipe = { recipe = {
{'currency:minegeld_5', 'currency:minegeld_5'}, {"currency:minegeld_5", "currency:minegeld_5"},
{'currency:minegeld_5', 'currency:minegeld_5'}, {"currency:minegeld_5", "currency:minegeld_5"},
}, },
}) })
core.register_craft({ core.register_craft({
output = 'default:paper', output = "default:paper",
recipe = { recipe = {
{'currency:minegeld_10', 'currency:minegeld_10'}, {"currency:minegeld_10", "currency:minegeld_10"},
{'currency:minegeld_10', 'currency:minegeld_10'}, {"currency:minegeld_10", "currency:minegeld_10"},
}, },
}) })
core.register_craft({ core.register_craft({
output = 'default:paper 10', output = "default:paper 10",
type = 'shapeless', type = "shapeless",
recipe = {'currency:minegeld_bundle'}, recipe = {"currency:minegeld_bundle"},
}) })
end end

View File

@ -1,43 +1,26 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
local function registerDyeRecipes(def) local function registerDyeRecipes(def)
for I, T in pairs(def) do for I, T in pairs(def) do
local dye = 'dye:' .. T[1] local dye = "dye:" .. T[1]
local ingredients = T[2] local ingredients = T[2]
-- DEBUG -- DEBUG
core.log('action', '[antum_overrides] Registering new recipe for dye:' .. T[1] .. ' with the following ingredients:') core.log("action", "[antum_overrides] Registering new recipe for dye:" .. T[1] .. " with the following ingredients:")
for i in pairs(ingredients) do for i in pairs(ingredients) do
core.log('action', '[antum_overrides]\t' .. ingredients[i]) core.log("action", "[antum_overrides]\t" .. ingredients[i])
end end
core.register_craft({ core.register_craft({
output = dye, output = dye,
type = 'shapeless', type = "shapeless",
recipe = ingredients, recipe = ingredients,
}) })
end end
@ -45,8 +28,8 @@ end
local dye_defs = {} local dye_defs = {}
if core.get_modpath('flowers') then if core.get_modpath("flowers") then
table.insert(dye_defs, -1, {'brown 4', {'flowers:mushroom_brown'}}) table.insert(dye_defs, -1, {"brown 4", {"flowers:mushroom_brown"}})
end end
registerDyeRecipes(dye_defs) registerDyeRecipes(dye_defs)

View File

@ -1,19 +1,19 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT Licensing The MIT License (MIT)
Copyright © 2017 Jordan Irwin (AntumDeluge) Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
See: LICENSE.txt See: LICENSE.txt
]] --]]
if antum.dependsSatisfied({'ethereal',}) then if antum.dependsSatisfied({"ethereal",}) then
antum.overrideCraftOutput({ antum.overrideCraftOutput({
output = 'ethereal:bowl', output = "ethereal:bowl",
recipe = { recipe = {
{'group:tree', '', 'group:tree'}, {"group:tree", "", "group:tree"},
{'', 'group:tree', ''}, {"", "group:tree", ""},
}, },
}) })
end end

View File

@ -1,27 +1,10 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
See: LICENSE.txt
--]] --]]

View File

@ -1,37 +1,20 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
antum.clearCraftOutput("helicopter:cabin") antum.clearCraftOutput("helicopter:cabin")
antum.registerCraft({ antum.registerCraft({
output = 'helicopter:cabin', output = "helicopter:cabin",
recipe = { recipe = {
{'default:steel_ingot', 'default:steel_ingot', ''}, {"default:steel_ingot", "default:steel_ingot", ""},
{'default:steel_ingot', 'homedecor:motor','default:glass'}, {"default:steel_ingot", "homedecor:motor","default:glass"},
{'default:steel_ingot','default:steel_ingot','default:steel_ingot'}, {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
} }
}) })

View File

@ -1,38 +1,21 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
local depends_satisfied = true local depends_satisfied = true
local depends = { local depends = {
'antum', "antum",
'antum_items', "antum_items",
'bucket', "bucket",
'default', "default",
'vessels', "vessels",
} }
for I in pairs(depends) do for I in pairs(depends) do
@ -42,76 +25,11 @@ for I in pairs(depends) do
end end
if depends_satisfied then if depends_satisfied then
-- Override vessels:glass_bottle
--[[
core.override_item('vessels:glass_bottle', {
description = 'Glass Bottle (empty)',
drawtype = 'plantlike',
tiles = {'vessels_glass_bottle.png'},
inventory_image = 'vessels_glass_bottle_inv.png',
wield_image = 'vessels_glass_bottle.png',
paramtype = 'light',
is_ground_content = false,
walkable = false,
selection_box = {
type = 'fixed',
fixed = {-0.25, -0.5, -0.25, 0.25, 0.4, 0.25}
},
groups = {vessel=1,dig_immediate=3,attached_node=1},
sounds = default.node_sound_glass_defaults(),
on_use = function(itemstack, user, pointed_thing)
-- Must be pointing to node
if pointed_thing.type ~= 'node' then
return
end
-- Check if pointing to a liquid source
local node = core.get_node(pointed_thing.under)
local liquiddef = bucket.liquids[node.name]
local item_count = user:get_wielded_item():get_count()
if liquiddef ~= nil
and liquiddef.itemname ~= nil
and node.name == liquiddef.source then
if check_protection(pointed_thing.under,
user:get_player_name(),
'take '.. node.name) then
return
end
-- default set to return filled bottle
local giving_back = liquiddef.itemname
-- check if holding more than 1 empty bucket
if item_count > 1 then
-- if space in inventory add filled bucked, otherwise drop as item
local inv = user:get_inventory()
if inv:room_for_item('main', {name=liquiddef.itemname}) then
inv:add_item('main', liquiddef.itemname)
else
local pos = user:getpos()
pos.y = math.floor(pos.y + 0.5)
core.add_item(pos, liquiddef.itemname)
end
-- set to return empty buckets minus 1
giving_back = 'vessels:glass_bottle '..tostring(item_count-1)
end
core.add_node(pointed_thing.under, {name='air'})
return ItemStack(giving_back)
end
end,
})--]]
antum.registerCraft({ antum.registerCraft({
output = 'invisibility:potion', output = "invisibility:potion",
type = 'shapeless', type = "shapeless",
recipe = { recipe = {
'antum:bottled_water', 'default:mese_crystal_fragment', "antum:bottled_water", "default:mese_crystal_fragment",
}, },
}) })
end end

View File

@ -1,43 +1,12 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
See: LICENSE.txt
--]] --]]
--[[
local depends_satisfied = true
local depends = {
'gems_encrustable',
'gems_tools',
}
for I in pairs(depends) do
if not core.get_modpath(depends[I]) then
depends_satisfied = false
end
end
]]
local function itemsAreRegistered(items) local function itemsAreRegistered(items)
for _, iname in pairs(items) do for _, iname in pairs(items) do

View File

@ -1 +0,0 @@
Overrides of craft recipes, items, etc. from other mods for the Antum game.

View File

@ -1,28 +0,0 @@
--[[ LICENSE HEADER
MIT License
Copyright © 2017 Jordan Irwin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
-- Entities is another term for mobs

View File

@ -1,45 +1,23 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
-- NOTE: This mod depends on the method 'core.unregister_item()' by paly2.
-- As of writing, the Mineteset main branch does not include it.
antum.overrides = {} antum.overrides = {}
antum.overrides.modname = core.get_current_modname() antum.overrides.modname = core.get_current_modname()
antum.overrides.modpath = core.get_modpath(antum.overrides.modname) antum.overrides.modpath = core.get_modpath(antum.overrides.modname)
--local scripts = { --local scripts = {
antum.loadScripts({ antum.loadScripts({
'items', "items",
'entities', "misc",
'misc', "nodes",
'nodes', "crafting",
'crafting',
'temp_fixes',
}) })

View File

@ -1,27 +1,10 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]

View File

@ -1,27 +1,10 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
@ -29,9 +12,8 @@ local modoverrides = {
"walking_light", "walking_light",
} }
for I in pairs(modoverrides) do for _, mo in ipairs(modoverrides) do
local modname = modoverrides[I] if core.get_modpath(mo) then
if core.get_modpath(modname) then antum.loadScript("misc/" .. mo)
antum.loadScript('misc/' .. modname)
end end
end end

View File

@ -1,60 +1,36 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
local addLightItems = function(mod, itemlist) local addLightItems = function(mod, itemlist)
if core.get_modpath(mod) then if core.get_modpath(mod) then
for I in pairs(itemlist) do for _, i in ipairs(itemlist) do
walking_light.addLightItem(mod .. ':' .. itemlist[I]) walking_light.addLightItem(mod .. ":" .. i)
end end
end end
end end
-- Illuminate glow_glass & super_glow_glass -- Illuminate glow_glass & super_glow_glass
addLightItems('moreblocks', { addLightItems("moreblocks", {
'glow_glass', 'super_glow_glass', "glow_glass", "super_glow_glass",
}) })
-- Illuminate homedecor candles -- Illuminate homedecor candles
addLightItems('homedecor', { addLightItems("homedecor", {
'candle', 'candle_thin', 'candlestick_brass', "candle", "candle_thin", "candlestick_brass",
'candlestick_wrought_iron', "candlestick_wrought_iron",
}) })
-- Illuminate ethereal:candle -- Illuminate ethereal:candle
addLightItems('ethereal', { addLightItems("ethereal", {
'candle', "candle",
}) })
--[[ DEBUG
local light_items = walking_light.getLightItems()
for I in pairs(light_items) do
core.log('action', '[walking_light] Light item: \"' .. light_items[I] .. '\"')
end
--]]

View File

@ -3,4 +3,3 @@ author = AntumDeluge
description = Customizations & overrides for the Minetest Antum game description = Customizations & overrides for the Minetest Antum game
license = MIT license = MIT
version = 0.1 version = 0.1
depends = antum

View File

@ -1,37 +1,19 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
local modoverrides = { local modoverrides = {
'ethereal', "ethereal",
} }
for I in pairs(modoverrides) do for _, mo in ipairs(modoverrides) do
local modname = modoverrides[I] if core.get_modpath(mo) then
if core.get_modpath(modname) then antum.loadScript("nodes/" .. mo)
antum.loadScript('nodes/' .. modname)
end end
end end

View File

@ -1,40 +1,23 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
-- Return default tree leaves back to original except make walkable (collides) -- Return default tree leaves back to original except make walkable (collides)
core.override_item('default:leaves', { core.override_item("default:leaves", {
description = "Leaves", description = "Leaves",
drawtype = 'allfaces_optional', drawtype = "allfaces_optional",
waving = 1, waving = 1,
visual_scale = 1.3, visual_scale = 1.3,
tiles = {'default_leaves.png'}, tiles = {"default_leaves.png"},
special_tiles = {'default_leaves_simple.png'}, special_tiles = {"default_leaves_simple.png"},
paramtype = 'light', paramtype = "light",
is_ground_content = false, is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1}, groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
drop = { drop = {
@ -42,13 +25,13 @@ core.override_item('default:leaves', {
items = { items = {
{ {
-- player will get sapling with 1/20 chance -- player will get sapling with 1/20 chance
items = {'default:sapling'}, items = {"default:sapling"},
rarity = 20, rarity = 20,
}, },
{ {
-- player will get leaves only if he get no saplings, -- player will get leaves only if he get no saplings,
-- this is because max_items is 1 -- this is because max_items is 1
items = {'default:leaves'}, items = {"default:leaves"},
} }
} }
}, },
@ -58,14 +41,14 @@ core.override_item('default:leaves', {
walkable = true, walkable = true,
}) })
core.override_item('default:jungleleaves', { core.override_item("default:jungleleaves", {
description = "Jungle Leaves", description = "Jungle Leaves",
drawtype = 'allfaces_optional', drawtype = "allfaces_optional",
waving = 1, waving = 1,
visual_scale = 1.3, visual_scale = 1.3,
tiles = {'default_jungleleaves.png'}, tiles = {"default_jungleleaves.png"},
special_tiles = {'default_jungleleaves_simple.png'}, special_tiles = {"default_jungleleaves_simple.png"},
paramtype = 'light', paramtype = "light",
is_ground_content = false, is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1}, groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
drop = { drop = {
@ -73,13 +56,13 @@ core.override_item('default:jungleleaves', {
items = { items = {
{ {
-- player will get sapling with 1/20 chance -- player will get sapling with 1/20 chance
items = {'default:sapling'}, items = {"default:sapling"},
rarity = 20, rarity = 20,
}, },
{ {
-- player will get leaves only if he get no saplings, -- player will get leaves only if he get no saplings,
-- this is because max_items is 1 -- this is because max_items is 1
items = {'default:leaves'}, items = {"default:leaves"},
} }
} }
}, },

View File

@ -1,22 +0,0 @@
--[[ LICENSE HEADER
MIT Licensing
Copyright © 2017 Jordan Irwin
See: LICENSE.txt
--]]
-- TODO: Use file in world directory & function that waits until server is loaded
-- Add tables of {old, new} to be temporarily removed (cleaned) to this list.
-- Recommended to add source mod to 'depends.txt'.
-- WARNING: 'old' item will be un-registered from game & all instances converted to 'new' item.
-- Clearing this list will re-register 'old' item on following run, but will not convert
-- instances back.
local replace_items = {}
for index, item_group in ipairs(replace_items) do
antum.convertItemToAlias(item_group[1], item_group[2])
end

View File

@ -1,2 +0,0 @@
override
default?

View File

@ -1 +0,0 @@
A simple mod for the Antum game to replace some items that have been removed from mod updates.

View File

@ -1,3 +1,6 @@
name = replaced_items name = replaced_items
version = 0.1 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) author = Jordan Irwin (AntumDeluge)
depends = override
optional_depends = default

View File

@ -1,27 +1,10 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
See: LICENSE.txt
--]] --]]

View File

@ -1,27 +1,10 @@
--[[ LICENSE HEADER --[[ LICENSE HEADER
MIT License The MIT License (MIT)
Copyright © 2017 Jordan Irwin Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
Permission is hereby granted, free of charge, to any person obtaining a copy of See: LICENSE.txt
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]] --]]
@ -30,4 +13,4 @@ antum.spawneggs = {}
antum.spawneggs.modname = core.get_current_modname() antum.spawneggs.modname = core.get_current_modname()
antum.spawneggs.modpath = core.get_modpath(antum.spawneggs.modname) antum.spawneggs.modpath = core.get_modpath(antum.spawneggs.modname)
antum.loadScript('eggs') antum.loadScript("eggs")