Remove extra mods from 'antum' modpack

This commit is contained in:
AntumDeluge 2017-07-24 17:50:24 -07:00
parent 04dde006a1
commit d94a105d65
80 changed files with 0 additions and 2403 deletions

View File

@ -1,9 +0,0 @@
## Antum API
--
### Available functions
- antum.log(level, message)
-

View File

@ -1,263 +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.
--]]
-- Displays a message in the log
function antum.log(level, message)
core.log(level, '[' .. core.get_current_modname() .. '] ' .. message)
end
function antum.logAction(message)
antum.log('action', message)
end
function antum.logWarn(message)
antum.log('warning', message)
end
function antum.logError(message)
antum.log('error', message)
end
-- Checks if a file exists
function antum.fileExists(file_path)
local fexists = io.open(file_path, 'r')
if fexists == nil then
return false
end
return true
end
-- Retrieves path for currently loaded mod
function antum.getCurrentModPath()
return core.get_modpath(core.get_current_modname())
end
--[[
Loads a mod sub-script.
@param script_name
Name or base name of the script file
@param lua_ext
type: bool
default: true
description: If 'true', appends '.lua' extension to script filename
]]--
function antum.loadScript(script_name, lua_ext)
-- Default 'true'
if lua_ext == nil then
lua_ext = true
end
local script = antum.getCurrentModPath() .. '/' .. script_name
if lua_ext then
script = script .. '.lua'
end
if antum.fileExists(script) then
dofile(script)
else
antum.logError('Could not load, script does not exists: ' .. script)
end
end
-- Loads multiple mod sub-scripts
function antum.loadScripts(script_list)
for I in pairs(script_list) do
antum.loadScript(script_list[I])
end
end
-- Registers a craft & displays a log message
function antum.registerCraft(def)
if antum.verbose then
antum.logAction('Registering craft recipe for "' .. def.output .. '"')
end
core.register_craft(def)
end
-- De-registers a craft by output
function antum.clearCraftOutput(output)
if antum.verbose then
antum.logAction('Clearing craft by output: ' .. output)
end
core.clear_craft({
output = output
})
end
-- De-registers craft by recipe
function antum.clearCraftRecipe(recipe)
if antum.verbose then
local recipe_string = ''
local icount = 0
for I in pairs(recipe) do
icount = icount + 1
end
for I in pairs(recipe) do
if I == icount then
recipe_string = recipe_string .. ' ' .. recipe[I]
elseif I > 1 then
recipe_string = recipe_string .. ' + ' .. recipe[I]
else
recipe_string = recipe[I]
end
end
antum.logAction(' Clearing craft by recipe: ' .. recipe_string)
end
core.clear_craft({
recipe = {recipe}
})
end
-- Overrides a previously registered craft using output
function antum.overrideCraftOutput(def)
antum.clearCraftOutput(def.output)
antum.registerCraft(def)
end
-- Overrides a previously registered craft using recipe
function antum.overrideCraftRecipe(def)
antum.clearCraftRecipe(def.replace)
antum.registerCraft(def)
end
-- Checks if dependencies are satisfied
function antum.dependsSatisfied(depends)
for index, dep in ipairs(depends) do
if not core.get_modpath(dep) then
return false
end
end
return true
end
--[[
Retrieves an item from registered items using name string.
@param item_name
Item name string to search for
@return
Item object with name matching 'item_name' parameter
]]
function antum.getItem(item_name)
for index in pairs(core.registered_items) do
if core.registered_items[index].name == item_name then
return core.registered_items[index]
end
end
end
--[[
Retrieves a list of items containing a string.
@param substring
String to match within item names
@param case_sensitive
If 'true', 'substring' case must match that of item name
@return
List of item names matching 'substring'
]]--
function antum.getItemNames(substring, case_sensitive)
antum.logAction('Checking registered items for "' .. substring .. '" in item name ...')
-- Convert to lowercase
if not case_sensitive then
substring = string.lower(substring)
end
local item_names = {}
for index in pairs(core.registered_items) do
local item_name = core.registered_items[index].name
if not case_sensitive then
item_name = string.lower(item_name)
end
-- Check item name for substring
if string.find(item_name, substring) then
table.insert(item_names, item_name)
end
end
return item_names
end
--[[
Un-registers an item & converts its name to an alias.
@param item_name
Name of the item to override
@param alias_of
Name of the item to be aliased
]]
function antum.convertItemToAlias(item_name, alias_of)
antum.logAction('Overridding "' .. item_name .. '" with "' .. alias_of .. '"')
core.unregister_item(item_name)
core.register_alias(item_name, alias_of)
end
--[[
Changes object description.
@param item_name
Name of item to be altered
@param description
New string description value
]]
function antum.overrideItemDescription(item_name, description)
-- Original item definition
local item = antum.getItem(item_name)
-- Change description
item.description = description
-- Unregister original item
core.unregister_item(item.name)
core.register_craftitem(':' .. item.name, item)
end

View File

@ -1,39 +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.
--]]
local thread_depends = {
'farming',
'wool',
}
if antum.dependsSatisfied(thread_depends) then
antum.registerCraft({
type = 'shapeless',
output = 'farming:cotton 4',
recipe = {'group:wool'},
})
end

View File

@ -1,7 +0,0 @@
bucket?
craft_guide?
farming?
vessels?
wool?
mobs_animal?
animalmaterials?

View File

@ -1 +0,0 @@
Customizations related to the Antum game.

View File

@ -1,50 +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 = {}
antum.modname = core.get_current_modname()
antum.modpath = core.get_modpath(antum.modname)
antum.verbose = false
if core.settings:get_bool('log_mods') then
antum.verbose = true
end
-- Load API functions first
dofile(antum.modpath .. '/api.lua')
-- Other scripts to load
local scripts = {
'items',
'crafting',
}
for index, script_name in pairs(scripts) do
antum.loadScript(script_name)
end

View File

@ -1,81 +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.
--]]
-- Feather
--[[
The following mods have 'feather' items & should be added as soft dependencies to be overridden:
- mobs_animal
- animalmaterials
]]
local feathers = antum.getItemNames('feather')
for index, feather in ipairs(feathers) do
antum.convertItemToAlias(feather, 'antum:feather')
end
core.register_craftitem(':antum:feather', {
description = 'Feather',
inventory_image = 'antum_feather_white.png',
})
core.register_alias('antum:feather_white', 'antum:feather')
local depends_satisfied = true
local depends = {
'bucket',
'vessels',
}
for I in pairs(depends) do
if not core.get_modpath(depends[I]) then
depends_satisfied = false
end
end
core.register_craftitem(':antum:bottled_water', {
description = 'A bottle of water',
inventory_image = 'bottled_water.png',
})
if depends_satisfied then
antum.registerCraft({
output = 'antum:bottled_water',
type = 'shapeless',
recipe = {
'bucket:bucket_water', 'vessels:glass_bottle',
},
replacements = {
{'bucket:bucket_water', 'bucket:bucket_empty'},
},
})
else
antum.logWarn(antum.modname, 'Not registering craft for "' .. antum.modname .. ':bottled_water", dependency not satisfied')
end

View File

@ -1,5 +0,0 @@
name = antum_core
author = AntumDeluge
description = Customizations related to the Antum game.
license = MIT
version = 0.1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 B

View File

@ -1,46 +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.
--]]
-- Nyan cat blocks
antum.registerCraft({
output = "default:nyancat_rainbow",
recipe = {
{'', 'dye:red', '',},
{'dye:violet', 'group:wood', 'dye:yellow',},
{'', 'dye:blue', '',},
}
})
-- Walking light items
antum.registerCraft({
output = 'walking_light:helmet_gold',
recipe = {
{'default:torch'},
{'3d_armor:helmet_gold'},
}
})

View File

@ -1,4 +0,0 @@
3d_armor
antum_core
default
unifieddyes

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.craft = {}
antum.craft.modname = core.get_current_modname()
antum.craft.modpath = core.get_modpath(antum.craft.modname)
-- Load sub-scripts
local scripts = {
'items',
'crafting',
}
for I in pairs(scripts) do
antum.loadScript(scripts[I])
end

View File

@ -1,41 +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.
--]]
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',
}
)
--]]

View File

@ -1,5 +0,0 @@
name = antum_craft
author = AntumDeluge
description = Custom craft recipes for the Antum game.
license = MIT
version = 0.1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 893 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 B

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_core

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,36 +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.
--]]
for I in pairs(antum.glass.colors) do
local color = antum.glass.colors[I]
antum.registerCraft({
output = 'glass:' .. color,
type = 'shapeless',
recipe = {'default:glass', 'dye:' .. color},
})
end

View File

@ -1,5 +0,0 @@
antum_core
default
dye
craft_guide?
moreblocks?

View File

@ -1,38 +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.glass = {}
antum.glass.modname = core.get_current_modname()
antum.glass.modpath = core.get_modpath(antum.glass.modname)
antum.glass.colors = {'blue', 'green', 'red', 'violet'}
antum.loadScripts({
'nodes',
'crafting',
})

View File

@ -1,5 +0,0 @@
name = antum_glass
author = AntumDeluge
description = More glass colors for the Antum Minetest game.
license = MIT
version = 0.1

View File

@ -1,133 +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.
--]]
local function registerGroupAliases(group)
for I in pairs(group) do
local source = group[I][1]
local alias = group[I][2]
-- DEBUG
antum.logAction('Registering alias: ' .. alias .. ' -> ' .. source)
core.register_alias(alias, source)
end
end
local group_glass = {} -- Local glass is already in this group
local group_panes = {}
local function appendGroupGlass(source, suffix)
local suffix = 'glass:' .. suffix
table.insert(group_glass, -1, {source, suffix})
end
local function appendGroupPanes(source, suffix)
local suffix = 'glass_panes:' .. suffix
table.insert(group_panes, -1, {source, suffix})
end
for I in pairs(antum.glass.colors) do
local color = antum.glass.colors[I]
core.register_node(':glass:' .. color, {
description = color:gsub('^%l', string.upper) .. ' Glass',
drawtype = 'glasslike_framed_optional',
tiles = {'glass_' .. color .. '.png', 'glass_' .. color .. '_detail.png'},
paramtype = 'light',
sunlight_propagates = true,
is_ground_content = false,
groups = {cracky = 3, oddly_breakable_by_hand = 3},
sounds = default.node_sound_glass_defaults(),
})
end
-- Local glass is already part of 'glass' group
for I in pairs(antum.glass.colors) do
--table.insert(group_panes, -1, {'glass:' .. antum.glass.colors[I], 'glass_panes:' .. antum.glass.colors[I]})
local source = 'glass:' .. antum.glass.colors[I]
local suffix = antum.glass.colors[I]
appendGroupPanes(source, suffix)
end
if core.get_modpath('default') then
local source = 'default:glass'
local suffix = 'glass'
appendGroupGlass(source, suffix)
appendGroupPanes(source, suffix)
end
if core.get_modpath('moreblocks') then
local panes = {
'clean', 'coal', 'glow', 'iron', 'super_glow',
'trap', 'trap_glow', 'trap_super_glow',
}
for I in pairs(panes) do
local source = 'moreblocks:' .. panes[I] .. '_glass'
local suffix = panes[I]
appendGroupGlass(source, suffix)
appendGroupPanes(source, suffix)
end
--[[ -- Clean glass
local source = 'moreblocks:clean_glass
table.insert(group_glass, -1, {'moreblocks:clean_glass', 'glass:clean'})
table.insert(group_panes, -1, {'moreblocks:clean_glass', 'glass_panes:clean'})
-- Coal glass
table.insert(group_glass, -1, {'moreblocks:coal_glass', 'glass:coal'})
table.insert(group_panes, -1, {'moreblocks:coal_glass', 'glass_panes:coal'})
-- Glow glass
table.insert(group_glass, -1, {'moreblocks:glow_glass', 'glass:glow'})
table.insert(group_panes, -1, {'moreblocks:glow_glass', 'glass_panes:glow'})
-- Iron glass
table.insert(group_glass, -1, {'moreblocks:iron_glass', 'glass:iron'})
table.insert(group_panes, -1, {'moreblocks:iron_glass', 'glass_panes:iron'})
-- Super glow glass
table.insert(group_glass, -1, {'moreblocks:super_glow_glass', 'glass:super_glow'})
table.insert(group_panes, -1, {'moreblocks:super_glow_glass', 'glass_panes:super_glow'})
-- Trap glass
table.insert(group_glass, -1, {'moreblocks:trap_glass', 'glass:trap'})
table.insert(group_panes, -1, {'moreblocks:trap_glass', 'glass_panes:trap'})
-- Trap glow glass
table.insert(group_glass, -1, {'moreblocks:trap_glow_glass', 'glass:trap_glow'})
table.insert(group_panes, -1, {'moreblocks:trap_glow_glass', 'glass_panes:trap_glow'})
-- Trap super glow glass
table.insert(group_glass, -1, {'moreblocks:trap_super_glow_glass', 'glass:trap_super_glow'})
table.insert(group_panes, -1, {'moreblocks:trap_super_glow_glass', 'glass_panes:trap_super_glow'})
--]]
end
registerGroupAliases(group_glass)
registerGroupAliases(group_panes)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

View File

@ -1,31 +0,0 @@
*Antum Overrides*
***Overrides for the [Antum game][antum_game] for [Minetest][minetest]***
License: [MIT][lic.mit]
Texture Information:
[antum_fish_cooked.png] & [antum_fish_raw.png][]:
* License: CC0
* Author: gnokii
* Source: [OpenClipart Library][OCL fish]
[antum_meat_cooked.png][] & [antum_meat_raw.png][]:
* License: CC0
* Author: marauder
* Source: [OpenClipart Library][OCL meat]
[OCL fish]: https://openclipart.org/detail/133141/sashimi
[OCL meat]: https://openclipart.org/detail/211419/fleischkeule
[antum_fish_cooked.png]: textures/antum_fish_cooked.png
[antum_fish_raw.png]: textures/antum_fish_raw.png
[antum_meat_cooked.png]: textures/antum_meat_cooked.png
[antum_meat_raw.png]: textures/antum_meat_raw.png
[lic.mit]: ../LICENSE.txt
[antum_game]: https://github.com/AntumDeluge/minetest-game-antum
[minetest]: http://minetest.net/

View File

@ -1,47 +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.
--]]
local modoverrides = {
'bags',
'carts',
'castle_weapons',
'craftguide',
'dye',
'farming',
'helicopter',
'invisibility',
}
for index, modname in ipairs(modoverrides) do
if core.get_modpath(modname) then
if antum.verbose then
antum.logAction('DEBUG: found mod \"' .. modname .. '\"')
end
antum.loadScript('crafting/' .. modname)
end
end

View File

@ -1,116 +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.
--]]
local bags = {}
bags.depends = {
'animalmaterials',
'farming',
}
bags.satisfied = true
for I in pairs(bags.depends) do
if not core.get_modpath(bags.depends[I]) then
bags.satisfied = false
end
end
if bags.satisfied then
core.clear_craft({
recipe = {
{"", "default:stick", ""},
{"default:wood", "default:wood", "default:wood"},
{"default:wood", "default:wood", "default:wood"},
},
})
core.clear_craft({
recipe = {
{"bags:small", "bags:small"},
{"bags:small", "bags:small"},
},
})
core.clear_craft({
recipe = {
{"bags:medium", "bags:medium"},
{"bags:medium", "bags:medium"},
},
})
-- Small bag
antum.registerCraft({
output = 'bags:small',
recipe = {
{'farming:cotton', '', '',},
{'group:fur', 'group:fur', '',},
{'group:fur', 'group:fur', '',},
}
})
antum.registerCraft({
output = 'bags:small',
recipe = {
{'', 'farming:cotton', '',},
{'group:fur', 'group:fur', '',},
{'group:fur', 'group:fur', '',},
}
})
-- Medium bag
antum.registerCraft({
output = 'bags:medium',
recipe = {
{'farming:cotton', '', '',},
{'bags:small', 'bags:small', '',},
{'bags:small', 'bags:small', '',},
}
})
antum.registerCraft({
output = 'bags:medium',
recipe = {
{'', 'farming:cotton', '',},
{'bags:small', 'bags:small', '',},
{'bags:small', 'bags:small', '',},
}
})
-- Large bag
antum.registerCraft({
output = 'bags:large',
recipe = {
{'farming:cotton', '', '',},
{'bags:medium', 'bags:medium', '',},
{'bags:medium', 'bags:medium', '',},
}
})
antum.registerCraft({
output = 'bags:large',
recipe = {
{'', 'farming:cotton', '',},
{'bags:medium', 'bags:medium', '',},
{'bags:medium', 'bags:medium', '',},
}
})
end

View File

@ -1,47 +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.
--]]
local depends_satisfied = true
local depends = {
'default',
}
for I in pairs(depends) do
if not core.get_modpath(depends[I]) then
depends_satisfied = false
end
end
if depends_satisfied then
antum.registerCraft({
output = 'carts:powerrail',
type = 'shapeless',
recipe = {
'default:rail', 'default:mese_crystal_fragment',
}
})
end

View File

@ -1,56 +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.
--]]
-- ** castle_weapons **
-- Recipe for 'throwing:arrow' conflicts with 'castle_weapons:crossbow_bolt'
-- TODO: 'antum:feather' item should be moved to 'antum_items' mod
if antum.dependsSatisfied({'throwing', 'antum_core'}) then
-- TODO: Possible alternate solutions:
-- * Allow 'throwing:arrow' to be used as ammo for 'castle_weapons:crossbow'
-- FIXME: Cannot use 'antum.overrideCraftOutput' because 'core.clear_craft' does not allow
-- clearing craft by output with quantity. E.g., 'castle_weapons:crossbow_bolt 6'.
-- - Solution 1: Parse whitespace in 'output'
antum.clearCraftOutput('castle_weapons:crossbow_bolt')
-- New recipe
antum.registerCraft({
output = 'castle_weapons:crossbow_bolt 6',
recipe = {
{'antum:feather', 'default:stick', 'default:steel_ingot'},
},
})
-- Same recipe but reversed
antum.registerCraft({
output = 'castle_weapons:crossbow_bolt 6',
recipe = {
{'default:steel_ingot', 'default:stick', 'antum:feather'},
},
})
end

View File

@ -1,74 +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.
--]]
-- Override craftguide:sign
antum.overrideCraftOutput({
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'},
})
antum.registerCraft({
output = 'craftguide:sign',
recipe = {
{'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'},
})
-- Alternate recipes for craftguide:book
antum.registerCraft({
type = 'shapeless',
output = 'craftguide:book',
recipe = {'default:book', 'craftguide:sign'},
})
antum.registerCraft({
type = 'shapeless',
output = 'craftguide:book',
recipe = {'default:book_written', 'default:paper'},
})
antum.registerCraft({
type = 'shapeless',
output = 'craftguide:book',
recipe = {'default:book_written', 'craftguide:sign'},
})

View File

@ -1,52 +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.
--]]
local function registerDyeRecipes(def)
for I, T in pairs(def) do
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:')
for i in pairs(ingredients) do
core.log('action', '[antum_overrides]\t' .. ingredients[i])
end
core.register_craft({
output = dye,
type = 'shapeless',
recipe = ingredients,
})
end
end
local dye_defs = {}
if core.get_modpath('flowers') then
table.insert(dye_defs, -1, {'brown 4', {'flowers:mushroom_brown'}})
end
registerDyeRecipes(dye_defs)

View File

@ -1,51 +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.
--]]
local cotton = {}
cotton.dependencies = {"wool"}
cotton.aliases = {"thread", "string"}
cotton.dependencies.satisfied = false
for dep in pairs(cotton.dependencies) do
if core.get_modpath(dep) then
cotton.dependencies.satisfied = true
end
end
if cotton.dependencies.satisfied then
-- Craft cotton from white wool
antum.registerCraft({
output = "farming:cotton 4",
type = "shapeless",
recipe = {"wool:white"},
})
-- Add aliases for cotton
for alias in pairs(cotton.aliases) do
core.register_alias("farming:" .. alias, "farming:cotton")
end
end

View File

@ -1,37 +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.clearCraftOutput("helicopter:cabin")
antum.registerCraft({
output = 'helicopter:cabin',
recipe = {
{'', 'group:wood', ''},
{'group:wood', 'homedecor:motor','default:glass'},
{'group:wood','group:wood','group:wood'},
}
})

View File

@ -1,116 +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.
--]]
local depends_satisfied = true
local depends = {
'antum',
'bucket',
'default',
'vessels',
}
for I in pairs(depends) do
if not core.get_modpath(depends[I]) then
depends_satisfied = false
end
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',
recipe = {
'antum:bottled_water', 'default:mese_crystal_fragment',
},
})
end

View File

@ -1,23 +0,0 @@
antum_core
default
animalmaterials?
bags?
carts?
castle_weapons?
dye?
ethereal?
farming?
flowers?
helicopter?
invisibility?
mobs?
moreblocks?
simple_protection?
stairsplus?
throwing?
unifieddyes?
vessels?
walking_light?
wool?
craftguide?
craft_guide?

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,43 +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.
--]]
-- 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',
})

View File

@ -1,40 +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.
--]]
local modoverrides = {
'animalmaterials',
'cooking',
'mobs',
'simple_protection',
}
for I in pairs(modoverrides) do
local modname = modoverrides[I]
if core.get_modpath(modname) then
antum.loadScript('items/' .. modname)
end
end

View File

@ -1,98 +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.
--]]
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if core.global_exists("intllib") then
dofile(core.get_modpath("intllib").."/intllib.lua")
if intllib.make_gettext_pair then
S = intllib.make_gettext_pair("animalmaterials")
else
S = intllib.Getter("animalmaterials")
end
else
S = function ( s ) return s end
end
-- ITEMS THAT SHOULD NOT BE AVAILABLE IN ANTUM GAME
local delete_items = {
'feather',
}
for I in pairs(delete_items) do
core.unregister_item('animalmaterials:' .. delete_items[I])
end
-- OVERRIDING CRAFT ITEMS
-- Fish
core.register_craftitem(':animalmaterials:fish_bluewhite', {
description = 'Raw Bluewhite Fish',
image = 'fish_raw.png',
on_use = core.item_eat(1),
groups = { meat=1, eatable=1 },
stack_max = 25
})
core.register_alias('fish_bluewhite_raw', 'animalmaterials:fish_bluewhite')
core.register_craftitem(':animalmaterials:fish_clownfish', {
description = 'Raw Clownfish',
image = 'fish_raw.png',
on_use = core.item_eat(1),
groups = { meat=1, eatable=1 },
stack_max = 25
})
core.register_alias('clownfish_raw', 'animalmaterials:fish_clownfish')
-- Fur group
core.register_craftitem(":animalmaterials:fur", {
description = S("Fur"),
image = "animalmaterials_fur.png",
stack_max=25,
groups = {fur = 1},
})
core.register_craftitem(":animalmaterials:fur_deer", {
description = S("Deer fur"),
image = "animalmaterials_deer_fur.png",
stack_max=10,
groups = {fur = 1},
})
core.register_craftitem(":animalmaterials:coat_cattle", {
description = S("Cattle coat"),
image = "animalmaterials_cattle_coat.png",
stack_max=10,
groups = {fur = 1},
})

View File

@ -1,46 +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.
--]]
core.register_craftitem(':cooking:fish_bluewhite_cooked', {
description = 'Cooked Bluewhite Fish',
image = 'fish_cooked.png',
on_use = core.item_eat(6),
groups = { meat=1 , eatable=1},
stack_max = 25
})
core.register_alias('fish_bluewhite_cooked', 'cooking:fish_bluewhite_cooked')
core.register_craftitem(':cooking:fish_clownfish_cooked', {
description = 'Cooked Clownfish',
image = 'fish_cooked.png',
on_use = core.item_eat(6),
groups = { meat=1 , eatable=1},
stack_max = 25
})
core.register_alias('clownfish_cooked', 'cooking:fish_clownfish_cooked')

View File

@ -1,51 +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.
--]]
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if core.global_exists("intllib") then
dofile(core.get_modpath("intllib").."/intllib.lua")
if intllib.make_gettext_pair then
S = intllib.make_gettext_pair("mobs")
else
S = intllib.Getter("mobs")
end
else
S = function ( s ) return s end
end
-- OVERRIDING CRAFT ITEMS
-- Fur group
core.register_craftitem(":mobs:leather", {
description = S("Leather"),
inventory_image = "mobs_leather.png",
groups = {fur = 1},
})

View File

@ -1,32 +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.
--]]
local sp = 'simple_protection'
local sp_claim = sp .. ':claim'
core.register_alias(sp .. ':claim_stick', sp_claim)
core.register_alias('claim_stick', sp_claim)

View File

@ -1,37 +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.
--]]
local modoverrides = {
"walking_light",
}
for I in pairs(modoverrides) do
local modname = modoverrides[I]
if core.get_modpath(modname) then
antum.loadScript('misc/' .. modname)
end
end

View File

@ -1,60 +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.
--]]
local addLightItems = function(mod, itemlist)
if core.get_modpath(mod) then
for I in pairs(itemlist) do
walking_light.addLightItem(mod .. ':' .. itemlist[I])
end
end
end
-- Illuminate 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',
})
-- Illuminate 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
--]]

View File

@ -1,5 +0,0 @@
name = antum_overrides
author = AntumDeluge
description = Customizations & overrides for the Minetest Antum game
license = MIT
version = 0.1

View File

@ -1,37 +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.
--]]
local modoverrides = {
'ethereal',
}
for I in pairs(modoverrides) do
local modname = modoverrides[I]
if core.get_modpath(modname) then
antum.loadScript('nodes/' .. modname)
end
end

View File

@ -1,90 +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.
--]]
-- Return default tree leaves back to original except make walkable (collides)
core.override_item('default:leaves', {
description = "Leaves",
drawtype = 'allfaces_optional',
waving = 1,
visual_scale = 1.3,
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 = {
max_items = 1,
items = {
{
-- player will get sapling with 1/20 chance
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'},
}
}
},
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
walkable = true,
})
core.override_item('default:jungleleaves', {
description = "Jungle Leaves",
drawtype = 'allfaces_optional',
waving = 1,
visual_scale = 1.3,
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 = {
max_items = 1,
items = {
{
-- player will get sapling with 1/20 chance
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'},
}
}
},
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
walkable = true,
})

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 +0,0 @@
The texture pack for the Antum Minetest/Freeminer game.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 633 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB