added new textures
50
init.lua
@ -5,7 +5,7 @@ if minetest.get_modpath("buildtest")~=nil then
|
|||||||
"from",
|
"from",
|
||||||
on_send = function(pos)
|
on_send = function(pos)
|
||||||
equivalent_exchange.convert(pos)
|
equivalent_exchange.convert(pos)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
buildtest.pumps.pulls["equivalent_exchange:condenser"] = {"from"}
|
buildtest.pumps.pulls["equivalent_exchange:condenser"] = {"from"}
|
||||||
end
|
end
|
||||||
@ -44,15 +44,14 @@ equivalent_exchange = {
|
|||||||
return minetest.registered_items[name].emc
|
return minetest.registered_items[name].emc
|
||||||
end,
|
end,
|
||||||
get_formspec = function(emc, target)
|
get_formspec = function(emc, target)
|
||||||
return "size[8,10]"..
|
return "size[13,13]"..
|
||||||
"label[5.6,-0.2;Energy Condenser]"..
|
"label[0,0;Energy Condenser]"..
|
||||||
"label[0.7,0.9;Target Item]"..
|
"list[current_name;to;0,0.5;1,1;]"..
|
||||||
"list[current_name;to;1,0;1,1;]"..
|
"list[current_name;from;0,1.5;13,7;]"..
|
||||||
"list[current_name;from;0,1.5;8,4;]"..
|
"list[current_player;main;2.5,9;8,4;]"..
|
||||||
"list[current_player;main;0,6;8,4;]"..
|
"image[5,0;1,1;default_furnace_fire_bg.png^[lowpart:"..
|
||||||
"image[3,0;1,1;default_furnace_fire_bg.png^[lowpart:"..
|
|
||||||
(emc/target*100)..":default_furnace_fire_fg.png]"..
|
(emc/target*100)..":default_furnace_fire_fg.png]"..
|
||||||
"label[5,0.5;Current EMC: ".. emc .."\nNeeded EMC: ".. (target - emc).."]"
|
"label[10.5,0.5;Current EMC: ".. emc .."\nNeeded EMC: ".. (target - emc).."]"
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,12 +60,12 @@ equivalent_exchange = {
|
|||||||
minetest.register_node("equivalent_exchange:condenser", {
|
minetest.register_node("equivalent_exchange:condenser", {
|
||||||
description = "Energy Condenser",
|
description = "Energy Condenser",
|
||||||
tiles = {
|
tiles = {
|
||||||
"default_chest_top.png^equivalent_exchange_magic.png",
|
"equivalent_exchange_condenser_top.png",
|
||||||
"default_chest_top.png^equivalent_exchange_magic.png",
|
"equivalent_exchange_condenser_bottom.png",
|
||||||
"default_chest_side.png^equivalent_exchange_magic.png",
|
"equivalent_exchange_condenser_side.png",
|
||||||
"default_chest_side.png^equivalent_exchange_magic.png",
|
"equivalent_exchange_condenser_side.png",
|
||||||
"default_chest_side.png^equivalent_exchange_magic.png",
|
"equivalent_exchange_condenser_side.png",
|
||||||
"default_chest_front.png^equivalent_exchange_magic.png"
|
"equivalent_exchange_condenser_side.png"
|
||||||
},
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky = 2},
|
groups = {cracky = 2},
|
||||||
@ -78,7 +77,7 @@ minetest.register_node("equivalent_exchange:condenser", {
|
|||||||
meta:set_string("infotext", "Energy Condenser")
|
meta:set_string("infotext", "Energy Condenser")
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
inv:set_size("to", 1)
|
inv:set_size("to", 1)
|
||||||
inv:set_size("from", 8*4)
|
inv:set_size("from", 13*7)
|
||||||
end,
|
end,
|
||||||
can_dig = function(pos,player)
|
can_dig = function(pos,player)
|
||||||
local meta = minetest.get_meta(pos);
|
local meta = minetest.get_meta(pos);
|
||||||
@ -103,7 +102,15 @@ minetest.register_node("equivalent_exchange:condenser", {
|
|||||||
|
|
||||||
minetest.register_node("equivalent_exchange:alchemical_chest", {
|
minetest.register_node("equivalent_exchange:alchemical_chest", {
|
||||||
description = "Alchemical Chest",
|
description = "Alchemical Chest",
|
||||||
--Texturing--
|
tiles = {
|
||||||
|
"equivalent_exchange_alchemical_chest_top.png",
|
||||||
|
"equivalent_exchange_alchemical_chest_bottom.png",
|
||||||
|
"equivalent_exchange_alchemical_chest_side.png",
|
||||||
|
"equivalent_exchange_alchemical_chest_side.png",
|
||||||
|
"equivalent_exchange_alchemical_chest_side.png",
|
||||||
|
"equivalent_exchange_alchemical_chest_front.png",
|
||||||
|
|
||||||
|
},
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = {cracky = 2},
|
groups = {cracky = 2},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
@ -118,7 +125,6 @@ minetest.register_node("equivalent_exchange:alchemical_chest", {
|
|||||||
meta:set_string("infotext", "Alchemical Chest")
|
meta:set_string("infotext", "Alchemical Chest")
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
inv:set_size("container", 13*8)
|
inv:set_size("container", 13*8)
|
||||||
inv:set_size("main", 8*4)
|
|
||||||
end,
|
end,
|
||||||
can_dig = function(pos,player)
|
can_dig = function(pos,player)
|
||||||
local meta = minetest.env:get_meta(pos);
|
local meta = minetest.env:get_meta(pos);
|
||||||
@ -167,23 +173,21 @@ minetest.register_craftitem("equivalent_exchange:book_of_power_1", {
|
|||||||
emc = 1200,
|
emc = 1200,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:emc", {
|
|
||||||
description = "EMC Matter",
|
|
||||||
emc = 100,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:low_covalence", {
|
minetest.register_craftitem("equivalent_exchange:low_covalence", {
|
||||||
description = "Low Covalence Dust",
|
description = "Low Covalence Dust",
|
||||||
|
inventory_image = "equivalent_exchange_low_covalence.png",
|
||||||
emc = 1,
|
emc = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:medium_covalence", {
|
minetest.register_craftitem("equivalent_exchange:medium_covalence", {
|
||||||
description = "Medium Covalence Dust",
|
description = "Medium Covalence Dust",
|
||||||
|
inventory_image = "equivalent_exchange_medium_covalence.png",
|
||||||
emc = 8,
|
emc = 8,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("equivalent_exchange:high_covalence", {
|
minetest.register_craftitem("equivalent_exchange:high_covalence", {
|
||||||
description = "High Covalence Dust",
|
description = "High Covalence Dust",
|
||||||
|
inventory_image = "equivalent_exchange_high_covalence.png",
|
||||||
emc = 208,
|
emc = 208,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
BIN
textures/equivalent_exchange_alchemical_chest_bottom.png
Normal file
After Width: | Height: | Size: 274 B |
BIN
textures/equivalent_exchange_alchemical_chest_front.png
Normal file
After Width: | Height: | Size: 331 B |
BIN
textures/equivalent_exchange_alchemical_chest_side.png
Normal file
After Width: | Height: | Size: 278 B |
BIN
textures/equivalent_exchange_alchemical_chest_top.png
Normal file
After Width: | Height: | Size: 614 B |
BIN
textures/equivalent_exchange_condenser_bottom.png
Normal file
After Width: | Height: | Size: 184 B |
BIN
textures/equivalent_exchange_condenser_side.png
Normal file
After Width: | Height: | Size: 387 B |
BIN
textures/equivalent_exchange_condenser_top.png
Normal file
After Width: | Height: | Size: 510 B |
BIN
textures/equivalent_exchange_high_covalence.png
Normal file
After Width: | Height: | Size: 305 B |
BIN
textures/equivalent_exchange_low_covalence.png
Normal file
After Width: | Height: | Size: 306 B |
Before Width: | Height: | Size: 613 B |
BIN
textures/equivalent_exchange_medium_covalence.png
Normal file
After Width: | Height: | Size: 300 B |