Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/devtest.wait_for_git_repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: devtest
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@main
- uses: buckaroobanzay/mtt@main
with:
modname: xcompat
git_game_repo: (HEY THERES NONE)
git_dependencies: |
https://github.com/mt-mods/unifieddyes
https://github.com/mt-mods/basic_materials
https://github.com/OgelGames/fakelib
https://github.com/mt-mods/pipeworks
https://github.com/mt-mods/steel
https://github.com/mt-mods/display_modpack
https://github.com/mt-mods/homedecor_modpack
additional_config: |
mtt_nodelist = devtest.txt
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ See the respective sub apis doc file in /doc for detailed documentation.
| Exile | x | | | | |
| KSurvive 2 | x | | | | |
| Forgotten Lands | x | | | | |
| Development Test | | x | x | | |

For functions see /doc/functions.md for the specifics relating to the function

Expand Down
2 changes: 1 addition & 1 deletion mod.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name = xcompat
description = Provides cross compatibility between mods and games for sounds and crafting materials.
optional_depends = default, fl_stone, fl_trees, mcl_sounds, hades_sounds, ks_sounds, nodes_nature, fl_topsoil, fl_trees, mcl_core, farming, x_farming, sounds, mtt, player_api, mcl_player, fl_player, stairs
optional_depends = default, fl_stone, fl_trees, mcl_sounds, hades_sounds, ks_sounds, nodes_nature, fl_topsoil, fl_trees, mcl_core, farming, x_farming, sounds, mtt, player_api, mcl_player, fl_player, stairs, basenodes, unittests, basetools, testpathfinder, testnodes, chest, tiled
3 changes: 2 additions & 1 deletion src/gameid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local game_modnames = {
hades = "hades_core",
exile = "exile_env_sounds",
ksurvive2 = "ks_metals",
devtest = "basenodes",
}

local gameid = "xcompat_unknown_gameid"
Expand All @@ -30,4 +31,4 @@ if game_alias[gameid] then gameid = game_alias[gameid] end
--while minetest game derviates are not supported, we can still try to detect them
if minetest.get_modpath("default") then gameid = "minetest" end

return gameid
return gameid
57 changes: 57 additions & 0 deletions src/materials/devtest.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
local materials = {
sand = "basenodes:sand",
gravel = "basenodes:gravel",
stone = "basenodes:stone",
cobble = "basenodes:cobble",
jungle_leaves = "basenodes:jungleleaves",
jungle_log = "basenodes:jungletree",
desert_sand = "basenodes:desert_sand",
desert_stone = "basenodes:desert_stone",
dirt = "basenodes:dirt",
dirt_with_grass = "basenodes:dirt_with_grass",
water_source = "basenodes:water_source",
water_flowing = "basenodes:water_flowing",
apple_leaves = "basenodes:leaves",
apple_log = "basenodes:tree",
coal_lump = "unittests:coal_lump",
iron_lump = "unittests:iron_lump",
steel_ingot = "unittests:steel_ingot",
axe_steel = "basetools:axe_steel",
axe_stone = "basetools:axe_stone",
axe_wood = "basetools:axe_wood",
pick_steel = "basetools:pick_steel",
mese = "unittests:steel_ingot",
mese_crystal = "unittests:steel_ingot",
mese_crystal_fragment = "unittests:steel_ingot",
empty_bucket = "bucket:bucket",
water_bucket = "basenodes:water_source",
stick = "unittests:stick",
torch = "unittests:torch",
string = "testpathfinder:testpathfinder",
glass = "testnodes:glasslike",
glass_block = "testnodes:glasslike_framed",
glass_bottle = "testnodes:glassliquid",
obsidian_glass = "testnodes:glasslike_framed_no_detail",
chest = "chest:chest",
brick = "tiled:tiled",
paper = "testnodes:nodebox_leveled",
book = "testtools:item_meta_editor",
slab_stone = "stairs:slab_stone",
birch_leaves = "basenodes:pine_needles",
birch_log = "basenodes:pine_tree",
silicon = "mesecons_materials:silicon",
}

if minetest.get_modpath("moreores") then
materials.tin_ingot = "moreores:tin_ingot"
materials.tin_block = "moreores:tin_block"
materials.silver_ingot = "moreores:silver_ingot"
end

if minetest.get_modpath("technic") then
materials.lead_ingot = "technic:lead_ingot"
materials.carbon_steel_ingot = "technic:carbon_steel_ingot"
materials.stainless_steel_ingot = "technic:stainless_steel_ingot"
end

return materials
40 changes: 40 additions & 0 deletions src/textures/devtest.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
local textures = {
gravel = "default_gravel.png",
brick = "tiled_tiled.png",

metal = {
steel = {
ore = "unittests_iron_lump.png",
ingot = "unittests_steel_ingot.png",
},
},
glass = {
pane = "testnodes_glasslike.png",
detail = "testnodes_glasslike_detail.png",
},
wood = {
apple = {
sapling = "testitems_tree_spawner.png",
trunk_side = "default_tree.png",
trunk_top = "default_tree_top.png",
leaves = "default_leaves.png",
},
jungle = {
sapling = "testitems_tree_spawner.png",
trunk_side = "default_jungletree.png",
trunk_top = "default_jungletree_top.png",
leaves = "default_jungleleaves.png",
},
},
water = {
source = "default_water.png",
flowing = "default_water_flowing.png",
},
grass = {
top = "default_grass.png",
side = "default_dirt.png^default_grass_side.png",
dirt = "default_dirt.png",
},
}

return textures
24 changes: 24 additions & 0 deletions test/nodelist/devtest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
basenodes:sand
basenodes:gravel
basenodes:stone
basenodes:cobble
basenodes:jungleleaves
basenodes:jungletree
basenodes:desert_sand
basenodes:desert_stone
basenodes:dirt
basenodes:dirt_with_grass
basenodes:water_source
basenodes:water_flowing
basenodes:leaves
basenodes:tree
testnodes:glasslike
testnodes:glasslike_framed
testnodes:glassliquid
testnodes:glasslike_framed_no_detail
chest:chest
tiled:tiled
testnodes:nodebox_leveled
stairs:slab_stone
basenodes:pine_needles
basenodes:pine_tree