
-- regex for converting node list into list
-- \n(?!pmb).*|^\n
local node_list =
[[bow:bow
fenn:spear
stone:bedrock
stone:cobble
stone:cobble_beam
stone:cobble_moss_1
stone:cobble_moss_1_beam
stone:cobble_moss_1_post
stone:cobble_moss_1_quarter
stone:cobble_moss_1_slab
stone:cobble_moss_1_stair
stone:cobble_moss_2
stone:cobble_moss_2_beam
stone:cobble_moss_2_post
stone:cobble_moss_2_quarter
stone:cobble_moss_2_slab
stone:cobble_moss_2_stair
stone:cobble_post
stone:cobble_quarter
stone:cobble_slab
stone:cobble_stair
stone:granite
stone:granite_beam
stone:granite_brick
stone:granite_brick_beam
stone:granite_brick_fine
stone:granite_brick_fine_beam
stone:granite_brick_fine_post
stone:granite_brick_fine_quarter
stone:granite_brick_fine_slab
stone:granite_brick_fine_stair
stone:granite_brick_lamp
stone:granite_brick_lamp_beam
stone:granite_brick_lamp_post
stone:granite_brick_lamp_quarter
stone:granite_brick_lamp_slab
stone:granite_brick_lamp_stair
stone:granite_brick_left
stone:granite_brick_ornate
stone:granite_brick_ornate_beam
stone:granite_brick_ornate_post
stone:granite_brick_ornate_quarter
stone:granite_brick_ornate_slab
stone:granite_brick_ornate_stair
stone:granite_brick_pillar
stone:granite_brick_pillar_beam
stone:granite_brick_pillar_post
stone:granite_brick_pillar_quarter
stone:granite_brick_pillar_slab
stone:granite_brick_pillar_stair
stone:granite_brick_post
stone:granite_brick_quarter
stone:granite_brick_right
stone:granite_brick_slab
stone:granite_brick_stair
stone:granite_coal_ore
stone:granite_cobble
stone:granite_cobble_beam
stone:granite_cobble_post
stone:granite_cobble_quarter
stone:granite_cobble_slab
stone:granite_cobble_stair
stone:granite_copper_ore
stone:granite_diamond_ore
stone:granite_gold_ore
stone:granite_ignis_ore
stone:granite_iron_ore
stone:granite_lapis_ore
stone:granite_post
stone:granite_quarter
stone:granite_slab
stone:granite_stair
stone:granite_tin_ore
stone:ironstone
stone:ironstone_beam
stone:ironstone_brick
stone:ironstone_brick_beam
stone:ironstone_brick_fine
stone:ironstone_brick_fine_beam
stone:ironstone_brick_fine_post
stone:ironstone_brick_fine_quarter
stone:ironstone_brick_fine_slab
stone:ironstone_brick_fine_stair
stone:ironstone_brick_lamp
stone:ironstone_brick_lamp_beam
stone:ironstone_brick_lamp_post
stone:ironstone_brick_lamp_quarter
stone:ironstone_brick_lamp_slab
stone:ironstone_brick_lamp_stair
stone:ironstone_brick_left
stone:ironstone_brick_ornate
stone:ironstone_brick_ornate_beam
stone:ironstone_brick_ornate_post
stone:ironstone_brick_ornate_quarter
stone:ironstone_brick_ornate_slab
stone:ironstone_brick_ornate_stair
stone:ironstone_brick_pillar
stone:ironstone_brick_pillar_beam
stone:ironstone_brick_pillar_post
stone:ironstone_brick_pillar_quarter
stone:ironstone_brick_pillar_slab
stone:ironstone_brick_pillar_stair
stone:ironstone_brick_post
stone:ironstone_brick_quarter
stone:ironstone_brick_right
stone:ironstone_brick_slab
stone:ironstone_brick_stair
stone:ironstone_cobble
stone:ironstone_cobble_beam
stone:ironstone_cobble_post
stone:ironstone_cobble_quarter
stone:ironstone_cobble_slab
stone:ironstone_cobble_stair
stone:ironstone_post
stone:ironstone_quarter
stone:ironstone_slab
stone:ironstone_stair
stone:limestone
stone:limestone_beam
stone:limestone_brick
stone:limestone_brick_beam
stone:limestone_brick_fine
stone:limestone_brick_fine_beam
stone:limestone_brick_fine_post
stone:limestone_brick_fine_quarter
stone:limestone_brick_fine_slab
stone:limestone_brick_fine_stair
stone:limestone_brick_lamp
stone:limestone_brick_lamp_beam
stone:limestone_brick_lamp_post
stone:limestone_brick_lamp_quarter
stone:limestone_brick_lamp_slab
stone:limestone_brick_lamp_stair
stone:limestone_brick_left
stone:limestone_brick_ornate
stone:limestone_brick_ornate_beam
stone:limestone_brick_ornate_post
stone:limestone_brick_ornate_quarter
stone:limestone_brick_ornate_slab
stone:limestone_brick_ornate_stair
stone:limestone_brick_pillar
stone:limestone_brick_pillar_beam
stone:limestone_brick_pillar_post
stone:limestone_brick_pillar_quarter
stone:limestone_brick_pillar_slab
stone:limestone_brick_pillar_stair
stone:limestone_brick_post
stone:limestone_brick_quarter
stone:limestone_brick_right
stone:limestone_brick_slab
stone:limestone_brick_stair
stone:limestone_coal_ore
stone:limestone_cobble
stone:limestone_cobble_beam
stone:limestone_cobble_post
stone:limestone_cobble_quarter
stone:limestone_cobble_slab
stone:limestone_cobble_stair
stone:limestone_copper_ore
stone:limestone_diamond_ore
stone:limestone_gold_ore
stone:limestone_ignis_ore
stone:limestone_iron_ore
stone:limestone_lapis_ore
stone:limestone_post
stone:limestone_quarter
stone:limestone_slab
stone:limestone_stair
stone:limestone_tin_ore
stone:loose_stone
stone:loose_stone_coal_ore
stone:loose_stone_copper_ore
stone:loose_stone_diamond_ore
stone:loose_stone_gold_ore
stone:loose_stone_ignis_ore
stone:loose_stone_iron_ore
stone:loose_stone_lapis_ore
stone:loose_stone_tin_ore
stone:obsidian
stone:obsidian_beam
stone:obsidian_brick
stone:obsidian_brick_beam
stone:obsidian_brick_fine
stone:obsidian_brick_fine_beam
stone:obsidian_brick_fine_post
stone:obsidian_brick_fine_quarter
stone:obsidian_brick_fine_slab
stone:obsidian_brick_fine_stair
stone:obsidian_brick_lamp
stone:obsidian_brick_lamp_beam
stone:obsidian_brick_lamp_post
stone:obsidian_brick_lamp_quarter
stone:obsidian_brick_lamp_slab
stone:obsidian_brick_lamp_stair
stone:obsidian_brick_left
stone:obsidian_brick_ornate
stone:obsidian_brick_ornate_beam
stone:obsidian_brick_ornate_post
stone:obsidian_brick_ornate_quarter
stone:obsidian_brick_ornate_slab
stone:obsidian_brick_ornate_stair
stone:obsidian_brick_pillar
stone:obsidian_brick_pillar_beam
stone:obsidian_brick_pillar_post
stone:obsidian_brick_pillar_quarter
stone:obsidian_brick_pillar_slab
stone:obsidian_brick_pillar_stair
stone:obsidian_brick_post
stone:obsidian_brick_quarter
stone:obsidian_brick_right
stone:obsidian_brick_slab
stone:obsidian_brick_stair
stone:obsidian_post
stone:obsidian_quarter
stone:obsidian_slab
stone:obsidian_stair
stone:sandstone
stone:sandstone_beam
stone:sandstone_brick
stone:sandstone_brick_beam
stone:sandstone_brick_fine
stone:sandstone_brick_fine_beam
stone:sandstone_brick_fine_post
stone:sandstone_brick_fine_quarter
stone:sandstone_brick_fine_slab
stone:sandstone_brick_fine_stair
stone:sandstone_brick_lamp
stone:sandstone_brick_lamp_beam
stone:sandstone_brick_lamp_post
stone:sandstone_brick_lamp_quarter
stone:sandstone_brick_lamp_slab
stone:sandstone_brick_lamp_stair
stone:sandstone_brick_left
stone:sandstone_brick_ornate
stone:sandstone_brick_ornate_beam
stone:sandstone_brick_ornate_post
stone:sandstone_brick_ornate_quarter
stone:sandstone_brick_ornate_slab
stone:sandstone_brick_ornate_stair
stone:sandstone_brick_pillar
stone:sandstone_brick_pillar_beam
stone:sandstone_brick_pillar_post
stone:sandstone_brick_pillar_quarter
stone:sandstone_brick_pillar_slab
stone:sandstone_brick_pillar_stair
stone:sandstone_brick_post
stone:sandstone_brick_quarter
stone:sandstone_brick_right
stone:sandstone_brick_slab
stone:sandstone_brick_stair
stone:sandstone_coal_ore
stone:sandstone_cobble
stone:sandstone_cobble_beam
stone:sandstone_cobble_post
stone:sandstone_cobble_quarter
stone:sandstone_cobble_slab
stone:sandstone_cobble_stair
stone:sandstone_copper_ore
stone:sandstone_diamond_ore
stone:sandstone_gold_ore
stone:sandstone_ignis_ore
stone:sandstone_iron_ore
stone:sandstone_lapis_ore
stone:sandstone_post
stone:sandstone_quarter
stone:sandstone_slab
stone:sandstone_stair
stone:sandstone_tin_ore
stone:stone
stone:stone_beam
stone:stone_brick
stone:stone_brick_beam
stone:stone_brick_fine
stone:stone_brick_fine_beam
stone:stone_brick_fine_post
stone:stone_brick_fine_quarter
stone:stone_brick_fine_slab
stone:stone_brick_fine_stair
stone:stone_brick_lamp
stone:stone_brick_lamp_beam
stone:stone_brick_lamp_post
stone:stone_brick_lamp_quarter
stone:stone_brick_lamp_slab
stone:stone_brick_lamp_stair
stone:stone_brick_left
stone:stone_brick_ornate
stone:stone_brick_ornate_beam
stone:stone_brick_ornate_post
stone:stone_brick_ornate_quarter
stone:stone_brick_ornate_slab
stone:stone_brick_ornate_stair
stone:stone_brick_pillar
stone:stone_brick_pillar_beam
stone:stone_brick_pillar_post
stone:stone_brick_pillar_quarter
stone:stone_brick_pillar_slab
stone:stone_brick_pillar_stair
stone:stone_brick_post
stone:stone_brick_quarter
stone:stone_brick_right
stone:stone_brick_ruin
stone:stone_brick_ruin_beam
stone:stone_brick_ruin_post
stone:stone_brick_ruin_quarter
stone:stone_brick_ruin_slab
stone:stone_brick_ruin_stair
stone:stone_brick_slab
stone:stone_brick_stair
stone:stone_coal_ore
stone:stone_copper_ore
stone:stone_diamond_ore
stone:stone_gold_ore
stone:stone_ignis_ore
stone:stone_iron_ore
stone:stone_lapis_ore
stone:stone_post
stone:stone_quarter
stone:stone_slab
stone:stone_stair
stone:stone_tin_ore
kelar:kelar_spawn
kelar:kelar_underworld_spawn
lantern:iron
util:barrier
util:dig_anything
util:light_node_1
util:light_node_10
util:light_node_11
util:light_node_12
util:light_node_13
util:light_node_14
util:light_node_2
util:light_node_3
util:light_node_4
util:light_node_5
util:light_node_6
util:light_node_7
util:light_node_8
util:light_node_9
util:temp_air
storage:chest
seelie:seelie_shrine
crafters:crafting_bench
lights:lantern
lights:lantern_ceiling
lights:lantern_off
lights:lantern_off_ceiling
lights:torch
lights:torch_wall
glass:glass
entity_base:base_spawn
wings:canvas
wings:glowfibre
wood:ash_leaves
wood:ash_log
wood:ash_log_post
wood:ash_log_slab
wood:ash_mesh_leaves
wood:ash_plank
wood:ash_planks
wood:ash_planks_beam
wood:ash_planks_post
wood:ash_planks_quarter
wood:ash_planks_slab
wood:ash_planks_stair
wood:ash_solid_leaves
wood:charcoal_block
wood:crude_ladder
wood:hot_coals
wood:oak_leaves
wood:oak_log
wood:oak_log_post
wood:oak_log_slab
wood:oak_mesh_leaves
wood:oak_plank
wood:oak_planks
wood:oak_planks_beam
wood:oak_planks_post
wood:oak_planks_quarter
wood:oak_planks_slab
wood:oak_planks_stair
wood:oak_solid_leaves
wood:scaffolding
wood:spruce_leaves
wood:spruce_log
wood:spruce_log_post
wood:spruce_log_slab
wood:spruce_mesh_leaves
wood:spruce_plank
wood:spruce_planks
wood:spruce_planks_beam
wood:spruce_planks_post
wood:spruce_planks_quarter
wood:spruce_planks_slab
wood:spruce_planks_stair
wood:spruce_solid_leaves
wrench:wrench
elementals:elemental_core_magma
elementals:elemental_core_stone
elementals:magma_spawn
elementals:stone_spawn
soil:clay
soil:dirt
soil:dirt_coal_ore
soil:dirt_copper_ore
soil:dirt_diamond_ore
soil:dirt_gold_ore
soil:dirt_ignis_ore
soil:dirt_iron_ore
soil:dirt_lapis_ore
soil:dirt_slab
soil:dirt_stair
soil:dirt_tin_ore
soil:forest_dirt
soil:forest_dirt_slab
soil:forest_dirt_stair
soil:forest_grass
soil:forest_grass_1
soil:forest_grass_1_slab
soil:forest_grass_1_stair
soil:forest_grass_2
soil:forest_grass_2_slab
soil:forest_grass_2_stair
soil:forest_grass_slab
soil:forest_grass_stair
soil:grass
soil:grass_slab
soil:grass_snow
soil:grass_snow_slab
soil:grass_snow_stair
soil:grass_stair
soil:grass_variant_1
soil:grass_variant_1_slab
soil:grass_variant_1_stair
soil:grass_variant_2
soil:grass_variant_2_slab
soil:grass_variant_2_stair
soil:grass_variant_3
soil:grass_variant_3_slab
soil:grass_variant_3_stair
soil:grass_variant_4
soil:grass_variant_4_slab
soil:grass_variant_4_stair
soil:gravel
soil:gravel_slab
soil:gravel_stair
soil:sand
soil:sand_coal_ore
soil:sand_copper_ore
soil:sand_diamond_ore
soil:sand_gold_ore
soil:sand_ignis_ore
soil:sand_iron_ore
soil:sand_lapis_ore
soil:sand_slab
soil:sand_stair
soil:sand_tin_ore
soil:snow
animals:animal_meat
animals:deer_spawn
animals:wolf_fang
animals:wolf_pelt
animals:wolf_spawn
muskets:blunderbuss
muskets:blunderbuss_loaded
muskets:flintlock_mechanism
muskets:pistol
muskets:pistol_loaded
muskets:rifle
muskets:rifle_loaded
admin_tools:camera
admin_tools:fill
admin_tools:paint
admin_tools:teleport_to
admin_tools:util
fonts:owo_node
flora:fern_0
flora:fern_1
flora:flax_0
flora:flax_1
flora:flax_2
flora:flax_3
flora:flax_4
flora:flax_bundle
flora:flax_seeds
flora:flower_red
flora:flower_white
flora:flower_yellow
flora:glowroot
flora:glowroot_plant_0
flora:glowroot_plant_1
flora:glowroot_plant_2
flora:glowroot_plant_3
flora:glowroot_plant_4
flora:glowroot_seeds
flora:grass_0
flora:grass_1
flora:grass_2
flora:grass_3
flora:mushroom_brown
flora:mushroom_red
flora:mushroom_white
flora:potato_0
flora:potato_1
flora:potato_2
flora:potato_3
flora:potato_4
flora:potato_seeds
flora:pumpkin
flora:pumpkin_1
flora:pumpkin_2
flora:pumpkin_plant
flora:pumpkin_plant_dead
flora:pumpkin_plant_inactive
flora:pumpkin_seeds
flora:rush_grass_0
flora:rush_grass_1
flora:rush_grass_2
flora:shrub_0
flora:shrub_1
flora:warpberry_bush
flora:warpberry_bush_fruit
flora:warpberry_gold
flora:warpberry_purple
flora:warpberry_seeds
flora:warpberry_stem
cooking:anvil
cooking:clay_crucible
cooking:fire_pit
cooking:fire_pit_active
cooking:furnace
cooking:furnace_active
cooking:oven
cooking:oven_active
cooking:oven_top
cooking:pot
cooking:spit
cooking:spit_meat
fire:fire
fire:flint_and_steel
items:bronze_bar
items:bronze_nugget
items:bronze_sheet
items:charcoal
items:clay_ball
items:coal
items:copper_bar
items:copper_nugget
items:copper_sheet
items:diamond
items:gold_bar
items:gold_nugget
items:gold_sheet
items:gunpowder
items:ignis
items:iron_bar
items:iron_nugget
items:iron_sheet
items:lapis_lazuli
items:nitrite
items:plant_fibre
items:stick
items:sulphur
items:tin_bar
items:tin_nugget
items:tin_sheet
items:wooden_bowl
items:wooden_bucket
items:wooden_bucket_river_water
items:wooden_bucket_water
items:wooden_cup
items:wooden_cup_water
rope:chain
rope:rope
rope:rope_anchor
rope:rope_coil
tcraft:unobtainium
wield:test
trees:ash_sapling
trees:oak_sapling
trees:spruce_sapling
combat:bronze_sword
combat:cooldown_debug
combat:iron_spear
combat:iron_sword
combat:test_pants
combat:test_sword
food:baked_potato
food:cooked_animal_meat
food:glowroot_soup
food:pumpkin_cooked
food:wooden_bowl_mushroom_soup
food:wooden_bowl_pumpkin_soup
dyes:black
dyes:blue
dyes:brown
dyes:dark_green
dyes:dark_red
dyes:green
dyes:grey
dyes:light_blue
dyes:light_grey
dyes:orange
dyes:pink
dyes:purple
dyes:red
dyes:white
dyes:yellow
mirecaves:cave_lily_1
mirecaves:lit
mirecaves:nolmer
mirecaves:nolmer_beam
mirecaves:nolmer_post
mirecaves:nolmer_quarter
mirecaves:nolmer_slab
mirecaves:nolmer_stair
mirecaves:nolmer_stem
mirecaves:nolmera_1
mirecaves:nolmera_2
mirecaves:nolmera_vine_1
mirecaves:river_cave_water_flowing
mirecaves:river_cave_water_source
mirecaves:stone
mirecaves:stone_beam
mirecaves:stone_coal_ore
mirecaves:stone_copper_ore
mirecaves:stone_diamond_ore
mirecaves:stone_gold_ore
mirecaves:stone_ignis_ore
mirecaves:stone_iron_ore
mirecaves:stone_lapis_ore
mirecaves:stone_moss
mirecaves:stone_moss_glow
mirecaves:stone_post
mirecaves:stone_quarter
mirecaves:stone_slab
mirecaves:stone_stair
mirecaves:stone_tin_ore
hammer:iron_hammer
tools:bronze_axe
tools:bronze_pickaxe
tools:diamond_axe
tools:diamond_pickaxe
tools:iron_axe
tools:iron_pickaxe
tools:stone_axe
tools:stone_pickaxe
fengold:gilded_stone_brick
fengold:gilded_stone_brick_beam
fengold:gilded_stone_brick_ornate
fengold:gilded_stone_brick_ornate_beam
fengold:gilded_stone_brick_ornate_post
fengold:gilded_stone_brick_ornate_quarter
fengold:gilded_stone_brick_ornate_slab
fengold:gilded_stone_brick_ornate_stair
fengold:gilded_stone_brick_post
fengold:gilded_stone_brick_quarter
fengold:gilded_stone_brick_slab
fengold:gilded_stone_brick_stair
fengold:gilded_stone_pillar
fengold:gilded_stone_pillar_beam
fengold:gilded_stone_pillar_post
fengold:gilded_stone_pillar_quarter
fengold:gilded_stone_pillar_slab
fengold:gilded_stone_pillar_stair
fengold:gold_gilding
doors:ash_door
doors:ash_door_open
doors:blocking_node
doors:oak_door
doors:oak_door_open
doors:spruce_door
doors:spruce_door_open
underworld:arlior
underworld:arlior_beam
underworld:arlior_brick
underworld:arlior_brick_beam
underworld:arlior_brick_fine
underworld:arlior_brick_fine_beam
underworld:arlior_brick_fine_post
underworld:arlior_brick_fine_quarter
underworld:arlior_brick_fine_slab
underworld:arlior_brick_fine_stair
underworld:arlior_brick_lamp
underworld:arlior_brick_lamp_beam
underworld:arlior_brick_lamp_post
underworld:arlior_brick_lamp_quarter
underworld:arlior_brick_lamp_slab
underworld:arlior_brick_lamp_stair
underworld:arlior_brick_ornate
underworld:arlior_brick_ornate_beam
underworld:arlior_brick_ornate_post
underworld:arlior_brick_ornate_quarter
underworld:arlior_brick_ornate_slab
underworld:arlior_brick_ornate_stair
underworld:arlior_brick_post
underworld:arlior_brick_quarter
underworld:arlior_brick_slab
underworld:arlior_brick_stair
underworld:arlior_fola
underworld:arlior_growth
underworld:arlior_growth_beam
underworld:arlior_growth_post
underworld:arlior_growth_purple
underworld:arlior_growth_purple_beam
underworld:arlior_growth_purple_post
underworld:arlior_growth_purple_quarter
underworld:arlior_growth_purple_slab
underworld:arlior_growth_purple_stair
underworld:arlior_growth_quarter
underworld:arlior_growth_slab
underworld:arlior_growth_stair
underworld:arlior_mushroom_blue
underworld:arlior_post
underworld:arlior_quarter
underworld:arlior_slab
underworld:arlior_stair
underworld:arlior_stem
underworld:arlioran
underworld:arlioran_slab
underworld:arlioran_stair
underworld:ash
underworld:cortite
underworld:cortite_rod
underworld:cortite_sceptre
underworld:fog
underworld:fog_10
underworld:glow_rock
underworld:glow_rock_beam
underworld:glow_rock_post
underworld:glow_rock_quarter
underworld:glow_rock_slab
underworld:glow_rock_stair
underworld:lava_brick
underworld:lava_brick_beam
underworld:lava_brick_coral
underworld:lava_brick_coral_beam
underworld:lava_brick_coral_post
underworld:lava_brick_coral_quarter
underworld:lava_brick_coral_slab
underworld:lava_brick_coral_stair
underworld:lava_brick_fine
underworld:lava_brick_fine_beam
underworld:lava_brick_fine_post
underworld:lava_brick_fine_quarter
underworld:lava_brick_fine_slab
underworld:lava_brick_fine_stair
underworld:lava_brick_lamp
underworld:lava_brick_lamp_beam
underworld:lava_brick_lamp_post
underworld:lava_brick_lamp_quarter
underworld:lava_brick_lamp_slab
underworld:lava_brick_lamp_stair
underworld:lava_brick_ornate
underworld:lava_brick_ornate_beam
underworld:lava_brick_ornate_post
underworld:lava_brick_ornate_quarter
underworld:lava_brick_ornate_slab
underworld:lava_brick_ornate_stair
underworld:lava_brick_pillar
underworld:lava_brick_pillar_beam
underworld:lava_brick_pillar_post
underworld:lava_brick_pillar_quarter
underworld:lava_brick_pillar_slab
underworld:lava_brick_pillar_stair
underworld:lava_brick_post
underworld:lava_brick_quarter
underworld:lava_brick_slab
underworld:lava_brick_stair
underworld:lava_coral
underworld:lava_coral_beam
underworld:lava_coral_bulb
underworld:lava_coral_post
underworld:lava_coral_quarter
underworld:lava_coral_slab
underworld:lava_coral_sparse
underworld:lava_coral_sparse_beam
underworld:lava_coral_sparse_post
underworld:lava_coral_sparse_quarter
underworld:lava_coral_sparse_slab
underworld:lava_coral_sparse_stair
underworld:lava_coral_stair
underworld:lava_coral_top
underworld:lava_coral_top_beam
underworld:lava_coral_top_post
underworld:lava_coral_top_quarter
underworld:lava_coral_top_slab
underworld:lava_coral_top_stair
underworld:lava_rock
underworld:lava_rock_beam
underworld:lava_rock_coral
underworld:lava_rock_coral_beam
underworld:lava_rock_coral_infested
underworld:lava_rock_coral_post
underworld:lava_rock_coral_quarter
underworld:lava_rock_coral_slab
underworld:lava_rock_coral_stair
underworld:lava_rock_cortite
underworld:lava_rock_mythril
underworld:lava_rock_mythril_coral_infested
underworld:lava_rock_post
underworld:lava_rock_quarter
underworld:lava_rock_slab
underworld:lava_rock_stair
underworld:mythril
underworld:mythril_hammer
underworld:mythril_pickaxe
underworld:mythril_strand
underworld:mythrite
underworld:mythrite_beam
underworld:mythrite_brick
underworld:mythrite_brick_beam
underworld:mythrite_brick_fine
underworld:mythrite_brick_fine_beam
underworld:mythrite_brick_fine_post
underworld:mythrite_brick_fine_quarter
underworld:mythrite_brick_fine_slab
underworld:mythrite_brick_fine_stair
underworld:mythrite_brick_pillar
underworld:mythrite_brick_pillar_beam
underworld:mythrite_brick_pillar_post
underworld:mythrite_brick_pillar_quarter
underworld:mythrite_brick_pillar_slab
underworld:mythrite_brick_pillar_stair
underworld:mythrite_brick_post
underworld:mythrite_brick_quarter
underworld:mythrite_brick_slab
underworld:mythrite_brick_stair
underworld:mythrite_lamp
underworld:mythrite_post
underworld:mythrite_quarter
underworld:mythrite_slab
underworld:mythrite_stair
underworld:workaround_node
underworld:worknode_ceiling
underworld:worknode_dust
underworld:worknode_soil
underworld:worknode_topsoil
pipes:distributor
pipes:pipe
pipes:siphon
terracotta:black
terracotta:black_beam
terracotta:black_post
terracotta:black_quarter
terracotta:black_slab
terracotta:black_stair
terracotta:blue
terracotta:blue_beam
terracotta:blue_post
terracotta:blue_quarter
terracotta:blue_slab
terracotta:blue_stair
terracotta:brown
terracotta:brown_beam
terracotta:brown_post
terracotta:brown_quarter
terracotta:brown_slab
terracotta:brown_stair
terracotta:dark_green
terracotta:dark_green_beam
terracotta:dark_green_post
terracotta:dark_green_quarter
terracotta:dark_green_slab
terracotta:dark_green_stair
terracotta:dark_red
terracotta:dark_red_beam
terracotta:dark_red_post
terracotta:dark_red_quarter
terracotta:dark_red_slab
terracotta:dark_red_stair
terracotta:green
terracotta:green_beam
terracotta:green_post
terracotta:green_quarter
terracotta:green_slab
terracotta:green_stair
terracotta:grey
terracotta:grey_beam
terracotta:grey_post
terracotta:grey_quarter
terracotta:grey_slab
terracotta:grey_stair
terracotta:light_blue
terracotta:light_blue_beam
terracotta:light_blue_post
terracotta:light_blue_quarter
terracotta:light_blue_slab
terracotta:light_blue_stair
terracotta:light_grey
terracotta:light_grey_beam
terracotta:light_grey_post
terracotta:light_grey_quarter
terracotta:light_grey_slab
terracotta:light_grey_stair
terracotta:orange
terracotta:orange_beam
terracotta:orange_post
terracotta:orange_quarter
terracotta:orange_slab
terracotta:orange_stair
terracotta:pink
terracotta:pink_beam
terracotta:pink_post
terracotta:pink_quarter
terracotta:pink_slab
terracotta:pink_stair
terracotta:purple
terracotta:purple_beam
terracotta:purple_post
terracotta:purple_quarter
terracotta:purple_slab
terracotta:purple_stair
terracotta:red
terracotta:red_beam
terracotta:red_post
terracotta:red_quarter
terracotta:red_slab
terracotta:red_stair
terracotta:white
terracotta:white_beam
terracotta:white_post
terracotta:white_quarter
terracotta:white_slab
terracotta:white_stair
terracotta:yellow
terracotta:yellow_beam
terracotta:yellow_post
terracotta:yellow_quarter
terracotta:yellow_slab
terracotta:yellow_stair
liquids:ice
liquids:lava_flowing
liquids:lava_source
liquids:river_water_flowing
liquids:river_water_source
liquids:water_flowing
liquids:water_source]]

for i, name in ipairs(string.split(node_list, "\n", false)) do
	core.register_alias("pmb_" .. name, "aom_" .. name)
end

local entity_list =
[[lantern:lantern_ENTITY
entity_base:base
kelar:rock_ENTITY
seelie:seelie_shrine_ENTITY
elementals:magma
rope:rope_coil_ENTITY
fenn:spear_ENTITY
elementals:stone
wrench:wrench_ENTITY
kelar:kelar_underworld
muskets:musket_shot_ENTITY
kelar:kelar
bow:arrow_ENTITY
underworld:coral_bug
admin_tools:fill_ENTITY_1
animals:deer
underworld:cortite_orb
admin_tools:fill_ENTITY_2
animals:wolf]]

for i, name in ipairs(string.split(entity_list, "\n", false)) do
	minetest.register_entity(":pmb_" .. name, {
		initial_properties = {
			visual = "none",
			stepheight = 0,
			physical = false,
			pointable = false,
		},
		on_activate = function(self, staticdata, dtime_s)
			local new_ent_name = "aom_" .. name
			if not core.registered_entities[new_ent_name] then
				core.log("warning", "[aom_pmb_bridge] no entity with name: " .. new_ent_name)
				return
			end
			core.add_entity(self.object:get_pos(), new_ent_name, staticdata)
			core.log("warning", "[aom_pmb_bridge] old pmb entity successfully replaced: " .. new_ent_name)
			self.object:remove()
		end,
	})
end
