Add modpack files

This commit is contained in:
AntumDeluge 2017-05-03 16:49:44 -07:00
parent 36de8c8664
commit ceb8f471ce
87 changed files with 2429 additions and 0 deletions

1
antum/description.txt Normal file
View File

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

54
antum/functions.lua Normal file
View File

@ -0,0 +1,54 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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_action(mod, message)
minetest.log('action', '[' .. mod .. '] ' .. message)
end
-- Checks if a file exists
function antum.file_exists(file_path)
local fexists = io.open(file_path, 'r')
if fexists == nil then
minetest.log('error', '[' .. antum.modname .. '] Could not load script: ' .. file_path)
return false
end
return true
end
-- Loads a mod sub-script
function antum.load_script(mod_path, script_name)
local script = mod_path .. '/' .. script_name .. '.lua'
if antum.file_exists(script) then
dofile(script)
end
end

33
antum/init.lua Normal file
View File

@ -0,0 +1,33 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 = minetest.get_current_modname()
antum.modpath = minetest.get_modpath(antum.modname)
dofile(antum.modpath .. '/' .. 'functions.lua')

5
antum/mod.conf Normal file
View File

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

46
craft/crafting.lua Normal file
View File

@ -0,0 +1,46 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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
minetest.register_craft({
output = "default:nyancat_rainbow",
recipe = {
{'', 'dye:red', '',},
{'dye:violet', 'group:wood', 'dye:yellow',},
{'', 'dye:blue', '',},
}
})
-- Walking light items
minetest.register_craft({
output = 'walking_light:helmet_gold',
recipe = {
{'default:torch'},
{'3d_armor:helmet_gold'},
}
})

4
craft/depends.txt Normal file
View File

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

42
craft/init.lua Normal file
View File

@ -0,0 +1,42 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 = minetest.get_current_modname()
antum.craft.modpath = minetest.get_modpath(antum.craft.modname)
-- Load sub-scripts
local scripts = {
'items',
'crafting',
}
for I in pairs(scripts) do
antum.load_script(antum.craft.modpath, scripts[I])
end

41
craft/items.lua Normal file
View File

@ -0,0 +1,41 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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.
--]]
minetest.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',
}
)
--]]

5
craft/mod.conf Normal file
View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 893 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

View File

@ -0,0 +1,58 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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

@ -0,0 +1,28 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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

@ -0,0 +1,45 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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

@ -0,0 +1,42 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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
entities/depends.txt Normal file
View File

@ -0,0 +1 @@
antum

1
entities/description.txt Normal file
View File

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

59
entities/init.lua Normal file
View File

@ -0,0 +1,59 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 = minetest.get_current_modname()
antum.entities.modpath = minetest.get_modpath(antum.entities.modname)
local function logAction(message)
minetest.log('action', '[' .. antum.entities.modname .. '] ' .. message)
end
-- Loading entity definitions
logAction('Loading entity definitions ...')
antum.def = {}
local defs = {
'visual', 'movement', 'battle',
}
for I in pairs(defs) do
dofile(antum.entities.modpath .. '/definitions/' .. defs[I] .. '.lua')
end
-- Loading entity types
logAction('Loading entity types ...')
local types = {
'hostile', 'peaceful', 'npc',
}
for I in pairs(types) do
dofile(antum.entities.modpath .. '/types/' .. types[I] .. '.lua')
end

5
entities/mod.conf Normal file
View File

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

View File

@ -0,0 +1,68 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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,
}
minetest.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)--]]

25
entities/types/npc.lua Normal file
View File

@ -0,0 +1,25 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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

@ -0,0 +1,25 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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.
--]]

36
glass/crafting.lua Normal file
View File

@ -0,0 +1,36 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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]
minetest.register_craft({
output = 'glass:' .. color,
type = 'shapeless',
recipe = {'default:glass', 'dye:' .. color},
})
end

5
glass/depends.txt Normal file
View File

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

36
glass/init.lua Normal file
View File

@ -0,0 +1,36 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 = minetest.get_current_modname()
antum.glass.modpath = minetest.get_modpath(antum.glass.modname)
antum.glass.colors = {'blue', 'green', 'red', 'violet'}
dofile(antum.glass.modpath .. '/nodes.lua')
dofile(antum.glass.modpath .. '/crafting.lua')

5
glass/mod.conf Normal file
View File

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

135
glass/nodes.lua Normal file
View File

@ -0,0 +1,135 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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.log_action(antum.glass.modname,
'Registering alias: ' .. alias .. ' -> ' .. source
)
minetest.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]
minetest.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 minetest.get_modpath('default') then
local source = 'default:glass'
local suffix = 'glass'
appendGroupGlass(source, suffix)
appendGroupPanes(source, suffix)
end
if minetest.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.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

0
modpack.txt Normal file
View File

31
overrides/README.md Normal file
View File

@ -0,0 +1,31 @@
*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/

79
overrides/crafting.lua Normal file
View File

@ -0,0 +1,79 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 = function(o)
antum.log_action(antum.overrides.modname, 'Clearing craft by output: ' .. o)
minetest.clear_craft({
output = o
})
end
antum.clearCraftRecipe = function(r)
local recipe_string = ''
local icount = 0
for I in pairs(r) do
icount = icount + 1
end
for I in pairs(r) do
if I == icount then
recipe_string = recipe_string .. ' ' .. r[I]
elseif I > 1 then
recipe_string = recipe_string .. ' + ' .. r[I]
else
recipe_string = r[I]
end
end
antum.log_action(antum.overrides.modname, ' Clearing craft by recipe: ' .. recipe_string)
minetest.clear_craft({
recipe = {r}
})
end
local craftdir = antum.overrides.modpath .. '/crafting'
local modoverrides = {
'bags',
'carts',
'coloredwood',
'craftguide',
'dye',
'farming',
'helicopter',
'invisibility',
-- 'temp-removals',
}
for I in pairs(modoverrides) do
local modname = modoverrides[I]
if minetest.get_modpath(modname) then
antum.log_action(antum.overrides.modname, 'DEBUG: found mod \"' .. modname .. '\"')
dofile(craftdir .. '/' .. modname .. '.lua')
end
end

View File

@ -0,0 +1,86 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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',
}
bags.satisfied = true
for I in pairs(bags.depends) do
if not minetest.get_modpath(bags.depends[I]) then
bags.satisfied = false
end
end
if bags.satisfied then
minetest.clear_craft({
recipe = {
{"", "default:stick", ""},
{"default:wood", "default:wood", "default:wood"},
{"default:wood", "default:wood", "default:wood"},
},
})
minetest.clear_craft({
recipe = {
{"bags:small", "bags:small"},
{"bags:small", "bags:small"},
},
})
minetest.clear_craft({
recipe = {
{"bags:medium", "bags:medium"},
{"bags:medium", "bags:medium"},
},
})
minetest.register_craft({
output = 'bags:small',
recipe = {
{'', 'group:stick', '',},
{'group:fur', 'group:fur', 'group:fur',},
{'group:fur', 'group:fur', 'group:fur',},
}
})
minetest.register_craft({
output = 'bags:medium',
recipe = {
{'bags:small', 'bags:small',},
{'bags:small', 'bags:small',},
{'bags:small', 'bags:small',},
}
})
minetest.register_craft({
output = 'bags:large',
recipe = {
{'bags:medium', 'bags:medium',},
{'bags:medium', 'bags:medium',},
{'bags:medium', 'bags:medium',},
}
})
end

View File

@ -0,0 +1,47 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 minetest.get_modpath(depends[I]) then
depends_satisfied = false
end
end
if depends_satisfied then
minetest.register_craft({
output = 'carts:powerrail',
type = 'shapeless',
recipe = {
'default:rail', 'default:mese_crystal_fragment',
}
})
end

View File

@ -0,0 +1,111 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 registerCWoodCraft = function(color)
local dye_color = 'dye:' .. color
-- Don't register crafts with non-registered ingredients
if minetest.registered_items[dye_color] == nil then
return
end
minetest.register_craft({
type = 'shapeless',
output = 'coloredwood:wood_' .. color,
recipe = {
'group:wood', dye_color,
},
})
end
minetest.register_alias('dye:darkgrey', 'dye:dark_grey')
minetest.register_alias('dye:lightgrey', 'dye:light_grey')
local shadeless_colors = {
'black',
'grey', 'darkgrey', 'lightgrey'
}
for I in pairs(shadeless_colors) do
local color = shadeless_colors[I]
antum.clearCraftOutput('coloredwood:wood_' .. color)
registerCWoodCraft(color)
end
local base_colors = {
'aqua',
'blue',
'cyan',
'green',
'lime',
'magenta',
'orange',
'red',
'redviolet',
'skyblue',
'violet',
'yellow'
}
for I in pairs(base_colors) do
local prefix = 'coloredwood:wood_'
local suffix = '_s50'
local color = base_colors[I]
local s_dark = 'dark_'
local s_med = 'medium_'
local s_light = 'light_'
local basecolor = color
local basecolor_s50 = basecolor .. suffix
local darkcolor = s_dark .. color
local darkcolor_s50 = darkcolor .. suffix
local medcolor = s_med .. color
local medcolor_s50 = medcolor .. suffix
local lightcolor = s_light .. color
local combos = {
basecolor, basecolor_s50,
darkcolor, darkcolor_s50,
medcolor, medcolor_s50,
lightcolor,
}
for I in pairs(combos) do
local output = prefix .. combos[I]
antum.clearCraftOutput(output)
end
registerCWoodCraft(basecolor)
registerCWoodCraft(basecolor_s50)
registerCWoodCraft(darkcolor)
registerCWoodCraft(darkcolor_s50)
registerCWoodCraft(medcolor)
registerCWoodCraft(medcolor_s50)
registerCWoodCraft(lightcolor)
end

View File

@ -0,0 +1,55 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 = {}
depends.craft_guide = "craft_guide"
local dependencies = {depends.craft_guide}
depends.satisfied = false
for D in pairs(dependencies) do
if minetest.get_modpath(dependencies[D]) then
depends.satisfied = true
end
end
if depends.satisfied then
antum.clearCraftOutput("xdecor:crafting_guide")
minetest.register_alias("craftguide:craftguide", "xdecor:crafting_guide")
--minetest.register_alias("craftguide", "xdecor:crafting_guide") -- Alias already taken by "craft_guide:sign_wall"
if minetest.get_modpath(depends.craft_guide) then
minetest.register_craft({
type = "shapeless",
output = "craftguide:craftguide",
recipe = {
"default:book", "craft_guide:sign_wall",
}
})
end
end

View File

@ -0,0 +1,52 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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
minetest.log('action', '[antum_overrides] Registering new recipe for dye:' .. T[1] .. ' with the following ingredients:')
for i in pairs(ingredients) do
minetest.log('action', '[antum_overrides]\t' .. ingredients[i])
end
minetest.register_craft({
output = dye,
type = 'shapeless',
recipe = ingredients,
})
end
end
local dye_defs = {}
if minetest.get_modpath('flowers') then
table.insert(dye_defs, -1, {'brown 4', {'flowers:mushroom_brown'}})
end
registerDyeRecipes(dye_defs)

View File

@ -0,0 +1,51 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 minetest.get_modpath(dep) then
cotton.dependencies.satisfied = true
end
end
if cotton.dependencies.satisfied then
-- Craft cotton from white wool
minetest.register_craft({
output = "farming:cotton 4",
type = "shapeless",
recipe = {"wool:white"},
})
-- Add aliases for cotton
for alias in pairs(cotton.aliases) do
minetest.register_alias("farming:" .. alias, "farming:cotton")
end
end

View File

@ -0,0 +1,37 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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")
minetest.register_craft({
output = 'helicopter:cabin',
recipe = {
{'', 'group:wood', ''},
{'group:wood', 'homedecor:motor','default:glass'},
{'group:wood','group:wood','group:wood'},
}
})

View File

@ -0,0 +1,130 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 = {
'bucket',
'vessels',
}
for I in pairs(depends) do
if not minetest.get_modpath(depends[I]) then
depends_satisfied = false
end
end
if depends_satisfied then
-- Override vessels:glass_bottle
--[[
minetest.override_item('vessesl: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 = minetest.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
minetest.add_node(pointed_thing.under, {name='air'})
return ItemStack(giving_back)
end
end,
})--]]
minetest.register_craftitem(':antum:bottled_water', {
description = 'A bottle of water',
inventory_image = 'bottled_water.png',
})
minetest.register_craft({
output = 'antum:bottled_water',
type = 'shapeless',
recipe = {
'bucket:bucket_water', 'vessels:glass_bottle',
},
replacements = {
{"bucket:bucket_water", "bucket:bucket_empty"},
},
})
minetest.register_craft({
output = 'invisibility:potion',
type = 'shapeless',
recipe = {
'antum:bottled_water', 'default:mese_crystal_fragment',
},
})
end

View File

@ -0,0 +1,81 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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.
--]]
-- Temporarily remove erroneous craft recipes until fixed
if minetest.get_modpath('homedecor') then
local outputs = {
'homedecor:standing_lamp_blue_off',
'homedecor:standing_lamp_green_off',
'homedecor:standing_lamp_pink_off',
'homedecor:standing_lamp_red_off',
'homedecor:standing_lamp_violet_off',
'homedecor:standing_lamp_off',
'homedecor:table_lamp_blue_off',
'homedecor:table_lamp_green_off',
'homedecor:table_lamp_pink_off',
'homedecor:table_lamp_red_off',
'homedecor:table_lamp_violet_off',
'homedecor:table_lamp_off',
}
for I in pairs(outputs) do
antum.clearCraftOutput(outputs[I])
end
end
if minetest.get_modpath('stairsplus') then
local outputs = {
'brick',
'cobble',
'copperblock',
'desert_stone',
'sandstone',
'desert_stone',
'glass',
'mossycobble',
'sandstone',
'steelblock',
'stone',
'wood',
}
for I in pairs(outputs) do
antum.clearCraftOutput('stairsplus:corner_' .. outputs[I])
antum.clearCraftOutput('stairsplus:stair_' .. outputs[I])
end
end
if minetest.get_modpath('quartz') then
local outputs = {
'quartz:chiseled',
}
for I in pairs(outputs) do
antum.clearCraftOutput(outputs[I])
end
end

23
overrides/depends.txt Normal file
View File

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

View File

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

28
overrides/entities.lua Normal file
View File

@ -0,0 +1,28 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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

41
overrides/init.lua Normal file
View File

@ -0,0 +1,41 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 'minetest.unregister_item()' by paly2.
-- As of writing, the Mineteset main branch does not include it.
antum.overrides = {}
antum.overrides.modname = minetest.get_current_modname()
antum.overrides.modpath = minetest.get_modpath(antum.overrides.modname)
local scripts = {
'items', 'entities', 'misc', 'nodes', 'crafting',
}
for I in pairs(scripts) do
dofile(antum.overrides.modpath .. '/' .. scripts[I] .. '.lua')
end

43
overrides/items.lua Normal file
View File

@ -0,0 +1,43 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 itemsdir = antum.overrides.modpath .. '/items'
local modoverrides = {
'animalmaterials',
'cooking',
'kpgmobs',
'mobs',
'simple_protection',
}
for I in pairs(modoverrides) do
local modname = modoverrides[I]
if minetest.get_modpath(modname) then
dofile(itemsdir .. '/' .. modname .. '.lua')
end
end

View File

@ -0,0 +1,94 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
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
minetest.unregister_item('animalmaterials:' .. delete_items[I])
end
-- OVERRIDING CRAFT ITEMS
-- Fish
minetest.register_craftitem(':animalmaterials:fish_bluewhite', {
description = 'Raw Bluewhite Fish',
image = 'fish_raw.png',
on_use = minetest.item_eat(1),
groups = { meat=1, eatable=1 },
stack_max = 25
})
minetest.register_alias('fish_bluewhite_raw', 'animalmaterials:fish_bluewhite')
minetest.register_craftitem(':animalmaterials:fish_clownfish', {
description = 'Raw Clownfish',
image = 'fish_raw.png',
on_use = minetest.item_eat(1),
groups = { meat=1, eatable=1 },
stack_max = 25
})
minetest.register_alias('clownfish_raw', 'animalmaterials:fish_clownfish')
-- Fur group
minetest.register_craftitem(":animalmaterials:fur", {
description = S("Fur"),
image = "animalmaterials_fur.png",
stack_max=25,
groups = {fur = 1},
})
minetest.register_craftitem(":animalmaterials:fur_deer", {
description = S("Deer fur"),
image = "animalmaterials_deer_fur.png",
stack_max=10,
groups = {fur = 1},
})
minetest.register_craftitem(":animalmaterials:coat_cattle", {
description = S("Cattle coat"),
image = "animalmaterials_cattle_coat.png",
stack_max=10,
groups = {fur = 1},
})

View File

@ -0,0 +1,46 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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.
--]]
minetest.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
})
minetest.register_alias('fish_bluewhite_cooked', 'cooking:fish_bluewhite_cooked')
minetest.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
})
minetest.register_alias('clownfish_cooked', 'cooking:fish_clownfish_cooked')

View File

@ -0,0 +1,74 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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.
--]]
-- Directory where textures are located
local tdir = 'animal_inventory'
minetest.register_craftitem(':kpgmobs:horseh1', {
description = 'Brown Horse',
inventory_image = 'horse_brown.png',
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.above then
minetest.env:add_entity(pointed_thing.above, 'kpgmobs:horseh1')
itemstack:take_item()
end
return itemstack
end,
})
minetest.register_alias('kpgmobs:brown_horse', 'kpgmobs:horseh1')
minetest.register_alias('brown_horse', 'kpgmobs:horseh1')
minetest.register_craftitem(':kpgmobs:horsepegh1', {
description = 'White Horse',
inventory_image = 'horse_white.png',
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.above then
minetest.env:add_entity(pointed_thing.above, 'kpgmobs:horsepegh1')
itemstack:take_item()
end
return itemstack
end,
})
minetest.register_alias('kpgmobs:white_horse', 'kpgmobs:horsepegh1')
minetest.register_alias('white_horse', 'kpgmobs:horsepegh1')
minetest.register_craftitem(':kpgmobs:horsearah1', {
description = 'Black Horse',
inventory_image = 'horse_black.png',
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.above then
minetest.env:add_entity(pointed_thing.above, 'kpgmobs:horsearah1')
itemstack:take_item()
end
return itemstack
end,
})
minetest.register_alias('kpgmobs:black_horse', 'kpgmobs:horsearah1')
minetest.register_alias('black_horse', 'kpgmobs:horsearah1')

47
overrides/items/mobs.lua Normal file
View File

@ -0,0 +1,47 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end
end
-- OVERRIDING CRAFT ITEMS
-- Fur group
minetest.register_craftitem(":mobs:leather", {
description = S("Leather"),
inventory_image = "mobs_leather.png",
groups = {fur = 1},
})

View File

@ -0,0 +1,32 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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'
minetest.register_alias(sp .. ':claim_stick', sp_claim)
minetest.register_alias('claim_stick', sp_claim)

39
overrides/misc.lua Normal file
View File

@ -0,0 +1,39 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 miscdir = antum.overrides.modpath .. "/misc"
local modoverrides = {
"walking_light",
}
for I in pairs(modoverrides) do
local modname = modoverrides[I]
if minetest.get_modpath(modname) then
dofile(miscdir .. "/" .. modname .. ".lua")
end
end

View File

@ -0,0 +1,60 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 minetest.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
minetest.log('action', '[walking_light] Light item: \"' .. light_items[I] .. '\"')
end
--]]

5
overrides/mod.conf Normal file
View File

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

39
overrides/nodes.lua Normal file
View File

@ -0,0 +1,39 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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 nodedir = antum.overrides.modpath .. '/nodes'
local modoverrides = {
'ethereal',
}
for I in pairs(modoverrides) do
local modname = modoverrides[I]
if minetest.get_modpath(modname) then
dofile(nodedir .. '/' .. modname .. '.lua')
end
end

View File

@ -0,0 +1,90 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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)
minetest.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,
})
minetest.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,
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

View File

@ -0,0 +1 @@
The texture pack for the Antum Minetest/Freeminer game.

Binary file not shown.

After

Width:  |  Height:  |  Size: 633 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

26
spawneggs/README.md Normal file
View File

@ -0,0 +1,26 @@
# Antum Spawneggs
***Spawneggs for the [Antum game][antum_game] for [Minetest][minetest]***
License: [MIT][lic.mit]
The code for the spawneggs is based on [Rui's creeper mod][mod.creeper] ([WTFPL][lic.creeper]). Anything else is licensed under the [MIT License
#### Texture licensing
* egg.png, spawneggs_chicken.png, & spawneggs_mese.png
* [CC0][lic.cc0]
* Based on ["white egg" by dStulle][img.egg_white]
* spawneggs_oerrki.png
* [CC0][lic.cc0]
* Based on ["Huevo negro. Black egg" by mediobit][img.egg_black]
[antum_game]: https://github.com/AntumDeluge/minetest-game-antum
[minetest]: http://minetest.net/
[img.egg_white]: https://openclipart.org/detail/6695/white-egg
[img.egg_black]: https://openclipart.org/detail/170074/huevo-negro-black-egg
[mod.creeper]: https://forum.minetest.net/viewtopic.php?t=11891
[lic.creeper]: https://github.com/Rui-Minetest/creeper/blob/master/LICENSE.md
[lic.mit]: ../LICENSE.txt

11
spawneggs/depends.txt Normal file
View File

@ -0,0 +1,11 @@
antum
spawneggs
animal_chicken?
chicken?
default?
kpgmobs?
mobs?
mobs_monster?
oerrki?
sheep?
wool?

126
spawneggs/eggs.lua Normal file
View File

@ -0,0 +1,126 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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.spawneggs.addEggRecipe = function(name, spawn, ingredients)
table.insert(ingredients, 1, 'spawneggs:egg')
minetest.register_craft({
output = 'spawneggs:' .. name,
type = 'shapeless',
recipe = ingredients,
})
end
antum.spawneggs.addEgg = function(name, spawn, ingredients)
minetest.register_craftitem(':spawneggs:' .. name, {
description = name:gsub("^%l", string.upper) .. ' Spawn Egg',
inventory_image = 'spawneggs_' .. name ..'.png',
on_place = function(itemstack, placer, target)
if target.type == 'node' then
local pos = target.above
pos.y = pos.y + 1
minetest.add_entity(pos, spawn)
if not minetest.setting_getbool('creative_mode') then
itemstack:take_item()
end
return itemstack
end
end
})
antum.spawneggs.addEggRecipe(name, spawn, ingredients)
-- DEBUG
antum.log_action(antum.spawneggs.modname, 'Registered spawnegg for ' .. spawn)
end
if minetest.get_modpath('spawneggs') then
-- Clear all spawneggs
local spawneggs_default = {
'dirt_monster', 'dungeon_master', 'oerkki', 'rat',
'sand_monster', 'sheep', 'stone_monster', 'tree_monster'
}
for I in pairs(spawneggs_default) do
minetest.clear_craft({
output = 'spawneggs:' .. spawneggs_default[I],
})
end
end
-- Sheep spawnegg
if minetest.get_modpath('sheep') and minetest.get_modpath('wool') then
antum.spawneggs.addEgg('sheep', 'creatures:sheep', {'group:wool'})
end
-- Oerrki spawnegg
if minetest.get_modpath('oerrki') and minetest.get_modpath('default') then
antum.spawneggs.addEgg('oerrki', 'creatures:oerrki', {'default:obsidian'})
end
-- Chicken spawnegg
if minetest.get_modpath('chicken') then
antum.spawneggs.addEgg('chicken', 'creatures:chicken', {'creatures:feather'})
end
-- Cow spawnegg
if minetest.get_modpath('kpgmobs') and minetest.get_modpath('mobs') then
antum.spawneggs.addEgg('cow', 'kpgmobs:cow', {'mobs:leather'})
end
-- mobs_redo monsters
if minetest.get_modpath('mobs_monster') and minetest.get_modpath('default') then
-- Dirt monster
antum.spawneggs.addEgg('dirt_monster', 'mobs_monster:dirt_monster', {'default:dirt'})
-- Dungeon master
--addLocalEgg('dungeon_master', 'mobs_monster:dungeon_master', {''}) -- needs ingredient
-- Mese monster
antum.spawneggs.addEgg('mese_monster', 'mobs_monster:mese_monster', {'default:mese'})
-- Oerkki
-- Sand monster
antum.spawneggs.addEgg('sand_monster', 'mobs_monster:sand_monster', {'default:sand'})
antum.spawneggs.addEggRecipe('sand_monster', 'mobs_monster:sand_monster', {'default:desert_sand'})
-- Spider
--antum.spawneggs.addEgg('spider', 'mobs_monster:spider', {''}) -- need ingredient & egg
-- Stone monster
--antum.spawneggs.addEgg('stone_monster', 'mobs_monster:stone_monster', {'default:stone'}) -- DISABLED: too graphic
-- Tree monster
antum.spawneggs.addEgg('tree_monster', 'mobs_monster:tree_monster', {'default:sapling'})
end

33
spawneggs/init.lua Normal file
View File

@ -0,0 +1,33 @@
--[[ LICENSE HEADER
The MIT License (MIT)
Copyright © 2016 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.spawneggs = {}
antum.spawneggs.modname = minetest.get_current_modname()
antum.spawneggs.modpath = minetest.get_modpath(antum.spawneggs.modname)
dofile(antum.spawneggs.modpath .. '/eggs.lua')

5
spawneggs/mod.conf Normal file
View File

@ -0,0 +1,5 @@
name = antum_spawneggs
author = AntumDeluge
description = Spawneggs for the Antum game
license = MIT
version = 0.1

BIN
spawneggs/textures/egg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B