ExchangeClone/energy.lua

1718 lines
49 KiB
Lua

-- WARNING: Do not use aliases; they will be ignored.
exchangeclone.mtg_energy_values = {
["exchangeclone"] = {
exchange_orb = 33792,
element_deconstructor = 67592,
element_constructor = 92168,
energy_collector = 23901,
philosophers_stone = 9984,
alchemical_coal = 512,
mobius_fuel = 2048,
aeternalis_fuel = 8192,
dark_matter = 139264,
dark_matter_block = 139264,
red_matter = 466944,
red_matter_block = 466944,
dark_matter_sword = 286720,
red_matter_sword = 892928,
dark_matter_shears = 147456,
red_matter_shears = 614400,
dark_matter_hoe = 294912,
red_matter_hoe = 1368064,
dark_matter_hoe_3x3 = 294912,
red_matter_hoe_3x3 = 1368064,
dark_matter_shovel = 155648,
red_matter_shovel = 761856,
dark_matter_hammer = 303104,
red_matter_hammer = 1515520,
dark_matter_hammer_3x3 = 303104,
red_matter_hammer_3x3 = 1515520,
dark_matter_pickaxe = 434176,
red_matter_pickaxe = 1974272,
dark_matter_pickaxe_3x1 = 434176,
red_matter_pickaxe_3x1 = 1974272,
dark_matter_axe = 434176,
red_matter_axe = 1974272,
red_katar = 7512064,
red_katar_3x3 = 7512064,
red_morningstar = 7053312,
red_morningstar_3x1 = 7053312,
red_morningstar_3x3 = 7053312,
helmet_dark_matter = 139264*5,
chestplate_dark_matter = 139264*8,
leggings_dark_matter = 139264*7,
boots_dark_matter = 139264*4,
helmet_red_matter = (139264+466944)*5,
chestplate_red_matter = (139264+466944)*8,
leggings_red_matter = (139264+466944)*7,
boots_red_matter = (139264+466944)*4,
pesa = 64,
},
["beds"] = {
bed_bottom = 168,
fancy_bed_bottom = 172,
},
["binoculars"] = {
binoculars = 796,
},
["boats"] = {
boat = 40,
},
["bones"] = {
bones = 4,
},
["bucket"] = {
bucket_empty = 768,
bucket_water = 768,
bucket_river_water = 768,
bucket_lava = 896,
},
["butterflies"] = {
butterfly_red = 0,
butterfly_violet = 0,
butterfly_white = 0,
},
["carts"] = {
brakerail = 93,
cart = 1280,
powerrail = 313,
rail = 86,
},
-- Names listed are in the order shown in the minetest_game repo
["default"] = {
--- Nodes
-- Stone
mossycobble = 32,
sandstone = 4,
sandstonebrick = 4,
sandstone_block = 4,
desert_sandstone = 4,
desert_sandstone_brick = 4,
desert_sandstone_block = 4,
silver_sandstone = 4,
silver_sandstone_brick = 4,
silver_sandstone_block = 4,
obsidian = 64,
obsidianbrick = 64,
obsidian_block = 64,
-- Soft / Non-Stone,
clay = 64,
-- Trees,
apple = 5,
emergent_jungle_sapling = 32,
-- Ores,
stone_with_coal = 0,
coalblock = 128*9,
stone_with_iron = 0,
steelblock = 256*9,
stone_with_copper = 0,
copperblock = 320*9,
stone_with_tin = 0,
tinblock = 384*9,
bronzeblock = 327*9,
stone_with_gold = 0,
goldblock = 2048*9,
stone_with_mese = 4096,
mese = 4096*9,
stone_with_diamond = 8192,
diamondblock = 8192*9,
-- Plantlife,
cactus = 8,
large_cactus_seedling = 32,
papyrus = 32,
bush_stem = 8,
bush_leaves = 1,
bush_sapling = 32,
acacia_bush_stem = 8,
acacia_bush_leaves = 1,
acacia_bush_sapling = 32,
pine_bush_stem = 8,
pine_bush_needles = 1,
pine_bush_sapling = 32,
blueberry_bush_leaves_with_berries = 9,
blueberry_bush_leaves = 1,
blueberry_bush_sapling = 32,
sand_with_kelp = 32,
-- Corals,
coral_green = 8,
coral_pink = 8,
coral_cyan = 8,
coral_brown = 8,
coral_orange = 8,
coral_skeleton = 8,
-- Tools / "Advanced" crafting / Non-"natural",
bookshelf = 336,
fence_rail_wood = 2,
fence_rail_pine_wood = 2,
fence_rail_junglewood = 2,
fence_rail_aspen_wood = 2,
fence_rail_acacia_wood = 2,
snow = 0.5,
snowblock = 5,
sign_wall_wood = 17,
sign_wall_steel = 513,
ladder_wood = 5.5,
ladder_steel = 119,
obsidian_glass = 7,
brick = 64,
meselamp = 4097,
mese_post_light = 3074,
mese_post_light_acacia_wood = 3074,
mese_post_light_junglewood = 3074,
mese_post_light_pine_wood = 3074,
mese_post_light_aspen_wood = 3074,
--- Craft Items
blueberries = 8,
book = 96,
book_written = 96,
bronze_ingot = 327,
clay_brick = 16,
clay_lump = 16,
coal_lump = 128,
copper_ingot = 320,
copper_lump = 320,
diamond = 8192,
flint = 4,
gold_ingot = 2048,
gold_lump = 2048,
iron_lump = 256,
mese_crystal = 4096,
mese_crystal_fragment = 455,
obsidian_shard = 7,
paper = 32,
steel_ingot = 256,
stick = 4,
tin_ingot = 384,
tin_lump = 384,
--- Furnace
furnace = 8,
--- Tools
-- Picks
shovel_stone = 9,
sword_stone = 6,
pick_stone = 11,
axe_stone = 11,
shovel_wood = 16,
sword_wood = 20,
pick_wood = 32,
axe_wood = 32,
shovel_gold = 2056,
sword_gold = 5000,
pick_gold = 6152,
axe_gold = 6152,
shovel_steel = 264,
sword_steel = 516,
pick_steel = 796,
axe_steel = 796,
shovel_bronze = 335,
sword_bronze = 662,
pick_bronze = 989,
axe_bronze = 989,
shovel_diamond = 8200,
sword_diamond = 16392,
pick_diamond = 24584,
axe_diamond = 24584,
shovel_mese = 4104,
sword_mese = 8200,
pick_mese = 12296,
axe_mese = 12296,
water_source = 0,
lava_source = 0,
river_water_source = 0,
--- Torch
torch = 129,
--- Chest
chest = 64,
chest_locked = 320,
},
["doors"] = {
door_glass = 6,
door_obsidian_glass = 42,
door_steel = 1536,
door_wood = 48,
gate_wood_closed = 32,
gate_pine_wood_closed = 32,
gate_junglewood_closed = 32,
gate_aspen_wood_closed = 32,
gate_acacia_wood_closed = 32,
trapdoor = 24,
trapdoor_steel = 1024,
},
["farming"] = {
seed_wheat = 16,
wheat = 24,
flour = 96,
bread = 96,
straw = 72,
cotton = 12,
string = 12,
cotton_wild = 12,
seed_cotton = 10,
hoe_steel = 520,
hoe_wood = 24,
hoe_stone = 10,
},
["fire"] = {
flint_and_steel = 260,
permanent_flame = 0,
},
["fireflies"] = {
bug_net = 52,
firefly = 0, --you don't get to kill them :D
firefly_bottle = 0,
},
["keys"] = {
skeleton_key = 2048,
},
["mapping_kit"] = {
mapping_kit = 629,
},
["screwdriver"] = {
screwdriver = 260,
},
["moreswords"] = {
sword_ice = 16394,
sword_lava = 18184,
sword_pick = 40976,
sword_smoke = 16483,
sword_teleport = 16520,
sword_water = 1556,
},
["tnt"] = {
gunpowder = 25,
tnt_stick = 91,
tnt = 819,
},
["vessels"] = {
drinking_glass = 0.5,
glass_bottle = 0.5,
glass_fragments = 1,
shelf = 49.5,
steel_bottle = 256,
},
["xpanes"] = {
bar_flat = 96,
door_steel_bar = 576,
obsidian_pane_flat = 2.5,
pane_flat = 0.5,
trapdoor_steel_bar = 384,
},
["sound_machine"] = {
sound_machine = 2608,
portable_sound_machine = 2608,
},
["fake_liquids"] = {
solid_water_source = 3,
solid_useless_bean_liquid_source = 0,
solid_useful_green_potato_liquid_source = 3,
solid_glue_source = 35,
solid_river_water_source = 3,
solid_lava_source = 131,
bucket_fake_lava = 4864,
bucket_fake_water = 4992,
solid_fake_lava_source = 4099,
solid_fake_water_source = 4227,
},
["sticky_things"] = {
bucket_glue = 800,
glue_source = 0,
glue_flowing = 0,
},
["ghost_blocks"] = {
ghostifier = 8200,
},
["small_why_things"] = {
craftable_barrier = 72,
},
["useful_green_potatoes"] = {
useful_green_potato = 256,
useful_green_potato_ingot = 256,
useful_green_potato_block = 256*9,
useful_green_potato_ingot_block = 256*9,
axe_useful_green_potato = 256*3+8,
pick_useful_green_potato = 256*3+8,
sword_useful_green_potato = 256*2+4,
shovel_useful_green_potato = 256+8,
hoe_useful_green_potato = 256*2+8,
helmet_useful_green_potato = 256*5,
chestplate_useful_green_potato = 256*8,
shield_useful_green_potato = 256*7,
leggings_useful_green_potato = 256*7,
boots_useful_green_potato = 256*4,
bucket_useful_green_potato_liquid = 768, -- renewable
useful_green_potato_gold = 2048*8+256
}
}
--[[Some energy values taken from https://technicpack.fandom.com/wiki/Alchemical_Math
I had to change some since they weren't as "equivalent" as they were supposed to be.
I also didn't type out the ones with a value of 1, since that's the default.]]
exchangeclone.mcl_energy_values = {
["exchangeclone"] = {
element_deconstructor = 67592,
element_constructor = 92168,
energy_collector = 23883,
exchange_orb = 33792,
philosophers_stone = 9984,
alchemical_coal = 512,
mobius_fuel = 2048,
aeternalis_fuel = 8192,
dark_matter = 139264,
dark_matter_block = 139264,
red_matter = 466944,
red_matter_block = 466944,
dark_matter_sword = 286720,
red_matter_sword = 892928,
dark_matter_shears = 147456,
red_matter_shears = 614400,
dark_matter_hoe = 294912,
red_matter_hoe = 1368064,
dark_matter_hoe_3x3 = 294912,
red_matter_hoe_3x3 = 1368064,
dark_matter_shovel = 155648,
red_matter_shovel = 761856,
dark_matter_hammer = 303104,
red_matter_hammer = 1515520,
dark_matter_hammer_3x3 = 303104,
red_matter_hammer_3x3 = 1515520,
dark_matter_pickaxe = 434176,
red_matter_pickaxe = 1974272,
dark_matter_pickaxe_3x1 = 434176,
red_matter_pickaxe_3x1 = 1974272,
dark_matter_axe = 434176,
red_matter_axe = 1974272,
red_katar = 7512064,
red_katar_3x3 = 7512064,
red_morningstar = 7053312,
red_morningstar_3x1 = 7053312,
red_morningstar_3x3 = 7053312,
helmet_dark_matter = 139264*5,
chestplate_dark_matter = 139264*8,
leggings_dark_matter = 139264*7,
boots_dark_matter = 139264*4,
helmet_red_matter = (139264+466944)*5,
chestplate_red_matter = (139264+466944)*8,
leggings_red_matter = (139264+466944)*7,
boots_red_matter = (139264+466944)*4,
pesa = 64,
},
["mcl_core"] = {
stonebrickmossy = 9,
bedrock = 0,
deadbush = 4,
mossycobble = 9,
stick = 4,
flint = 4,
cactus = 8,
vine = 8,
cobweb = 12,
ladder = 9,
clay_lump = 16,
brick = 16,
charcoal_lump = 32,
reeds = 32,
paper = 32,
sugar = 32,
obsidian = 64,
stone_with_redstone = 0, --ores are worth 0, because the amount sometimes varies (Fortune)
crying_obsidian = 1000,
clay = 64,
brick_block = 64,
coal_lump = 128,
stone_with_coal = 0,
apple = 128,
gold_nugget = 227,
iron_ingot = 256,
stone_with_iron = 0,
lapis = 864,
stone_with_lapis = 0,
emerald = 4096,
stone_with_emerald = 0,
gold_ingot = 2048,
stone_with_gold = 0,
ironblock = 2304,
diamond = 8192,
stone_with_diamond = 0,
apple_gold = 16512,
apple_gold_enchanted = 7378,
bone_block = 432,
bowl = 24,
coalblock = 1152,
dead_bush = 4,
diamondblock = 73728,
goldblock = 18432,
iron_nugget = 28,
lapisblock = 7776,
packed_ice = 9,
slimeblock = 216,
snow = 0.5,
glass = 1,
emeraldblock = 4096*9,
},
["mcl_droppers"] = {
dropper = 71,
},
["mcl_blast_furnace"] = {
blast_furnace = 1291,
},
["doc_identifier"] = {
identifier_solid = 5,
identifier_liquid = 5,
},
["mcl_beds"] = {
respawn_anchor = 10608,
},
["mcl_bells"] = {
bell = 8192,
},
["mcl_enchanting"] = {
table = 16790,
},
["mcl_armor"] = {
boots_leather = 256,
helmet_leather = 320,
leggings_leather = 448,
chestplate_leather = 512,
boots_chain = 768,
helmet_chain = 1024,
leggings_chain = 1536,
chestplate_chain = 1792,
boots_iron = 1024,
helmet_iron = 1280,
leggings_iron = 1792,
chestplate_iron = 2048,
boots_gold = 8192,
helmet_gold = 10240,
leggings_gold = 14336,
chestplate_gold = 16384,
boots_diamond = 32768,
helmet_diamond = 40960,
leggings_diamond = 57344,
chestplate_diamond = 65536,
boots_netherite = 106496,
helmet_netherite = 114688,
leggings_netherite = 131072,
chestplate_netherite = 139264,
boots_leather_enchanted = 256,
helmet_leather_enchanted = 320,
leggings_leather_enchanted = 448,
chestplate_leather_enchanted = 512,
boots_chain_enchanted = 768,
helmet_chain_enchanted = 1024,
leggings_chain_enchanted = 1536,
chestplate_chain_enchanted = 1792,
boots_iron_enchanted = 1024,
helmet_iron_enchanted = 1280,
leggings_iron_enchanted = 1792,
chestplate_iron_enchanted = 2048,
boots_gold_enchanted = 8192,
helmet_gold_enchanted = 10240,
leggings_gold_enchanted = 14336,
chestplate_gold_enchanted = 16384,
boots_diamond_enchanted = 32768,
helmet_diamond_enchanted = 40960,
leggings_diamond_enchanted = 57344,
chestplate_diamond_enchanted = 65536,
boots_netherite_enchanted = 106496,
helmet_netherite_enchanted = 114688,
leggings_netherite_enchanted = 131072,
chestplate_netherite_enchanted = 139264,
elytra = 297216,
},
["mcl_anvils"] = {
anvil = 7936,
anvil_damage_1 = 5632,
anvil_damage_2 = 3328,
},
["mcl_crafting_table"] = {
crafting_table = 32,
},
["mcl_bows"] = {
arrow = 3,
bow = 48,
crossbow = 295,
crossbow_loaded = 298,
rocket = 451,
},
["mcl_campfires"] = {
campfire_lit = 140,
soul_campfire_lit = 157,
campfire = 140,
soul_campfire = 157,
},
["mcl_amethyst"] = {
amethyst_shard = 256,
small_amethyst_bud = 256,
medium_amethyst_bud = 341,
large_amethyst_bud = 426,
amethyst_cluster = 512,
budding_amethyst_block = 0, --not obtainable in survival
amethyst_block = 1024,
tinted_glass = 1025,
calcite = 128,
},
["mcl_fireworks"] = {
rocket_1 = 224,
rocket_2 = 416,
rocket_3 = 608,
},
["mcl_fire"] = {
fire_charge = 331,
flint_and_steel = 260,
},
["mcl_fletching_table"] = {
fletching_table = 72,
},
["mcl_flowerpots"] = {
flower_pot = 48,
},
["mcl_fishing"] = {
fishing_rod = 36,
fishing_rod_enchanted = 7,
clownfish_raw = 64,
fish_cooked = 40,
fish_raw = 40,
pufferfish_raw = 64,
salmon_cooked = 48,
salmon_raw = 48,
},
["mcl_throwing"] = {
snowball = 0.25,
egg = 32,
ender_pearl = 1024, --I hate typing "ender" in Lua; it thinks I'm typing "end" and unindents.
},
["mcl_bamboo"] = {
bamboo = 2,
scaffolding = 4,
bamboo_block = 16,
bamboo_block_stripped = 16,
bamboo_plank = 8,
bamboo_mosaic = 8,
bamboo_door = 16,
},
["mcl_doors"] = {
acacia_door = 16,
birch_door = 16,
dark_oak_door = 16,
iron_door = 512,
jungle_door = 16,
spruce_door = 16,
wooden_door = 16,
iron_trapdoor = 768
},
["mcl_lanterns"] = {
chain = 298,
lantern_floor = 177,
soul_lantern_floor = 189,
},
["mcl_lectern"] = {
lectern = 514,
},
["mcl_lightning_rods"] = {
rod = 255,
},
["mcl_loom"] = {
loom = 40,
},
["mcl_maps"] = {
empty_map = 1120,
filled_map = 1120,
filled_map_mcl_skins_base_1B47A57FF_male_crea = 1120,
filled_map_mcl_skins_base_1EEB592FF_male_crea = 1120,
filled_map_mcl_skins_base_18D471DFF_male_crea = 1120,
filled_map_mcl_skins_base_1B47A57FF_female_crea = 1120,
filled_map_mcl_skins_base_1EEB592FF_female_crea = 1120,
filled_map_mcl_skins_base_18D471DFF_female_crea = 1120,
filled_map_mcl_skins_base_1B47A57FF_male_surv = 1120,
filled_map_mcl_skins_base_1EEB592FF_male_surv = 1120,
filled_map_mcl_skins_base_18D471DFF_male_surv = 1120,
filled_map_mcl_skins_base_1B47A57FF_female_surv = 1120,
filled_map_mcl_skins_base_1EEB592FF_female_surv = 1120,
filled_map_mcl_skins_base_18D471DFF_female_surv = 1120,
},
["mcl_minecarts"] = {
activator_rail = 268,
detector_rail = 267,
golden_rail = 2059,
minecart = 1280,
furnace_minecart = 1288,
chest_minecart = 1312,
hopper_minecart = 2624,
tnt_minecart = 2244,
rail = 96
},
["mcl_tnt"] = {
tnt = 964,
},
["mcl_furnaces"] = {
furnace = 8
},
["mcl_farming"] = {
hoe_stone = 10,
hoe_wood = 24,
hoe_iron = 520,
hoe_gold = 4104,
hoe_diamond = 16380,
hoe_netherite = 90108,
hoe_stone_enchanted = 10,
hoe_wood_enchanted = 24,
hoe_iron_enchanted = 520,
hoe_gold_enchanted = 4104,
hoe_diamond_enchanted = 16380,
hoe_netherite_enchanted = 90108,
wheat_seeds = 16,
beetroot_seeds = 16,
beetroot_item = 24,
beetroot_soup = 144,
carrot_item = 24,
carrot_item_gold = 1840,
hay_block = 216,
potato_item = 24,
potato_item_baked = 24,
potato_item_poison = 24,
melon_seeds = 36,
melon = 144,
melon_item = 36,
cookie = 22,
pumpkin_seeds = 36,
wheat_item = 24,
bread = 72,
pumpkin = 144,
pumpkin_face = 144,
pumpkin_face_light = 153,
pumpkin_pie = 208,
sweet_berry = 16,
},
["mcl_cake"] = {
cake = 411,
},
["mcl_cocoas"] = {
cocoa_beans = 128,
},
["mcl_beacons"] = {
beacon = 73925,
},
["mcl_heads"] = {
creeper = 256,
skeleton = 256,
steve = 256,
zombie = 256,
wither_skeleton = 50000,
},
["mcl_hamburger"] = {
hamburger = 150,
},
["mcl_barrels"] = {
barrel_closed = 56,
},
["mcl_flowers"] = {
waterlily = 16,
wither_rose = 128,
},
["mcl_mangrove"] = {
mangrove_door = 16,
mangrove_mud_roots = 2,
},
["mcl_comparators"] = {
comparator_off_comp = 335,
},
["mcl_nether"] = {
nether_brick = 4,
red_nether_brick = 50,
nether_wart_item = 24,
soul_sand = 49,
glowstone_dust = 384,
glowstone = 1536,
ancient_debris = 16384,
netherite_scrap = 16384,
netherite_ingot = 73728,
quartz = 128,
quartz_ore = 128,
quartz_block = 512,
quartz_chiseled = 256,
quartz_pillar = 512,
quartz_smooth = 512,
magma = 4,
netheriteblock = 663552,
},
["mcl_observers"] = {
observer_off = 262,
},
["mcl_ocean"] = {
brain_coral = 8,
brain_coral_block = 8,
brain_coral_fan = 8,
bubble_coral = 8,
bubble_coral_block = 8,
bubble_coral_fan = 8,
fire_coral = 8,
fire_coral_block = 8,
fire_coral_fan = 8,
horn_coral = 8,
horn_coral_block = 8,
horn_coral_fan = 8,
tube_coral = 8,
tube_coral_block = 8,
tube_coral_fan = 8,
--dead coral worth 1.
kelp = 32,
dried_kelp = 32,
dried_kelp_block = 288,
prismarine_shard = 2, --crafted with cyan glass
prismarine = 8,
prismarine_brick = 18,
prismarine_dark = 24,
prismarine_crystals = 2054,
sea_lantern = 10278,
-- TODO Add more sea pickles once MineClone does.
sea_pickle_1_dead_brain_coral_block = 8,
seagrass = 1,
},
["mcl_portals"] = {
end_portal_frame = 0,
},
["mcl_fences"] = {
nether_brick_fence = 3,
},
["mcl_walls"] = {
brick = 64,
mossycobble = 9,
netherbrick = 4,
rednetherbrick = 50,
redsandstone = 4,
sandstone = 4,
stonebrickmossy = 9,
},
["mcl_end"] = {
chorus_flower = 32,
chorus_fruit = 16,
chorus_fruit_popped = 16,
crystal = 4293,
ender_eye = 1792,
dragon_egg = 139264,
end_rod = 388,
purpur_block = 64,
purpur_pillar = 64,
},
["mcl_experience"] = {
bottle = 2048,
},
["mcl_raw_ores"] = {
raw_gold = 2048,
raw_gold_block = 2048*9,
raw_iron = 256,
raw_iron_block = 256*9,
},
["mcl_shields"] = {
shield = 304,
shield_black = 596,
shield_blue = 596,
shield_brown = 596,
shield_cyan = 596,
shield_green = 596,
shield_grey = 596,
shield_light_blue = 596,
shield_lime = 596,
shield_magenta = 596,
shield_orange = 596,
shield_pink = 596,
shield_purple = 596,
shield_red = 596,
shield_silver = 596,
shield_white = 596,
shield_yellow = 596,
},
["mcl_smithing_table"] = {
table = 544,
},
["mcl_smoker"] = {
smoker = 72,
},
["mcl_sponges"] = {
sponge = 1024,
sponge_wet = 1024,
sponge_wet_river_water = 1024,
},
["mcl_spyglass"] = {
spyglass = 426,
},
["mcl_copper"] = {
copper_ingot = 85,
raw_copper = 85,
block_raw = 765,
stone_with_copper = 0,
-- TODO: If MineClone switches to 9, change blocks to 765 (and 797 for waxed)
block = 340,
block_exposed = 340,
block_oxidized = 340,
block_weathered = 340,
block_cut = 340,
block_exposed_cut = 340,
block_oxidized_cut = 340,
block_weathered_cut = 340,
waxed_block = 372,
waxed_block_exposed = 372,
waxed_block_oxidized = 372,
waxed_block_weathered = 372,
waxed_block_cut = 372,
waxed_block_exposed_cut = 372,
waxed_block_oxidized_cut = 372,
waxed_block_weathered_cut = 372,
},
["mcl_deepslate"] = {
deepslate_with_coal = 0,
deepslate_with_copper = 0,
deepslate_with_diamond = 0,
deepslate_with_emerald = 0,
deepslate_with_gold = 0,
deepslate_with_iron = 0,
deepslate_with_redstone = 0,
deepslate_with_lapis = 0,
},
["xpanes"] = {
bar_flat = 96,
},
["mcl_brewing"] = {
stand_000 = 1539
},
["mcl_cauldrons"] = {
cauldron = 1792,
},
["mesecons_button"] = {
button_stone_off = 1,
},
["mesecons"] = {
wire_00000000_off = 64,
},
["mesecons_commandblock"] = {
commandblock_off = 0,
},
["mesecons_lightstone"] = {
lightstone_off = 1792,
},
["mesecons_pistons"] = {
piston_normal_off = 348,
piston_sticky_off = 372
},
["mesecons_solarpanel"] = {
solar_panel_off = 399,
},
["mesecons_torch"] = {
mesecon_torch_on = 68,
redstoneblock = 576,
},
["mcl_armor_stand"] = {
armor_stand = 24.5,
},
["mesecons_pressureplates"] = {
pressure_plate_stone_off = 2,
},
["mesecons_walllever"] = {
wall_lever_off = 5
},
["mesecons_noteblock"] = {
noteblock = 128,
},
["mesecons_delayer"] = {
delayer_off_1 = 203,
},
["mclx_fences"] = {
nether_brick_fence_gate = 6,
red_nether_brick_fence = 33,
red_nether_brick_fence_gate = 150,
},
["mcl_totems"] = {
totem = 106496,
},
["mcl_tools"] = {
shears = 512,
shovel_stone = 9,
sword_stone = 6,
pick_stone = 11,
axe_stone = 11,
shovel_wood = 16,
sword_wood = 20,
pick_wood = 32,
axe_wood = 32,
shovel_gold = 2056,
sword_gold = 5000,
pick_gold = 6152,
axe_gold = 6152,
shovel_iron = 264,
sword_iron = 516,
pick_iron = 796,
axe_iron = 796,
shovel_diamond = 8200,
sword_diamond = 16392,
pick_diamond = 24584,
axe_diamond = 24584,
shovel_netherite = 81928,
sword_netherite = 90120,
pick_netherite = 98312,
axe_netherite = 98312,
shovel_stone_enchanted = 9,
sword_stone_enchanted = 6,
pick_stone_enchanted = 11,
axe_stone_enchanted = 11,
shovel_wood_enchanted = 16,
sword_wood_enchanted = 20,
pick_wood_enchanted = 32,
axe_wood_enchanted = 32,
shovel_gold_enchanted = 2056,
sword_gold_enchanted = 5000,
pick_gold_enchanted = 6152,
axe_gold_enchanted = 6152,
shovel_iron_enchanted = 264,
sword_iron_enchanted = 516,
pick_iron_enchanted = 796,
axe_iron_enchanted = 796,
shovel_diamond_enchanted = 8200,
sword_diamond_enchanted = 16392,
pick_diamond_enchanted = 24584,
axe_diamond_enchanted = 24584,
shovel_netherite_enchanted = 81928,
sword_netherite_enchanted = 90120,
pick_netherite_enchanted = 98312,
axe_netherite_enchanted = 98312,
},
["mcl_potions"] = {
fermented_spider_eye = 192,
speckled_melon = 1852,
--TODO: Fix dragon's breath (& lingering potions/arrows) once it works like MC.
dragon_breath = 8.5,
},
["mcl_hoppers"] = {
hopper = 1344,
},
["mcl_itemframes"] = {
item_frame = 96,
glow_item_frame = 352,
},
["mcl_mobitems"] = {
string = 12,
rotten_flesh = 24,
slimeball = 24,
feather = 48,
porkchop = 64,
cooked_porkchop = 64,
beef = 64,
cooked_beef = 64,
chicken = 48,
cooked_chicken = 48,
rabbit = 40,
cooked_rabbit = 40,
mutton = 48,
cooked_mutton = 48,
diamond_horse_armor = 73728,
gold_horse_armor = 18432,
iron_horse_armor = 2304,
heart_of_the_sea = 50000,
nautilus_shell = 10000,
leather = 64,
spider_eye = 128,
bone = 144,
gunpowder = 192,
milk_bucket = 832,
saddle = 192,
blaze_powder = 768,
magma_cream = 768,
blaze_rod = 1536,
ghast_tear = 4096,
nether_star = 73728,
shulker_shell = 2048,
ink_sac = 32,
glow_ink_sac = 256,
carrot_on_a_stick = 60,
rabbit_foot = 64,
rabbit_hide = 16,
rabbit_stew = 144,
warped_fungus_on_a_stick = 68,
},
["mcl_mobs"] = {
nametag = 128,
},
["mcl_mobspawners"] = {
spawner = 0,
},
["mcl_jukebox"] = {
jukebox = 8156,
},
["mcl_honey"] = {
honeycomb = 32,
honey_bottle = 33,
honey_block = 128,
honeycomb_block = 128,
},
["mcl_beehives"] = {
bee_nest = 144,
beehive = 144,
},
["mcl_blackstone"] = {
soul_soil = 49,
soul_torch = 21,
nether_gold = 2048,
blackstone_gilded = 2048,
quartz_brick = 512,
},
["mcl_torches"] = {
torch = 9, --would be more, but charcoal kind of ruins it.
},
["mcl_mushrooms"] = {
mushroom_stew = 88,
},
["mcl_signs"] = {
wall_sign = 17,
wall_sign_acaciawood = 17,
wall_sign_bamboo = 17,
wall_sign_birchwood = 17,
wall_sign_crimson_hyphae_wood = 17,
wall_sign_darkwood = 17,
wall_sign_junglewood = 17,
wall_sign_mangrove_wood = 17,
wall_sign_sprucewood = 17,
wall_sign_warped_hyphae_wood = 17,
},
["mcl_crimson"] = {
crimson_door = 16,
warped_door = 16,
twisting_vines = 8,
weeping_vines = 8,
shroomlight = 64,
},
["mcl_chests"] = {
chest = 64,
ender_chest = 2304,
trapped_chest = 332,
},
["mcl_paintings"] = {
painting = 96,
},
["mcl_cartography_table"] = {
cartography_table = 96,
},
["mcl_books"] = {
book = 150,
bookshelf = 498,
writable_book = 206,
written_book = 206,
},
["mcl_dispensers"] = {
dispenser = 119,
},
["mcl_buckets"] = {
bucket_empty = 768,
bucket_water = 768,
bucket_river_water = 768,
bucket_lava = 896,
bucket_cod = 896,
bucket_salmon = 896,
bucket_tropical_fish = 896,
bucket_axolotl = 1024,
},
["mcl_boats"] = {
boat = 40,
boat_acacia = 40,
boat_birch = 40,
boat_dark_oak = 40,
boat_jungle = 40,
boat_mangrove = 40,
boat_obsidian = 320,
boat_spruce = 40,
chest_boat = 104,
chest_boat_acacia = 104,
chest_boat_birch = 104,
chest_boat_dark_oak = 104,
chest_boat_jungle = 104,
chest_boat_mangrove = 104,
chest_boat_spruce = 104,
},
["mcl_compass"] = {
lodestone = 73736,
},
["mcl_composters"] = {
composter = 28,
},
["mcl_grindstone"] = {
grindstone = 24.5,
},
["mcl_stonecutter"] = {
stonecutter = 259,
},
["mcl_target"] = {
target_off = 280,
},
["mcl_stairs"] = {
slab_acaciatree_bark = 16,
slab_birchtree_bark = 16,
slab_darktree_bark = 16,
slab_jungletree_bark = 16,
slab_sprucetree_bark = 16,
slab_tree_bark = 16,
slab_bamboo_stripped = 8,
slab_copper_cut = 337,
slab_copper_exposed_cut = 337,
slab_copper_oxidized_cut = 337,
slab_copper_weathered_cut = 337,
slab_waxed_copper_cut = 398,
slab_waxed_copper_exposed_cut = 398,
slab_waxed_copper_oxidized_cut = 398,
slab_waxed_copper_weathered_cut = 398,
slab_mud_brick = 0.5,
slab_quartzblock = 256,
slab_redsandstone = 2,
slab_sandstone = 2,
stair_acaciatree_bark = 16*3,
stair_birchtree_bark = 16*3,
stair_darktree_bark = 16*3,
stair_jungletree_bark = 16*3,
stair_sprucetree_bark = 16*3,
stair_tree_bark = 16*3,
stair_bamboo_stripped = 8*3,
stair_copper_cut = 337*3,
stair_copper_exposed_cut = 337*3,
stair_copper_oxidized_cut = 337*3,
stair_copper_weathered_cut = 337*3,
stair_waxed_copper_cut = 398*3,
stair_waxed_copper_exposed_cut = 398*3,
stair_waxed_copper_oxidized_cut = 398*3,
stair_waxed_copper_weathered_cut = 398*3,
stair_mud_brick = 0.5*3,
stair_quartzblock = 256*3,
stair_redsandstone = 2*3,
stair_sandstone = 2*3,
},
["meat_blocks"] = {
sausage = 64,
cooked_sausage = 64,
burnt_sausage = 64,
meatball = 64,
cooked_meatball = 64,
burnt_meatball = 64,
burnt_porkchop = 64,
burnt_beef = 64,
burnt_chicken = 48,
burnt_rabbit = 40,
burnt_mutton = 48,
burnt_fish = 40,
burnt_salmon = 48,
raw_block_sausage = 576,
raw_block_meatball = 576,
raw_block_porkchop = 576,
raw_block_beef = 576,
raw_block_chicken = 432,
raw_block_mutton = 432,
raw_block_salmon = 432,
raw_block_rabbit = 360,
raw_block_fish = 360,
cooked_block_sausage = 576,
cooked_block_meatball = 576,
cooked_block_porkchop = 576,
cooked_block_beef = 576,
cooked_block_chicken = 432,
cooked_block_mutton = 432,
cooked_block_salmon = 432,
cooked_block_rabbit = 360,
cooked_block_fish = 360,
burnt_block_sausage = 576,
burnt_block_meatball = 576,
burnt_block_porkchop = 576,
burnt_block_beef = 576,
burnt_block_chicken = 432,
burnt_block_mutton = 432,
burnt_block_salmon = 432,
burnt_block_rabbit = 360,
burnt_block_fish = 360,
},
["sound_machine"] = {
sound_machine = 681,
portable_sound_machine = 681,
},
["fake_liquids"] = {
solid_water_source = 3,
solid_milk_source = 67,
solid_useless_bean_liquid_source = 0,
solid_useful_green_potato_liquid_source = 3,
solid_glue_source = 11,
solid_river_water_source = 3,
solid_fake_lava_source = 67,
solid_lava_source = 131,
solid_fake_water_source = 195,
bucket_fake_lava = 832,
bucket_fake_water = 960,
},
["flying_sausage"] = {
cooked_elytra = 297216,
burnt_elytra = 297216,
flying_sausage = 297216 + (576*8)
},
["sticky_things"] = {
bucket_glue = 776,
glue_source = 0,
glue_flowing = 0,
sticky_block = 100,
},
["ghost_blocks"] = {
ghostifier = 4104,
},
["lava_sponge"] = {
lava_sponge = 1032,
lava_sponge_wet = 1160,
},
["slime_things"] = {
pressure_plate_slimeblock_off = 432,
button_slimeblock_off = 24,
},
["small_why_things"] = {
craftable_barrier = 72,
blue_feather = 0,
},
["mcl_colorblocks"] = {
glazed_terracotta_black = 64,
glazed_terracotta_blue = 64,
glazed_terracotta_brown = 64,
glazed_terracotta_cyan = 64,
glazed_terracotta_green = 64,
glazed_terracotta_grey = 64,
glazed_terracotta_light_blue = 64,
glazed_terracotta_lime = 64,
glazed_terracotta_magenta = 64,
glazed_terracotta_orange = 64,
glazed_terracotta_pink = 64,
glazed_terracotta_purple = 64,
glazed_terracotta_red = 64,
glazed_terracotta_silver = 64,
glazed_terracotta_white = 64,
glazed_terracotta_yellow = 64
},
["useful_green_potatoes"] = {
useful_green_potato = 256,
useful_green_potato_ingot = 256,
useful_green_potato_block = 256*9,
useful_green_potato_ingot_block = 256*9,
axe_useful_green_potato = 256*3+8,
pick_useful_green_potato = 256*3+8,
sword_useful_green_potato = 256*2+4,
shovel_useful_green_potato = 256+8,
hoe_useful_green_potato = 256*2+8,
helmet_useful_green_potato = 256*5,
chestplate_useful_green_potato = 256*8,
leggings_useful_green_potato = 256*7,
boots_useful_green_potato = 256*4,
bucket_useful_green_potato_liquid = 768,
useful_green_potato_gold = 2048*8+256
}
}
--[[ Groups are organized like this so that order matters. Groups that are lower on the
list will have their energies applied later, making them higher priority. It's
unnecessary for single items because order doesn't matter for them. The NO_GROUP
value is for values that are not in any other group. Only items that match a group
in the list will have values applied, meaning that NO_GROUP is basically mandatory.
]]
exchangeclone.mtg_group_values = {
{"NO_GROUP", 1},
{"tree", 16},
{"wood", 8},
{"sapling", 32},
{"fence", 10},
{"wool", 48},
{"dye", 8},
{"flower", 32},
{"useless", 0},
}
local slabs_and_stairs = {}
exchangeclone.mcl_group_values = {
{"not_in_creative_inventory", 0},
{"banner", 292},
{"sandstone", 4},
{"wood", 8},
{"button", 8},
{"dye", 8},
{"fence_wood", 13},
{"flower", 8},
{"pane", 0.5},
{"pressure_plate", 16},
{"trapdoor", 24},
{"fence_gate", 32},
{"sapling", 32},
{"mushroom", 32},
{"tree", 32},
{"boat", 40},
{"wool", 48},
{"bed", 168},
{"shulker_box", 4198},
{"bark", 43},
{"glass", 2}, --undyed glass is 1
{"huge_mushroom", 0}, --if you want energy, break it into mushrooms; doesn't always drop.
{"carpet", 32},
{"spawn_egg", 0},
{"useless", 0},
{"hardened_clay", 64},
{"NO_GROUP", 1},
}
exchangeclone.mcl_potion_data = {
{name = "water", ingredient_cost = 0, custom_base_cost = 0, no_arrow = true},
{name = "awkward", ingredient_cost = 0, no_arrow = true},
{name = "fire_resistance", ingredient_cost = 768, plus = true},
{name = "poison", ingredient_cost = 128, plus = true, two = true},
{name = "harming", ingredient_cost = 192, custom_base_cost = 52, two = true},
{name = "healing", ingredient_cost = 1852, two = true},
{name = "leaping", ingredient_cost = 64, plus = true, two = true},
{name = "mundane", ingredient_cost = 32, no_arrow = true, custom_base_cost = 0},
{name = "night_vision", ingredient_cost = 1840, plus = true},
{name = "regeneration", ingredient_cost = 4096, plus = true, two = true},
{name = "slowness", ingredient_cost = 192, custom_base_cost = 20, plus = true, two = true},
{name = "swiftness", ingredient_cost = 32, plus = true, two = true},
{name = "thick", ingredient_cost = 384, no_arrow = true, custom_base_cost = 0},
{name = "water_breathing", ingredient_cost = 64, plus = true},
{name = "invisibility", ingredient_cost = 192, custom_base_cost = 623, plus = true}
}
exchangeclone.whitelisted_mods = {
exchangeclone = true,
beds = true,
binoculars = true,
boats = true,
bones = true,
bucket = true,
butterflies = true,
carts = true,
default = true,
doors = true,
dye = true,
farming = true,
fire = true,
fireflies = true,
flowers = true,
keys = true,
mapping_kit = true,
moreswords = true,
stairs = true,
tnt = true,
vessels = true,
walls = true,
wool = true,
xpanes = true,
doc_identifier = true,
fake_liquids = true,
ghost_blocks = true,
lava_sponge = true,
mcl_amethyst = true,
mcl_anvils = true,
mcl_armor = true,
mcl_armor_stand = true,
mcl_bamboo = true,
mcl_banners = true,
mcl_barrels = true,
mcl_beacons = true,
mcl_beds = true,
mcl_blackstone = true,
mcl_books = true,
mcl_bows = true,
mcl_cauldrons = true,
mcl_chests = true,
mcl_clock = true,
mcl_cocoas = true,
mcl_colorblocks = true,
mcl_colors = true,
mcl_comparators = true,
mcl_compass = true,
mcl_composters = true,
mcl_copper = true,
mcl_core = true,
mcl_crafting_table = true,
mcl_crimson = true,
mcl_deepslate = true,
mcl_dispensers = true,
mcl_doors = true,
mcl_droppers = true,
mcl_dye = true,
mcl_enchanting = true,
mcl_end = true,
mcl_experience = true,
mcl_farming = true,
mcl_fences = true,
mcl_fire = true,
mcl_fireworks = true,
mcl_fishing = true,
mcl_fletching_table = true,
mcl_flowerpots = true,
mcl_flowers = true,
mcl_furnaces = true,
mcl_grindstone = true,
mcl_hamburger = true,
mcl_heads = true,
mcl_honey = true,
mcl_hoppers = true,
mcl_itemframes = true,
mcl_jukebox = true,
mcl_lanterns = true,
mcl_lectern = true,
mcl_lightning_rods = true,
mcl_loom = true,
mcl_mangrove = true,
mcl_maps = true,
mcl_minecarts = true,
mcl_mobitems = true,
mcl_mud = true,
mcl_mushrooms = true,
mcl_nether = true,
mcl_observers = true,
mcl_ocean = true,
mcl_paintings = true,
mcl_potions = true,
mcl_raw_ores = true,
mcl_sculk = true,
mcl_shields = true,
mcl_signs = true,
mcl_smithing_table = true,
mcl_smoker = true,
mcl_sponges = true,
mcl_spyglass = true,
mcl_stairs = true,
mcl_stonecutter = true,
mcl_sus_stew = true,
mcl_target = true,
mcl_tnt = true,
mcl_tools = true,
mcl_throwing = true,
mcl_torches = true,
mcl_totems = true,
mcl_villages = true,
mcl_walls = true,
mcl_wool = true,
mclx_core = true,
mclx_fences = true,
mclx_stairs = true,
meat_blocks = true,
flying_sausage = true,
useful_green_potatoes = true,
screwdriver = true,
slime_things = true,
small_why_things = true,
sound_machine = true,
sticky_things = true,
}
--only allow Mesecons in MineClone
if exchangeclone.mcl then
for _, mod in ipairs({
"mesecons",
"mesecons_button",
"mesecons_delayer",
"mesecons_lightstone",
"mesecons_noteblock",
"mesecons_pistons",
"mesecons_pressureplates",
"mesecons_solarpanel",
"mesecons_torch",
"mesecons_walllever",
"mesecons_wires",
}) do
exchangeclone.whitelisted_mods[mod] = true
end
end
local function set_item_energy(itemstring, energy_value)
local def = minetest.registered_items[itemstring]
if not def then return end
if not def.groups then return end
if not def.description or def.description == "" then return end
local _, _, mod_name, item_name = itemstring:find("([%d_%l]+):([%d_%l]+)")
if not (item_name and mod_name) then return end
if exchangeclone.whitelisted_mods[mod_name] then
if mod_name == "ghost_blocks" then
energy_value = 0
end
if exchangeclone.mcl then
if exchangeclone.mcl_energy_values[mod_name] then
energy_value = exchangeclone.mcl_energy_values[mod_name][item_name] or energy_value --override if possible
end
else
if exchangeclone.mtg_energy_values[mod_name] then
energy_value = exchangeclone.mtg_energy_values[mod_name][item_name] or energy_value --override if possible
end
end
else
energy_value = 0 -- if not a whitelisted mod, make it useless.
end
local description = def.description
local groups = table.copy(def.groups)
description = description:gsub("Energy Value: ([%d%.]+)", "")
local existing_energy_value = description:find("Energy Value: ([%d%.]+)")
if existing_energy_value then
description = description:gsub("Energy Value: ([%d%.]+)", "Energy Value: "..energy_value)
else
if description[#description] ~= "\n" then
description = description.."\n"
end
description = description.."Energy Value: "..(energy_value)
end
minetest.override_item(itemstring, {
description = description,
energy_value = energy_value,
groups = groups
})
--minetest.log(itemstring.." "..energy_value.." "..reason)
if mod_name ~= "ghost_blocks" and mod_name ~= "mcl_stairs" and mod_name ~= "stairs" then
local other_itemstrings = {}
if exchangeclone.mcl then
other_itemstrings = {
{"mcl_stairs:slab_"..item_name, energy_value/2},
{"mcl_stairs:stair_"..item_name, energy_value*1.5},
}
else
other_itemstrings = {
{"stairs:slab_"..item_name, energy_value/2},
{"stairs:stair_"..item_name, energy_value*1.5},
{"stairs:stair_inner_"..item_name, energy_value*1.5},
{"stairs:stair_outer_"..item_name, energy_value*1.5},
}
end
for _, info in pairs(other_itemstrings) do
if minetest.registered_items[info[1]] then
slabs_and_stairs[#slabs_and_stairs+1] = info
end
end
end
end
local function add_potion_energy(info)
local base_cost = 1 --cost of water bottle
--TODO: Change dragon's breath when MineClone does.
local dragon_breath_cost = 8.5
base_cost = math.floor(base_cost + (info.ingredient_cost / 3)) --/3 because 3 potions/ingredient
base_cost = base_cost + (info.custom_base_cost or 8) --8 = 1/3 of nether wart.
local splash_cost = base_cost + 64
local lingering_cost = math.floor(base_cost + (dragon_breath_cost / 3))
set_item_energy("mcl_potions:"..info.name, base_cost)
set_item_energy("mcl_potions:"..info.name.."_splash", splash_cost)
set_item_energy("mcl_potions:"..info.name.."_lingering", lingering_cost)
if not info.no_arrow then
local arrow_cost = math.floor(lingering_cost / 8 + 3)
set_item_energy("mcl_potions:"..info.name.."_arrow", arrow_cost)
end
if info.plus then
local plus_base_cost = base_cost + 21
local plus_splash_cost = splash_cost + 21
local plus_lingering_cost = lingering_cost + 21
local plus_arrow_cost = math.floor(plus_lingering_cost / 8 + 3)
set_item_energy("mcl_potions:"..info.name.."_plus", plus_base_cost)
set_item_energy("mcl_potions:"..info.name.."_plus_splash", plus_splash_cost)
set_item_energy("mcl_potions:"..info.name.."_plus_lingering", plus_lingering_cost)
set_item_energy("mcl_potions:"..info.name.."_plus_arrow", plus_arrow_cost)
end
if info.two then
local two_base_cost = base_cost + 21
local two_splash_cost = splash_cost + 21
local two_lingering_cost = lingering_cost + 21
local two_arrow_cost = math.floor(two_lingering_cost / 8 + 3)
set_item_energy("mcl_potions:"..info.name.."_2", two_base_cost)
set_item_energy("mcl_potions:"..info.name.."_2_splash", two_splash_cost)
set_item_energy("mcl_potions:"..info.name.."_2_lingering", two_lingering_cost)
set_item_energy("mcl_potions:"..info.name.."_2_arrow", two_arrow_cost)
end
end
--Wait until all mods are loaded (to make sure all nodes have been registered)
--This is much easier than making it depend on every single MineClone mod.
minetest.register_on_mods_loaded(function()
if exchangeclone.mcl then --Set all items to MineClone values
local groupnames = {}
for index, group in ipairs(exchangeclone.mcl_group_values) do
groupnames[#groupnames + 1] = group[1] --Get list of group names
end
local grouped_items = exchangeclone.get_group_items(groupnames, true, true)
for index, group in ipairs(exchangeclone.mcl_group_values) do
for i, item in pairs(grouped_items[group[1]]) do
set_item_energy(item, group[2])
end
end
for i = 0, 31 do
set_item_energy("mcl_compass:"..i.."_recovery", 443456)
end
for i = 0, 31 do
set_item_energy("mcl_compass:"..i, 1088)
end
set_item_energy("mcl_compass:compass", 1088)
for i = 0, 63 do
set_item_energy("mcl_clock:clock_"..i, 8256)
end
set_item_energy("mcl_clock:clock", 8256)
--It's almost like the "compass" and "clock" groups don't exist. I tried using them, but it just didn't work.
set_item_energy("mcl_bone_meal:bone_meal", 48)
--Bone meal just doesn't work either, for some reason.
for i = 1, 8 do --faster than doing everything individually.
set_item_energy("mcl_jukebox:record_"..i, 1024)
end
for _, info in ipairs(exchangeclone.mcl_potion_data) do
add_potion_energy(info)
end
else --Set all items to Minetest Game values
local groupnames = {}
for index, group in ipairs(exchangeclone.mtg_group_values) do
groupnames[#groupnames + 1] = group[1] --Get list of group names
end
local grouped_items = exchangeclone.get_group_items(groupnames, true, true)
for index, group in ipairs(exchangeclone.mtg_group_values) do
for i, item in pairs(grouped_items[group[1]]) do
set_item_energy(item, group[2])
end
end
end
for _, item in ipairs(slabs_and_stairs) do
set_item_energy(item[1], item[2])
end
end
)