Merge pull request 'develop' (#17) from develop into master
Reviewed-on: #17
|
@ -101,6 +101,36 @@ git clone --depth 1 --branch master https://github.com/Grizzly-Adam/BBQ.git
|
|||
git clone --depth 1 --branch master git://cheapiesystems.com/mail
|
||||
git clone --depth 1 --branch master https://github.com/minetest-mods/mydoors.git
|
||||
git clone --depth 1 --branch master https://github.com/TumeniNodes/angledwalls.git
|
||||
git clone --depth 1 --branch master https://github.com/pyrollo/display_modpack.git
|
||||
git clone --depth 1 --branch master https://github.com/Sokomine/cottages.git
|
||||
git clone --depth 1 --branch master https://github.com/joe7575/techpack.git
|
||||
git clone --depth 1 --branch master https://github.com/random-geek/morelights.git
|
||||
git clone --depth 1 --branch master https://repo.or.cz/minetest_mtg_plus.git
|
||||
git clone --depth 1 --branch master https://github.com/minetest-mods/spectator_mode.git
|
||||
git clone --depth 1 --branch master https://github.com/Extex101/christmas.git
|
||||
git clone --depth 1 --branch master https://gitlab.com/VanessaE/gloopblocks.git
|
||||
git clone --depth 1 --branch master https://github.com/minetest-mods/mylandscaping.git
|
||||
git clone --depth 1 --branch master https://gitlab.com/VanessaE/minislots.git
|
||||
git clone --depth 1 --branch master git://cheapiesystems.com/prefab_redo
|
||||
git clone --depth 1 --branch master https://github.com/v-rob/bridger.git
|
||||
git clone --depth 1 --branch master https://github.com/AiTechEye/smartshop.git
|
||||
git clone --depth 1 --branch master https://repo.or.cz/minetest_colorcubes.git
|
||||
git clone --depth 1 --branch master https://github.com/DonBatman/myboardgames.git
|
||||
git clone --depth 1 --branch master https://gitlab.com/VanessaE/ilights.git
|
||||
git clone --depth 1 --branch master https://github.com/TumeniNodes/angledstairs.git
|
||||
git clone --depth 1 --branch master https://github.com/TumeniNodes/artdeco.git
|
||||
git clone --depth 1 --branch master https://github.com/TumeniNodes/facade.git
|
||||
git clone --depth 1 --branch master https://github.com/TumeniNodes/stoneworks.git
|
||||
git clone --depth 1 --branch master https://github.com/Delaroyas/simplyslopes.git
|
||||
git clone --depth 1 --branch master https://github.com/joe7575/tubelib2.git
|
||||
git clone --depth 1 --branch master https://github.com/Ezhh/abriflame.git
|
||||
git clone --depth 1 --branch master https://github.com/Ezhh/abriglass.git
|
||||
git clone --depth 1 --branch master https://github.com/brittm3/Minetest-lpanes.git
|
||||
git clone --depth 1 --branch master https://github.com/qwrwed/lightsplus.git
|
||||
git clone --depth 1 --branch master https://github.com/khonkhortisan/rubiks.git
|
||||
git clone --branch master https://git.bananach.space/advtrains.git
|
||||
git clone --depth 1 --branch master https://github.com/Dragonop/claycrafter
|
||||
|
||||
|
||||
#Clean git stuff
|
||||
rm -rf $(find . -name .git*)
|
||||
|
|
439
mods-list
|
@ -1,192 +1,269 @@
|
|||
load_mod_interact = false
|
||||
load_mod_xdecor = true
|
||||
load_mod_xban2 = true
|
||||
load_mod_workbench = true
|
||||
load_mod_wool = true
|
||||
load_mod_wine = true
|
||||
load_mod_vehicle_mash = true
|
||||
load_mod_unifieddyes = true
|
||||
load_mod_unifiedbricks = true
|
||||
load_mod_workbench = true
|
||||
load_mod_unified_inventory = true
|
||||
load_mod_ts_furniture = true
|
||||
load_mod_ts_doors = true
|
||||
load_mod_trash_can = true
|
||||
load_mod_throwing_arrows = true
|
||||
load_mod_throwing = true
|
||||
load_mod_stamina = true
|
||||
load_mod_stairs = true
|
||||
load_mod_stained_glass = true
|
||||
load_mod_smartfs = true
|
||||
load_mod_streetspoles = true
|
||||
load_mod_streetsmod = true
|
||||
load_mod_streetsconcrete = true
|
||||
load_mod_streetlamps = true
|
||||
load_mod_steelsupport = true
|
||||
load_mod_roadsigns = true
|
||||
load_mod_emergencyphone = true
|
||||
load_mod_delineator = true
|
||||
load_mod_constructionarea = true
|
||||
load_mod_asphalt = true
|
||||
load_mod_regrow = true
|
||||
load_mod_realchess = true
|
||||
load_mod_protector = true
|
||||
load_mod_playerplus = true
|
||||
load_mod_playeranim = true
|
||||
load_mod_ts_workshop = true
|
||||
load_mod_woodsoils = true
|
||||
load_mod_trunks = true
|
||||
load_mod_poisonivy = true
|
||||
load_mod_ferns = true
|
||||
load_mod_homedecor_books = true
|
||||
load_mod_homedecor_bathroom = true
|
||||
load_mod_homedecor_fences = true
|
||||
load_mod_fake_fire = true
|
||||
load_mod_mobs_turtles = true
|
||||
load_mod_mobs_jellyfish = true
|
||||
load_mod_homedecor_3d_extras = true
|
||||
load_mod_homedecor_seating = true
|
||||
load_mod_compost = true
|
||||
load_mod_homedecor_foyer = true
|
||||
load_mod_mydeck = true
|
||||
load_mod_doors = true
|
||||
load_mod_nature_classic = true
|
||||
load_mod_mob_horse = true
|
||||
load_mod_homedecor_pictures_and_paintings = true
|
||||
load_mod_lavalamp = true
|
||||
load_mod_mobs_monster = true
|
||||
load_mod_currency = true
|
||||
load_mod_cloud_items = true
|
||||
load_mod_castle = true
|
||||
load_mod_homedecor_wardrobe = true
|
||||
load_mod_infrastructure = true
|
||||
load_mod_3d_armor_sfinv = true
|
||||
load_mod_dryplants = true
|
||||
load_mod_3d_armor = true
|
||||
load_mod_cavestuff = true
|
||||
load_mod_bonemeal = true
|
||||
load_mod_trees_lib = true
|
||||
load_mod_building_blocks = true
|
||||
load_mod_streetsawards = true
|
||||
load_mod_mypaths = true
|
||||
load_mod_manholes = true
|
||||
load_mod_asphaltstairs = true
|
||||
load_mod_basic_materials = true
|
||||
load_mod_bushes = true
|
||||
load_mod_drinks = true
|
||||
load_mod_3d_armor_ui = true
|
||||
load_mod_enchanting = true
|
||||
load_mod_shields = true
|
||||
load_mod_3d_armor_ip = true
|
||||
load_mod_homedecor_misc = true
|
||||
load_mod_coloredwood = true
|
||||
load_mod_chat2 = true
|
||||
load_mod_mobs_fish = true
|
||||
load_mod_windmill = true
|
||||
load_mod_carpets = true
|
||||
load_mod_streetshotfix = true
|
||||
load_mod_moreores = true
|
||||
load_mod_signs_lib = true
|
||||
load_mod_flowers_plus = true
|
||||
load_mod_worldedit_commands = true
|
||||
load_mod_death_compass = true
|
||||
load_mod_wieldview = true
|
||||
load_mod_font_api = true
|
||||
load_mod_mobs_sharks = true
|
||||
load_mod_vines = true
|
||||
load_mod_worldedit_gui = true
|
||||
load_mod_display_api = true
|
||||
load_mod_intllib = true
|
||||
load_mod_blox = true
|
||||
load_mod_homedecor_bedroom = true
|
||||
load_mod_mywalls = true
|
||||
load_mod_worldedit_brush = true
|
||||
load_mod_carts = true
|
||||
load_mod_homedecor_clocks = true
|
||||
load_mod_mobs_bat = true
|
||||
load_mod_mywoodslopes = true
|
||||
load_mod_worldedit_shortcommands = true
|
||||
load_mod_molehills = true
|
||||
load_mod_moreblocks = true
|
||||
load_mod_anvils = true
|
||||
load_mod_homedecor_gastronomy = true
|
||||
load_mod_bakedclay = true
|
||||
load_mod_youngtrees = true
|
||||
load_mod_biome_lib = true
|
||||
load_mod_basic_signs = true
|
||||
load_mod_lib_mount = true
|
||||
load_mod_ambience = true
|
||||
load_mod_bees = true
|
||||
load_mod_homedecor_windows_and_treatments = true
|
||||
load_mod_farming = true
|
||||
load_mod_homedecor_furniture_medieval = true
|
||||
load_mod_homedecor_common = true
|
||||
load_mod_mobs_animal = true
|
||||
load_mod_homedecor_doors_and_gates = true
|
||||
load_mod_homedecor_electrical = true
|
||||
load_mod_mobs_crocs = true
|
||||
load_mod_junglegrass = true
|
||||
load_mod_3d_armor_stand = true
|
||||
load_mod_homedecor_exterior = true
|
||||
load_mod_builtin_item = true
|
||||
load_mod_homedecor_furniture = true
|
||||
load_mod_labels = true
|
||||
load_mod_homedecor_electronics = true
|
||||
load_mod_homedecor_kitchen = true
|
||||
load_mod_homedecor_lighting = true
|
||||
load_mod_charcoal = true
|
||||
load_mod_homedecor_roofing = true
|
||||
load_mod_ts_paper = true
|
||||
load_mod_signs_api = true
|
||||
load_mod_homedecor_tables = true
|
||||
load_mod_homedecor_trash_cans = true
|
||||
load_mod_stargate = true
|
||||
load_mod_homedecor_office = true
|
||||
load_mod_homedecor_laundry = true
|
||||
load_mod_inbox = true
|
||||
load_mod_itemframes = true
|
||||
load_mod_flowerpot = true
|
||||
load_mod_mobs_npc = true
|
||||
load_mod_plasmascreen = true
|
||||
load_mod_jukebox = true
|
||||
load_mod_trafficlight = true
|
||||
load_mod_letters = true
|
||||
load_mod_worldedit = true
|
||||
load_mod_mail = true
|
||||
load_mod_plasticbox = true
|
||||
load_mod_mobs_birds = true
|
||||
load_mod_mobs = true
|
||||
load_mod_mobs_butterfly = true
|
||||
load_mod_concretestairs = true
|
||||
load_mod_crops = true
|
||||
load_mod_more_chests = true
|
||||
load_mod_homedecor_climate_control = true
|
||||
load_mod_moretrees = true
|
||||
load_mod_mtfoods = true
|
||||
load_mod_mycorners = true
|
||||
load_mod_bbq = true
|
||||
load_mod_mymasonhammer = true
|
||||
load_mod_plasticbox = true
|
||||
load_mod_minislots_golden7s_deluxe = true
|
||||
load_mod_mail = true
|
||||
load_mod_worldedit = true
|
||||
load_mod_letters = true
|
||||
load_mod_trafficlight = true
|
||||
load_mod_jukebox = true
|
||||
load_mod_tubelib_addons1 = true
|
||||
load_mod_plasmascreen = true
|
||||
load_mod_mobs_npc = true
|
||||
load_mod_my_future_doors = true
|
||||
load_mod_itemframes = true
|
||||
load_mod_homedecor_office = true
|
||||
load_mod_stargate = true
|
||||
load_mod_charcoal = true
|
||||
load_mod_homedecor_lighting = true
|
||||
load_mod_angledwalls = true
|
||||
load_mod_builtin_item = true
|
||||
load_mod_homedecor_exterior = true
|
||||
load_mod_flowerpot = true
|
||||
load_mod_3d_armor_stand = true
|
||||
load_mod_junglegrass = true
|
||||
load_mod_mobs_crocs = true
|
||||
load_mod_homedecor_electrical = true
|
||||
load_mod_homedecor_doors_and_gates = true
|
||||
load_mod_homedecor_common = true
|
||||
load_mod_homedecor_furniture_medieval = true
|
||||
load_mod_morelights = true
|
||||
load_mod_homedecor_bedroom = true
|
||||
load_mod_homedecor_laundry = true
|
||||
load_mod_blox = true
|
||||
load_mod_homedecor_3d_extras = true
|
||||
load_mod_computer = true
|
||||
load_mod_mymillwork = true
|
||||
load_mod_drinks = true
|
||||
load_mod_angledstairs = true
|
||||
load_mod_nature_classic = true
|
||||
load_mod_homedecor_clocks = true
|
||||
load_mod_signs_road = true
|
||||
load_mod_homedecor_cobweb = true
|
||||
load_mod_christmas = true
|
||||
load_mod_along_shore = true
|
||||
load_mod_artdeco = true
|
||||
load_mod_carts = true
|
||||
load_mod_mobs_butterfly = true
|
||||
load_mod_mobs_animal = true
|
||||
load_mod_mobs_monster = true
|
||||
load_mod_lavalamp = true
|
||||
load_mod_mtg_plus = true
|
||||
load_mod_homedecor_gastronomy = true
|
||||
load_mod_anvils = true
|
||||
load_mod_moreblocks = true
|
||||
load_mod_molehills = true
|
||||
load_mod_ontime_clocks = true
|
||||
load_mod_mtfoods = true
|
||||
load_mod_sl_controller = true
|
||||
load_mod_intllib = true
|
||||
load_mod_display_api = true
|
||||
load_mod_worldedit_gui = true
|
||||
load_mod_bridger = true
|
||||
load_mod_homedecor_trash_cans = true
|
||||
load_mod_3d_armor_ui = true
|
||||
load_mod_gloopblocks = true
|
||||
load_mod_mobs = true
|
||||
load_mod_worldedit_shortcommands = true
|
||||
load_mod_worldedit_brush = true
|
||||
load_mod_bbq = true
|
||||
load_mod_wieldview = true
|
||||
load_mod_death_compass = true
|
||||
load_mod_facade = true
|
||||
load_mod_inbox = true
|
||||
load_mod_cloud_items = true
|
||||
load_mod_flowers_plus = true
|
||||
load_mod_bows = true
|
||||
load_mod_3dmushrooms = true
|
||||
load_mod_skinsdb = true
|
||||
load_mod_mysheetmetal = true
|
||||
load_mod_new_campfire = true
|
||||
load_mod_minislots_engine = true
|
||||
load_mod_ambience = true
|
||||
load_mod_lib_mount = true
|
||||
load_mod_streetshotfix = true
|
||||
load_mod_carpets = true
|
||||
load_mod_windmill = true
|
||||
load_mod_chat2 = true
|
||||
load_mod_xban2 = true
|
||||
load_mod_coloredwood = true
|
||||
load_mod_homedecor_misc = true
|
||||
load_mod_3d_armor_ip = true
|
||||
load_mod_techpack_stairway = true
|
||||
load_mod_shields = true
|
||||
load_mod_morelights_extras = true
|
||||
load_mod_homedecor_roofing = true
|
||||
load_mod_mys_n_l = true
|
||||
load_mod_smartfs = true
|
||||
load_mod_steles = true
|
||||
load_mod_homedecor_seating = true
|
||||
load_mod_enchanting = true
|
||||
load_mod_mycanadiancheckers = true
|
||||
load_mod_mychess = true
|
||||
load_mod_asphaltstairs = true
|
||||
load_mod_manholes = true
|
||||
load_mod_building_blocks = true
|
||||
load_mod_3d_armor = true
|
||||
load_mod_doors = true
|
||||
load_mod_dryplants = true
|
||||
load_mod_stoneworks = true
|
||||
load_mod_bees = true
|
||||
load_mod_mymasonhammer = true
|
||||
load_mod_minislots_golden7s = true
|
||||
load_mod_3d_armor_sfinv = true
|
||||
load_mod_morelights_vintage = true
|
||||
load_mod_infrastructure = true
|
||||
load_mod_bakedclay = true
|
||||
load_mod_ilights = true
|
||||
load_mod_castle = true
|
||||
load_mod_currency = true
|
||||
load_mod_basic_signs = true
|
||||
load_mod_youngtrees = true
|
||||
load_mod_bonemeal = true
|
||||
load_mod_minislots_work_files = true
|
||||
load_mod_mylittle_bg = true
|
||||
load_mod_vines = true
|
||||
load_mod_ts_doors = true
|
||||
load_mod_moretrees = true
|
||||
load_mod_smartshop = true
|
||||
load_mod_mobs_fish = true
|
||||
load_mod_homedecor_foyer = true
|
||||
load_mod_colorcubes = true
|
||||
load_mod_fake_fire = true
|
||||
load_mod_compost = true
|
||||
load_mod_concretestairs = true
|
||||
load_mod_signs_api = true
|
||||
load_mod_mytrouble = true
|
||||
load_mod_more_chests = true
|
||||
load_mod_ts_paper = true
|
||||
load_mod_crops = true
|
||||
load_mod_boards = true
|
||||
load_mod_trees_lib = true
|
||||
load_mod_mydiamondblock = true
|
||||
load_mod_signs_lib = true
|
||||
load_mod_homedecor_climate_control = true
|
||||
load_mod_protector = true
|
||||
load_mod_font_metro = true
|
||||
load_mod_homedecor_kitchen = true
|
||||
load_mod_homedecor_electronics = true
|
||||
load_mod_signs = true
|
||||
load_mod_mobs_jellyfish = true
|
||||
load_mod_mobs_sharks = true
|
||||
load_mod_mobs_turtles = true
|
||||
load_mod_safer_lua = true
|
||||
load_mod_morelights_modern = true
|
||||
load_mod_homedecor_pictures_and_paintings = true
|
||||
load_mod_moreores = true
|
||||
load_mod_my_game_pieces = true
|
||||
load_mod_mydraughts = true
|
||||
load_mod_my_saloon_doors = true
|
||||
load_mod_throwing_arrows = true
|
||||
load_mod_basic_materials = true
|
||||
load_mod_mygomoku = true
|
||||
load_mod_worldedit_commands = true
|
||||
load_mod_regrow = true
|
||||
load_mod_gravelsieve = true
|
||||
load_mod_homedecor_tables = true
|
||||
load_mod_mycorners = true
|
||||
load_mod_homedecor_furniture = true
|
||||
load_mod_homedecor_fences = true
|
||||
load_mod_mypachisi = true
|
||||
load_mod_homedecor_books = true
|
||||
load_mod_mypirinola = true
|
||||
load_mod_unified_inventory = true
|
||||
load_mod_mypitfall = true
|
||||
load_mod_mys_n_l_mini = true
|
||||
load_mod_labels = true
|
||||
load_mod_myuno = true
|
||||
load_mod_mydeck = true
|
||||
load_mod_my_castle_doors = true
|
||||
load_mod_biome_lib = true
|
||||
load_mod_my_misc_doors = true
|
||||
load_mod_my_cottage_doors = true
|
||||
load_mod_woodsoils = true
|
||||
load_mod_lcdlib = true
|
||||
load_mod_ts_workshop = true
|
||||
load_mod_my_default_doors = true
|
||||
load_mod_ferns = true
|
||||
load_mod_my_door_wood = true
|
||||
load_mod_my_fancy_doors = true
|
||||
load_mod_my_garage_door = true
|
||||
load_mod_emergencyphone = true
|
||||
load_mod_my_hidden_doors = true
|
||||
load_mod_homedecor_wardrobe = true
|
||||
load_mod_my_old_doors = true
|
||||
load_mod_homedecor_bathroom = true
|
||||
load_mod_my_sliding_doors = true
|
||||
load_mod_homedecor_windows_and_treatments = true
|
||||
load_mod_bushes = true
|
||||
load_mod_mylandscaping = true
|
||||
load_mod_streetsmod = true
|
||||
load_mod_mypaths = true
|
||||
load_mod_mob_horse = true
|
||||
load_mod_streetsawards = true
|
||||
load_mod_myroofs = true
|
||||
load_mod_pie = true
|
||||
load_mod_homedecor_cobweb = true
|
||||
load_mod_along_shore = true
|
||||
load_mod_mysheetmetal = true
|
||||
load_mod_skinsdb = true
|
||||
load_mod_mywalls = true
|
||||
load_mod_mywoodslopes = true
|
||||
load_mod_tubelib_addons3 = true
|
||||
load_mod_new_campfire = true
|
||||
load_mod_bushes_classic = true
|
||||
load_mod_my_old_doors = true
|
||||
load_mod_my_misc_doors = true
|
||||
load_mod_my_hidden_doors = true
|
||||
load_mod_my_fancy_doors = true
|
||||
load_mod_my_door_wood = true
|
||||
load_mod_my_castle_doors = true
|
||||
load_mod_my_future_doors = true
|
||||
load_mod_my_saloon_doors = true
|
||||
load_mod_my_cottage_doors = true
|
||||
load_mod_angledwalls = true
|
||||
load_mod_my_default_doors = true
|
||||
load_mod_my_garage_door = true
|
||||
load_mod_my_sliding_doors = true
|
||||
load_mod_farming = true
|
||||
load_mod_cavestuff = true
|
||||
load_mod_font_api = true
|
||||
load_mod_poisonivy = true
|
||||
load_mod_xdecor = true
|
||||
load_mod_trunks = true
|
||||
load_mod_mobs_bat = true
|
||||
load_mod_playeranim = true
|
||||
load_mod_playerplus = true
|
||||
load_mod_prefab_redo = true
|
||||
load_mod_realchess = true
|
||||
load_mod_asphalt = true
|
||||
load_mod_constructionarea = true
|
||||
load_mod_delineator = true
|
||||
load_mod_roadsigns = true
|
||||
load_mod_steelsupport = true
|
||||
load_mod_streetlamps = true
|
||||
load_mod_streetsconcrete = true
|
||||
load_mod_mymazes = true
|
||||
load_mod_streetspoles = true
|
||||
load_mod_simplyslopes = true
|
||||
load_mod_spectator_mode = true
|
||||
load_mod_stained_glass = true
|
||||
load_mod_stairs = true
|
||||
load_mod_tubelib_addons2 = true
|
||||
load_mod_stamina = true
|
||||
load_mod_smartline = true
|
||||
load_mod_techpack_warehouse = true
|
||||
load_mod_tubelib = true
|
||||
load_mod_throwing = true
|
||||
load_mod_cottages = true
|
||||
load_mod_trash_can = true
|
||||
load_mod_myconnect4 = true
|
||||
load_mod_ts_furniture = true
|
||||
load_mod_tubelib2 = true
|
||||
load_mod_mycheckers = true
|
||||
load_mod_unifiedbricks = true
|
||||
load_mod_unifieddyes = true
|
||||
load_mod_vehicle_mash = true
|
||||
load_mod_rubiks = true
|
||||
load_mod_lightsplus = true
|
||||
load_mod_abriflame = true
|
||||
load_mod_lpanes = true
|
||||
load_mod_abriglass = true
|
||||
load_mod_advtrains_train_track = true
|
||||
load_mod_advtrains_train_subway = true
|
||||
load_mod_advtrains_train_japan = true
|
||||
load_mod_advtrains_train_industrial = true
|
||||
load_mod_advtrains_luaautomation = true
|
||||
load_mod_advtrains_interlocking = true
|
||||
load_mod_advtrains = true
|
||||
load_mod_advtrains_train_steam = true
|
||||
load_mod_advtrains_line_automation = true
|
||||
load_mod_advtrains_itrainmap = true
|
||||
load_mod_assets = true
|
||||
load_mod_advtrains_signals_ks = true
|
||||
load_mod_claycrafter = true
|
||||
|
|
BIN
mods/Minetest-lpanes/Screenshot from 2016-11-17 20-36-08.png
Normal file
After Width: | Height: | Size: 956 KiB |
BIN
mods/Minetest-lpanes/Screenshot from 2016-11-17 21-03-05.png
Normal file
After Width: | Height: | Size: 699 KiB |
2
mods/Minetest-lpanes/depends.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
default
|
||||
unifieddyes
|
239
mods/Minetest-lpanes/init.lua
Normal file
|
@ -0,0 +1,239 @@
|
|||
-- lpanes: leaded glass panes -- from xPanes mod by xyz, customized by davedevils, reworked and converted to leaded/stained panes by Britt. Textures by Britt
|
||||
|
||||
|
||||
--Leaded glass uses a 'leading' (pronounced "led-ing") material to secure the glass pieces in place. This is traditionally the metal lead. Specify which 'leading' metal will be used in crafting the panes. Lead or Tin might be appropriate, but for the default game, these are not available:
|
||||
local leadingMetal = "default:steel_ingot"
|
||||
|
||||
|
||||
local function split(string, separator)
|
||||
local separator, fields = separator or ":", {}
|
||||
local pattern = string.format("([^%s]+)", separator)
|
||||
self:gsub(pattern, function(c) fields[#fields+1] = c end)
|
||||
return fields
|
||||
end
|
||||
|
||||
local directions = {
|
||||
{x = 1, y = 0, z = 0},
|
||||
{x = 0, y = 0, z = 1},
|
||||
{x = -1, y = 0, z = 0},
|
||||
{x = 0, y = 0, z = -1},
|
||||
}
|
||||
|
||||
local function update_pane(pos)
|
||||
local nodeName = minetest.env:get_node(pos).name
|
||||
if nodeName:find("lpanes:pane_") == nil then
|
||||
return
|
||||
end
|
||||
--print("Found: "..nodeName)
|
||||
|
||||
--Determine the shade/color of the node
|
||||
local shade
|
||||
local nodeNameParts = nodeName:split("_")
|
||||
local partCount = table.getn(nodeNameParts)
|
||||
local lastPart = nodeNameParts[partCount]
|
||||
--If the last part is simply a number, then its a 'shape' designator and not part of the color name
|
||||
if tonumber(lastPart) ~= nil then
|
||||
shade = table.concat(nodeNameParts, "_", 2, partCount - 1) --take off the 'shape' part of the node name
|
||||
else
|
||||
shade = table.concat(nodeNameParts, "_", 2) --start with the second entry and go to the end
|
||||
end
|
||||
--print("Shade: "..shade)
|
||||
|
||||
local sum = 0
|
||||
for i = 1, 4 do
|
||||
local node = minetest.env:get_node({x = pos.x + directions[i].x, y = pos.y + directions[i].y, z = pos.z + directions[i].z})
|
||||
if minetest.registered_nodes[node.name].walkable ~= false then
|
||||
sum = sum + 2 ^ (i - 1)
|
||||
end
|
||||
end
|
||||
if sum == 0 then
|
||||
sum = 15
|
||||
end
|
||||
print("Adding node: lpanes:pane_"..shade.."_"..sum)
|
||||
minetest.env:add_node(pos, {name = "lpanes:pane_"..shade.."_"..sum})
|
||||
end
|
||||
|
||||
local function update_nearby(pos)
|
||||
for i = 1,4 do
|
||||
update_pane({x = pos.x + directions[i].x, y = pos.y + directions[i].y, z = pos.z + directions[i].z})
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
function pane(node, desc, dropitem, shade)
|
||||
local function rshift(x, by)
|
||||
return math.floor(x / 2 ^ by)
|
||||
end
|
||||
|
||||
local half_blocks = {
|
||||
{0, -0.5, -0.06, 0.5, 0.5, 0.06},
|
||||
{-0.06, -0.5, 0, 0.06, 0.5, 0.5},
|
||||
{-0.5, -0.5, -0.06, 0, 0.5, 0.06},
|
||||
{-0.06, -0.5, -0.5, 0.06, 0.5, 0}
|
||||
}
|
||||
|
||||
local full_blocks = {
|
||||
{-0.5, -0.5, -0.06, 0.5, 0.5, 0.06},
|
||||
{-0.06, -0.5, -0.5, 0.06, 0.5, 0.5}
|
||||
}
|
||||
|
||||
for i = 1, 15 do
|
||||
local need = {}
|
||||
local cnt = 0
|
||||
for j = 1, 4 do
|
||||
if rshift(i, j - 1) % 2 == 1 then
|
||||
need[j] = true
|
||||
cnt = cnt + 1
|
||||
end
|
||||
end
|
||||
local take = {}
|
||||
if need[1] == true and need[3] == true then
|
||||
need[1] = nil
|
||||
need[3] = nil
|
||||
table.insert(take, full_blocks[1])
|
||||
end
|
||||
if need[2] == true and need[4] == true then
|
||||
need[2] = nil
|
||||
need[4] = nil
|
||||
table.insert(take, full_blocks[2])
|
||||
end
|
||||
for k in pairs(need) do
|
||||
table.insert(take, half_blocks[k])
|
||||
end
|
||||
local texture = "lpanes_"..shade..".png"
|
||||
if cnt == 1 then
|
||||
texture = "lpanes_half_"..shade..".png"
|
||||
end
|
||||
|
||||
-- Position-appropriate node. One of these nodes will replace the generic node immediately upon placement
|
||||
minetest.register_node("lpanes:pane_"..shade.."_"..i, {
|
||||
drawtype = "nodebox",
|
||||
--tiles = {"xpanes_top_"..node..""..shade..".png", "xpanes_top_"..node..""..shade..".png", texture},
|
||||
tiles = {"lpanes_top.png", "lpanes_top.png", texture},
|
||||
paramtype = "light",
|
||||
use_texture_alpha = true,
|
||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||
drop = dropitem,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = take
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = take
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
--This is the node that is originally placed. It will be replaced immediately by one
|
||||
-- of the position-appropriate nodes
|
||||
minetest.register_node("lpanes:pane_"..shade, {
|
||||
description = desc,
|
||||
tiles = {"lpanes_"..shade..".png"},
|
||||
inventory_image = "lpanes_"..shade..".png",
|
||||
paramtype = "light",
|
||||
stack_max = 64,
|
||||
use_texture_alpha = true,
|
||||
wield_image = "lpanes_"..shade..".png",
|
||||
node_placement_prediction = "",
|
||||
on_construct = update_pane,
|
||||
drop = "",
|
||||
})
|
||||
|
||||
--Crafing
|
||||
--The Clear, Black, and Grey shades need special handling.
|
||||
if shade == "clear" then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'lpanes:pane_'..shade..' 6',
|
||||
recipe = {"default:glass", leadingMetal},
|
||||
cooktime = 3,
|
||||
})
|
||||
elseif shade == "black" then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'lpanes:pane_'..shade..' 6',
|
||||
recipe = {"default:glass", leadingMetal, "dye:black"},
|
||||
cooktime = 3,
|
||||
})
|
||||
elseif shade == "white" then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'lpanes:pane_'..shade..' 6',
|
||||
recipe = {"default:glass", leadingMetal, "dye:white"},
|
||||
cooktime = 3,
|
||||
})
|
||||
elseif shade == "grey" then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'lpanes:pane_'..shade..' 6',
|
||||
recipe = {"default:glass", leadingMetal, "dye:grey"},
|
||||
cooktime = 3,
|
||||
})
|
||||
elseif shade == "light_grey" then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'lpanes:pane_'..shade..' 6',
|
||||
recipe = {"default:glass", leadingMetal, "dye:light_grey"},
|
||||
cooktime = 3,
|
||||
})
|
||||
elseif shade == "dark_grey" then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'lpanes:pane_'..shade..' 6',
|
||||
recipe = {"default:glass", leadingMetal, "dye:dark_grey"},
|
||||
cooktime = 3,
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'lpanes:pane_'..shade..' 6',
|
||||
recipe = {"default:glass", leadingMetal, "unifieddyes:"..shade},
|
||||
cooktime = 3,
|
||||
})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
minetest.register_on_placenode(update_nearby)
|
||||
minetest.register_on_dignode(update_nearby)
|
||||
|
||||
|
||||
colors = {
|
||||
{ "aqua", true },
|
||||
--{ "black", true},
|
||||
{ "blue", true },
|
||||
{ "cyan", true },
|
||||
{ "green", true },
|
||||
{ "lime", true },
|
||||
{ "magenta", true },
|
||||
{ "orange", true },
|
||||
{ "red", true },
|
||||
{ "redviolet", true },
|
||||
{ "skyblue", true },
|
||||
{ "violet", true },
|
||||
{ "yellow", true },
|
||||
}
|
||||
|
||||
--Do the colors that follow Unified Dye's naming pattern
|
||||
for i in ipairs(colors) do
|
||||
local hue = colors[i][1]
|
||||
-- node, desc, dropItem, shade
|
||||
pane("glass", "Glass Pane "..hue, "", hue)
|
||||
pane("glass", "Glass Pane Medium "..hue, "", "medium_"..hue)
|
||||
pane("glass", "Glass Pane Medium "..hue.." s50", "", "medium_"..hue.."_s50")
|
||||
pane("glass", "Glass Pane Dark "..hue, "", "dark_"..hue)
|
||||
pane("glass", "Glass Pane Dark "..hue.." s50", "", "dark_"..hue.."_s50")
|
||||
end
|
||||
|
||||
--Do the colors that don't follow Unified Dye's naming pattern
|
||||
pane("glass", "Glass Pane white", "", "white")
|
||||
pane("glass", "Glass Pane light grey", "", "light_grey")
|
||||
pane("glass", "Glass Pane grey", "", "grey")
|
||||
pane("glass", "Glass Pane dark grey", "", "dark_grey")
|
||||
pane("glass", "Glass Pane black", "", "black")
|
||||
pane("glass", "Glass Pane clear", "", "clear")
|
||||
|
||||
print("[LPanes] Loaded!")
|
1
mods/Minetest-lpanes/mod.conf
Normal file
|
@ -0,0 +1 @@
|
|||
name = lpanes
|
9
mods/Minetest-lpanes/readme.MD
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
Leaded Glass Panes for MINETEST
|
||||
|
||||
The MIT License (MIT)
|
||||
Copyright (c) 2016 Britt
|
||||
|
||||
|
||||
|
||||
|
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_aqua.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_aqua_s50.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_black.png
Normal file
After Width: | Height: | Size: 5 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_blue.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_blue_s50.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_clear.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_cyan.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_cyan_s50.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_aqua.png
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_aqua_s50.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_blue.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_blue_s50.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_cyan.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_cyan_s50.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_green.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_green_s50.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_grey.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_lime.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_lime_s50.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_magenta.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
After Width: | Height: | Size: 9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_orange.png
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_orange_s50.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_red.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_red_s50.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_redviolet.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
After Width: | Height: | Size: 8.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_skyblue.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 8.8 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_violet.png
Normal file
After Width: | Height: | Size: 8 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_violet_s50.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_yellow.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_dark_yellow_s50.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_green.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_green_s50.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_grey.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_aqua.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_aqua_s50.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_black.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_blue.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_blue_s50.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_clear.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_cyan.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_cyan_s50.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_dark_aqua.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_dark_blue.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_dark_cyan.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_dark_green.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_dark_grey.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_dark_lime.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_dark_red.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_green.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_green_s50.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_grey.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_light_aqua.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_light_blue.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_light_cyan.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_light_grey.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_light_lime.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_light_red.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_lime.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_lime_s50.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
mods/Minetest-lpanes/textures/128x128/lpanes_half_magenta.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 4.9 KiB |