Cleanup
This commit is contained in:
parent
2d2d8efd82
commit
7520790db4
@ -1,27 +1,10 @@
|
||||
--[[ LICENSE HEADER
|
||||
|
||||
MIT License
|
||||
The MIT License (MIT)
|
||||
|
||||
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.
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
@ -29,19 +12,19 @@
|
||||
antum.registerCraft({
|
||||
output = "default:nyancat_rainbow",
|
||||
recipe = {
|
||||
{'', 'dye:red', '',},
|
||||
{'dye:violet', 'group:wood', 'dye:yellow',},
|
||||
{'', 'dye:blue', '',},
|
||||
{"", "dye:red", "",},
|
||||
{"dye:violet", "group:wood", "dye:yellow",},
|
||||
{"", "dye:blue", "",},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
-- Walking light items
|
||||
antum.registerCraft({
|
||||
output = 'walking_light:helmet_gold',
|
||||
output = "walking_light:helmet_gold",
|
||||
recipe = {
|
||||
{'default:torch'},
|
||||
{'3d_armor:helmet_gold'},
|
||||
{"default:torch"},
|
||||
{"3d_armor:helmet_gold"},
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
3d_armor
|
||||
antum
|
||||
default
|
||||
unifieddyes
|
||||
homedecor?
|
||||
moreblocks?
|
@ -1,27 +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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
@ -33,10 +16,10 @@ antum.craft.modpath = core.get_modpath(antum.craft.modname)
|
||||
|
||||
-- Load sub-scripts
|
||||
local scripts = {
|
||||
'items',
|
||||
'crafting',
|
||||
"items",
|
||||
"crafting",
|
||||
}
|
||||
|
||||
for I in pairs(scripts) do
|
||||
antum.loadScript(scripts[I])
|
||||
for _, script in ipairs(scripts) do
|
||||
antum.loadScript(script)
|
||||
end
|
||||
|
@ -1,41 +1,24 @@
|
||||
--[[ 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.
|
||||
|
||||
|
||||
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',
|
||||
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',
|
||||
walking_light.addLightItem("walking_light", {
|
||||
"helmet_gold",
|
||||
}
|
||||
)
|
||||
--]]
|
||||
|
@ -2,4 +2,6 @@ name = antum_craft
|
||||
author = AntumDeluge
|
||||
description = Custom craft recipes for the Antum game.
|
||||
license = MIT
|
||||
version = 0.1
|
||||
version = 0.1
|
||||
depends = antum, default, 3d_armor, unifieddyes
|
||||
optional_depends = homedecor, moreblocks
|
||||
|
@ -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
|
@ -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,
|
||||
}
|
@ -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 = {}
|
@ -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,
|
||||
}
|
@ -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,
|
||||
}
|
@ -1 +0,0 @@
|
||||
antum
|
@ -1 +0,0 @@
|
||||
Entity engine for the Antum game.
|
@ -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
|
@ -1,5 +0,0 @@
|
||||
name = antum_entities
|
||||
author = AntumDeluge
|
||||
description = Entity engine for the Antum game.
|
||||
license = MIT
|
||||
version = 0.1
|
@ -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)--]]
|
@ -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.
|
||||
|
||||
--]]
|
@ -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.
|
||||
|
||||
--]]
|
@ -1,55 +1,38 @@
|
||||
--[[ LICENSE HEADER
|
||||
|
||||
MIT License
|
||||
The MIT License (MIT)
|
||||
|
||||
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.
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
local modoverrides = {
|
||||
'atm',
|
||||
'bags',
|
||||
'biofuel',
|
||||
'carts',
|
||||
'castle_weapons',
|
||||
'craftguide',
|
||||
'currency',
|
||||
'dye',
|
||||
'ethereal',
|
||||
'farming',
|
||||
'helicopter',
|
||||
'invisibility',
|
||||
'motorbike',
|
||||
'mypaths',
|
||||
'simple_protection',
|
||||
"atm",
|
||||
"bags",
|
||||
"biofuel",
|
||||
"carts",
|
||||
"castle_weapons",
|
||||
"craftguide",
|
||||
"currency",
|
||||
"dye",
|
||||
"ethereal",
|
||||
"farming",
|
||||
"helicopter",
|
||||
"invisibility",
|
||||
"motorbike",
|
||||
"mypaths",
|
||||
"simple_protection",
|
||||
}
|
||||
|
||||
for index, modname in ipairs(modoverrides) do
|
||||
if core.get_modpath(modname) then
|
||||
if antum.verbose then
|
||||
antum.logAction('Executing craft overrides for "' .. modname .. '" mod')
|
||||
antum.log("action", "Executing craft overrides for \"" .. modname .. "\" mod")
|
||||
end
|
||||
|
||||
antum.loadScript('crafting/' .. modname)
|
||||
antum.loadScript("crafting/" .. modname)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1,27 +1,10 @@
|
||||
--[[ LICENSE HEADER
|
||||
|
||||
MIT License
|
||||
The MIT License (MIT)
|
||||
|
||||
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.
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
|
@ -1,27 +1,10 @@
|
||||
--[[ LICENSE HEADER
|
||||
|
||||
MIT License
|
||||
The MIT License (MIT)
|
||||
|
||||
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.
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
|
@ -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({
|
||||
output = 'biofuel:biofuel',
|
||||
output = "biofuel:biofuel",
|
||||
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"},
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@ -1,33 +1,16 @@
|
||||
--[[ 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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
local depends_satisfied = true
|
||||
|
||||
local depends = {
|
||||
'default',
|
||||
"default",
|
||||
}
|
||||
|
||||
for I in pairs(depends) do
|
||||
@ -38,10 +21,10 @@ end
|
||||
|
||||
if depends_satisfied then
|
||||
antum.registerCraft({
|
||||
output = 'carts:powerrail',
|
||||
type = 'shapeless',
|
||||
output = "carts:powerrail",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
'default:rail', 'default:mese_crystal_fragment',
|
||||
"default:rail", "default:mese_crystal_fragment",
|
||||
}
|
||||
})
|
||||
end
|
||||
|
@ -1,27 +1,10 @@
|
||||
--[[ LICENSE HEADER
|
||||
|
||||
MIT License
|
||||
The MIT License (MIT)
|
||||
|
||||
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.
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
|
@ -1,74 +1,57 @@
|
||||
--[[ 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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
-- Override craftguide:sign
|
||||
antum.overrideCraftOutput({
|
||||
type = 'shapeless',
|
||||
output = 'craftguide:sign',
|
||||
recipe = {'default:sign_wall_wood', 'default:paper'},
|
||||
type = "shapeless",
|
||||
output = "craftguide:sign",
|
||||
recipe = {"default:sign_wall_wood", "default:paper"},
|
||||
})
|
||||
|
||||
-- Alternate recipes for craftguide:sign
|
||||
antum.registerCraft({
|
||||
type = 'shapeless',
|
||||
output = 'craftguide:sign',
|
||||
recipe = {'default:sign_wall_wood', 'craftguide:book'},
|
||||
type = "shapeless",
|
||||
output = "craftguide:sign",
|
||||
recipe = {"default:sign_wall_wood", "craftguide:book"},
|
||||
})
|
||||
|
||||
antum.registerCraft({
|
||||
output = 'craftguide:sign',
|
||||
output = "craftguide:sign",
|
||||
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
|
||||
antum.overrideCraftOutput({
|
||||
type = 'shapeless',
|
||||
output = 'craftguide:book',
|
||||
recipe = {'default:book', 'default:paper'},
|
||||
type = "shapeless",
|
||||
output = "craftguide:book",
|
||||
recipe = {"default:book", "default:paper"},
|
||||
})
|
||||
|
||||
-- Alternate recipes for craftguide:book
|
||||
antum.registerCraft({
|
||||
type = 'shapeless',
|
||||
output = 'craftguide:book',
|
||||
recipe = {'default:book', 'craftguide:sign'},
|
||||
type = "shapeless",
|
||||
output = "craftguide:book",
|
||||
recipe = {"default:book", "craftguide:sign"},
|
||||
})
|
||||
|
||||
antum.registerCraft({
|
||||
type = 'shapeless',
|
||||
output = 'craftguide:book',
|
||||
recipe = {'default:book_written', 'default:paper'},
|
||||
type = "shapeless",
|
||||
output = "craftguide:book",
|
||||
recipe = {"default:book_written", "default:paper"},
|
||||
})
|
||||
|
||||
antum.registerCraft({
|
||||
type = 'shapeless',
|
||||
output = 'craftguide:book',
|
||||
recipe = {'default:book_written', 'craftguide:sign'},
|
||||
type = "shapeless",
|
||||
output = "craftguide:book",
|
||||
recipe = {"default:book_written", "craftguide:sign"},
|
||||
})
|
||||
|
@ -1,41 +1,41 @@
|
||||
--[[ LICENSE HEADER
|
||||
|
||||
MIT Licensing
|
||||
|
||||
Copyright © 2017 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
]]
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
if antum.dependsSatisfied({'default', 'currency'}) then
|
||||
if antum.dependsSatisfied({"default", "currency"}) then
|
||||
core.register_craft({
|
||||
output = 'default:paper',
|
||||
output = "default:paper",
|
||||
recipe = {
|
||||
{'currency:minegeld', 'currency:minegeld'},
|
||||
{'currency:minegeld', 'currency:minegeld'},
|
||||
{"currency:minegeld", "currency:minegeld"},
|
||||
{"currency:minegeld", "currency:minegeld"},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
core.register_craft({
|
||||
output = 'default:paper',
|
||||
output = "default:paper",
|
||||
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({
|
||||
output = 'default:paper',
|
||||
output = "default:paper",
|
||||
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({
|
||||
output = 'default:paper 10',
|
||||
type = 'shapeless',
|
||||
recipe = {'currency:minegeld_bundle'},
|
||||
output = "default:paper 10",
|
||||
type = "shapeless",
|
||||
recipe = {"currency:minegeld_bundle"},
|
||||
})
|
||||
end
|
||||
|
@ -1,43 +1,26 @@
|
||||
--[[ 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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
local function registerDyeRecipes(def)
|
||||
for I, T in pairs(def) do
|
||||
local dye = 'dye:' .. T[1]
|
||||
local dye = "dye:" .. T[1]
|
||||
local ingredients = T[2]
|
||||
-- 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
|
||||
core.log('action', '[antum_overrides]\t' .. ingredients[i])
|
||||
core.log("action", "[antum_overrides]\t" .. ingredients[i])
|
||||
end
|
||||
|
||||
core.register_craft({
|
||||
output = dye,
|
||||
type = 'shapeless',
|
||||
type = "shapeless",
|
||||
recipe = ingredients,
|
||||
})
|
||||
end
|
||||
@ -45,8 +28,8 @@ end
|
||||
|
||||
local dye_defs = {}
|
||||
|
||||
if core.get_modpath('flowers') then
|
||||
table.insert(dye_defs, -1, {'brown 4', {'flowers:mushroom_brown'}})
|
||||
if core.get_modpath("flowers") then
|
||||
table.insert(dye_defs, -1, {"brown 4", {"flowers:mushroom_brown"}})
|
||||
end
|
||||
|
||||
registerDyeRecipes(dye_defs)
|
||||
|
@ -1,19 +1,19 @@
|
||||
--[[ LICENSE HEADER
|
||||
|
||||
MIT Licensing
|
||||
|
||||
Copyright © 2017 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
]]
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
if antum.dependsSatisfied({'ethereal',}) then
|
||||
if antum.dependsSatisfied({"ethereal",}) then
|
||||
antum.overrideCraftOutput({
|
||||
output = 'ethereal:bowl',
|
||||
output = "ethereal:bowl",
|
||||
recipe = {
|
||||
{'group:tree', '', 'group:tree'},
|
||||
{'', 'group:tree', ''},
|
||||
{"group:tree", "", "group:tree"},
|
||||
{"", "group:tree", ""},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
@ -1,27 +1,10 @@
|
||||
--[[ LICENSE HEADER
|
||||
|
||||
MIT License
|
||||
The MIT License (MIT)
|
||||
|
||||
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.
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
|
@ -1,37 +1,20 @@
|
||||
--[[ 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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
antum.clearCraftOutput("helicopter:cabin")
|
||||
|
||||
antum.registerCraft({
|
||||
output = 'helicopter:cabin',
|
||||
output = "helicopter:cabin",
|
||||
recipe = {
|
||||
{'default:steel_ingot', 'default:steel_ingot', ''},
|
||||
{'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", "homedecor:motor","default:glass"},
|
||||
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
||||
}
|
||||
})
|
||||
|
@ -1,38 +1,21 @@
|
||||
--[[ 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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
local depends_satisfied = true
|
||||
|
||||
local depends = {
|
||||
'antum',
|
||||
'antum_items',
|
||||
'bucket',
|
||||
'default',
|
||||
'vessels',
|
||||
"antum",
|
||||
"antum_items",
|
||||
"bucket",
|
||||
"default",
|
||||
"vessels",
|
||||
}
|
||||
|
||||
for I in pairs(depends) do
|
||||
@ -42,76 +25,11 @@ for I in pairs(depends) do
|
||||
end
|
||||
|
||||
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({
|
||||
output = 'invisibility:potion',
|
||||
type = 'shapeless',
|
||||
output = "invisibility:potion",
|
||||
type = "shapeless",
|
||||
recipe = {
|
||||
'antum:bottled_water', 'default:mese_crystal_fragment',
|
||||
"antum:bottled_water", "default:mese_crystal_fragment",
|
||||
},
|
||||
})
|
||||
end
|
||||
|
@ -1,43 +1,12 @@
|
||||
--[[ LICENSE HEADER
|
||||
|
||||
MIT License
|
||||
The MIT License (MIT)
|
||||
|
||||
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.
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
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)
|
||||
for _, iname in pairs(items) do
|
||||
|
@ -1 +0,0 @@
|
||||
Overrides of craft recipes, items, etc. from other mods for the Antum game.
|
@ -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
|
@ -1,45 +1,23 @@
|
||||
--[[ 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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
-- 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.modname = core.get_current_modname()
|
||||
antum.overrides.modpath = core.get_modpath(antum.overrides.modname)
|
||||
|
||||
--local scripts = {
|
||||
antum.loadScripts({
|
||||
'items',
|
||||
'entities',
|
||||
'misc',
|
||||
'nodes',
|
||||
'crafting',
|
||||
'temp_fixes',
|
||||
"items",
|
||||
"misc",
|
||||
"nodes",
|
||||
"crafting",
|
||||
})
|
||||
|
||||
|
||||
|
@ -1,27 +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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
|
@ -1,27 +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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
@ -29,9 +12,8 @@ local modoverrides = {
|
||||
"walking_light",
|
||||
}
|
||||
|
||||
for I in pairs(modoverrides) do
|
||||
local modname = modoverrides[I]
|
||||
if core.get_modpath(modname) then
|
||||
antum.loadScript('misc/' .. modname)
|
||||
for _, mo in ipairs(modoverrides) do
|
||||
if core.get_modpath(mo) then
|
||||
antum.loadScript("misc/" .. mo)
|
||||
end
|
||||
end
|
||||
|
@ -1,60 +1,36 @@
|
||||
--[[ 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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
local addLightItems = function(mod, itemlist)
|
||||
if core.get_modpath(mod) then
|
||||
for I in pairs(itemlist) do
|
||||
walking_light.addLightItem(mod .. ':' .. itemlist[I])
|
||||
for _, i in ipairs(itemlist) do
|
||||
walking_light.addLightItem(mod .. ":" .. i)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
-- Illuminate glow_glass & super_glow_glass
|
||||
addLightItems('moreblocks', {
|
||||
'glow_glass', 'super_glow_glass',
|
||||
addLightItems("moreblocks", {
|
||||
"glow_glass", "super_glow_glass",
|
||||
})
|
||||
|
||||
|
||||
-- Illuminate homedecor candles
|
||||
addLightItems('homedecor', {
|
||||
'candle', 'candle_thin', 'candlestick_brass',
|
||||
'candlestick_wrought_iron',
|
||||
addLightItems("homedecor", {
|
||||
"candle", "candle_thin", "candlestick_brass",
|
||||
"candlestick_wrought_iron",
|
||||
})
|
||||
|
||||
|
||||
-- Illuminate ethereal:candle
|
||||
addLightItems('ethereal', {
|
||||
'candle',
|
||||
addLightItems("ethereal", {
|
||||
"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
|
||||
--]]
|
||||
|
@ -3,4 +3,3 @@ author = AntumDeluge
|
||||
description = Customizations & overrides for the Minetest Antum game
|
||||
license = MIT
|
||||
version = 0.1
|
||||
depends = antum
|
||||
|
@ -1,37 +1,19 @@
|
||||
--[[ 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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
local modoverrides = {
|
||||
'ethereal',
|
||||
"ethereal",
|
||||
}
|
||||
|
||||
for I in pairs(modoverrides) do
|
||||
local modname = modoverrides[I]
|
||||
if core.get_modpath(modname) then
|
||||
antum.loadScript('nodes/' .. modname)
|
||||
for _, mo in ipairs(modoverrides) do
|
||||
if core.get_modpath(mo) then
|
||||
antum.loadScript("nodes/" .. mo)
|
||||
end
|
||||
end
|
||||
|
@ -1,40 +1,23 @@
|
||||
--[[ 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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
-- Return default tree leaves back to original except make walkable (collides)
|
||||
|
||||
core.override_item('default:leaves', {
|
||||
core.override_item("default:leaves", {
|
||||
description = "Leaves",
|
||||
drawtype = 'allfaces_optional',
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 1,
|
||||
visual_scale = 1.3,
|
||||
tiles = {'default_leaves.png'},
|
||||
special_tiles = {'default_leaves_simple.png'},
|
||||
paramtype = 'light',
|
||||
tiles = {"default_leaves.png"},
|
||||
special_tiles = {"default_leaves_simple.png"},
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
||||
drop = {
|
||||
@ -42,13 +25,13 @@ core.override_item('default:leaves', {
|
||||
items = {
|
||||
{
|
||||
-- player will get sapling with 1/20 chance
|
||||
items = {'default:sapling'},
|
||||
items = {"default:sapling"},
|
||||
rarity = 20,
|
||||
},
|
||||
{
|
||||
-- player will get leaves only if he get no saplings,
|
||||
-- this is because max_items is 1
|
||||
items = {'default:leaves'},
|
||||
items = {"default:leaves"},
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -58,14 +41,14 @@ core.override_item('default:leaves', {
|
||||
walkable = true,
|
||||
})
|
||||
|
||||
core.override_item('default:jungleleaves', {
|
||||
core.override_item("default:jungleleaves", {
|
||||
description = "Jungle Leaves",
|
||||
drawtype = 'allfaces_optional',
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 1,
|
||||
visual_scale = 1.3,
|
||||
tiles = {'default_jungleleaves.png'},
|
||||
special_tiles = {'default_jungleleaves_simple.png'},
|
||||
paramtype = 'light',
|
||||
tiles = {"default_jungleleaves.png"},
|
||||
special_tiles = {"default_jungleleaves_simple.png"},
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
||||
drop = {
|
||||
@ -73,13 +56,13 @@ core.override_item('default:jungleleaves', {
|
||||
items = {
|
||||
{
|
||||
-- player will get sapling with 1/20 chance
|
||||
items = {'default:sapling'},
|
||||
items = {"default:sapling"},
|
||||
rarity = 20,
|
||||
},
|
||||
{
|
||||
-- player will get leaves only if he get no saplings,
|
||||
-- this is because max_items is 1
|
||||
items = {'default:leaves'},
|
||||
items = {"default:leaves"},
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -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
|
@ -1,2 +0,0 @@
|
||||
override
|
||||
default?
|
@ -1 +0,0 @@
|
||||
A simple mod for the Antum game to replace some items that have been removed from mod updates.
|
@ -1,3 +1,6 @@
|
||||
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
|
||||
|
@ -1,27 +1,10 @@
|
||||
--[[ LICENSE HEADER
|
||||
|
||||
MIT License
|
||||
The MIT License (MIT)
|
||||
|
||||
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.
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
|
@ -1,27 +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.
|
||||
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2017-2021 Jordan Irwin (AntumDeluge)
|
||||
|
||||
See: LICENSE.txt
|
||||
--]]
|
||||
|
||||
|
||||
@ -30,4 +13,4 @@ antum.spawneggs = {}
|
||||
antum.spawneggs.modname = core.get_current_modname()
|
||||
antum.spawneggs.modpath = core.get_modpath(antum.spawneggs.modname)
|
||||
|
||||
antum.loadScript('eggs')
|
||||
antum.loadScript("eggs")
|
||||
|
Loading…
x
Reference in New Issue
Block a user