Fix
|
@ -39,7 +39,8 @@ sfinv.override_page("sfinv:crafting", {
|
|||
"list[detached:"..player_name.."_armor;armor;0,0;1,1;]"..
|
||||
"list[detached:"..player_name.."_armor;armor;0,1;1,1;1]"..
|
||||
"list[detached:"..player_name.."_armor;armor;0,2;1,1;2]"..
|
||||
"list[detached:"..player_name.."_armor;armor;0,3;1,1;3]"
|
||||
"list[detached:"..player_name.."_armor;armor;0,3;1,1;3]"..
|
||||
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"
|
||||
return sfinv.make_formspec(player, context, form , true)
|
||||
end,
|
||||
})
|
||||
|
|
|
@ -70,11 +70,6 @@ dofile(minetest.get_modpath("mesecons").."/util.lua");
|
|||
-- like calling action_on/off/change
|
||||
dofile(minetest.get_modpath("mesecons").."/internal.lua");
|
||||
|
||||
-- Deprecated stuff
|
||||
-- To be removed in future releases
|
||||
-- Currently there is nothing here
|
||||
dofile(minetest.get_modpath("mesecons").."/legacy.lua");
|
||||
|
||||
-- API
|
||||
-- these are the only functions you need to remember
|
||||
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
minetest.register_node("mesecons:mesecon_off", {
|
||||
drawtype = "raillike",
|
||||
tiles = {"jeija_mesecon_off.png", "jeija_mesecon_curved_off.png", "jeija_mesecon_t_junction_off.png", "jeija_mesecon_crossing_off.png"},
|
||||
inventory_image = "jeija_mesecon_off.png",
|
||||
wield_image = "jeija_mesecon_off.png",
|
||||
paramtype = "light",
|
||||
is_ground_content = true,
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
|
||||
},
|
||||
groups = {dig_immediate=3, mesecon=1, mesecon_conductor_craftable=1},
|
||||
description="Mesecons",
|
||||
mesecons = {conductor={
|
||||
state = mesecon.state.off,
|
||||
onstate = "mesecons:mesecon_on"
|
||||
}}
|
||||
})
|
||||
|
||||
minetest.register_node("mesecons:mesecon_on", {
|
||||
drawtype = "raillike",
|
||||
tiles = {"jeija_mesecon_on.png", "jeija_mesecon_curved_on.png", "jeija_mesecon_t_junction_on.png", "jeija_mesecon_crossing_on.png"},
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
|
||||
},
|
||||
groups = {dig_immediate=3, not_in_creaive_inventory=1, mesecon=1},
|
||||
drop = '"mesecons:mesecon_off" 1',
|
||||
light_source = default.LIGHT_MAX-11,
|
||||
mesecons = {conductor={
|
||||
state = mesecon.state.on,
|
||||
offstate = "mesecons:mesecon_off"
|
||||
}}
|
||||
})
|
Before Width: | Height: | Size: 399 B |
Before Width: | Height: | Size: 323 B |
Before Width: | Height: | Size: 112 B |
|
@ -99,8 +99,6 @@ for zmy=0, 1 do
|
|||
description = "Bluestone Dust",
|
||||
drawtype = "nodebox",
|
||||
tiles = tiles_off,
|
||||
-- inventory_image = "wires_inv.png",
|
||||
-- wield_image = "wires_inv.png",
|
||||
inventory_image = "default_bluestone_dust.png",
|
||||
wield_image = "default_bluestone_dust.png",
|
||||
paramtype = "light",
|
||||
|
@ -127,8 +125,6 @@ for zmy=0, 1 do
|
|||
description = "Bluestone Dust",
|
||||
drawtype = "nodebox",
|
||||
tiles = tiles_on,
|
||||
-- inventory_image = "wires_inv.png",
|
||||
-- wield_image = "wires_inv.png",
|
||||
inventory_image = "default_bluestone_dust.png",
|
||||
wield_image = "default_bluestone_dust.png",
|
||||
paramtype = "light",
|
||||
|
|
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 331 B |
Before Width: | Height: | Size: 395 B After Width: | Height: | Size: 395 B |
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
|
@ -1,3 +0,0 @@
|
|||
|
||||
|
||||
-- place texture packs for mesecons into the textures folder here
|
Before Width: | Height: | Size: 161 B After Width: | Height: | Size: 161 B |
Before Width: | Height: | Size: 161 B After Width: | Height: | Size: 161 B |
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 209 B |
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 168 B |
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 203 B |
Before Width: | Height: | Size: 136 B After Width: | Height: | Size: 136 B |
Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 317 B |
Before Width: | Height: | Size: 298 B After Width: | Height: | Size: 298 B |
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 217 B After Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 300 B After Width: | Height: | Size: 300 B |
|
@ -1,4 +1,4 @@
|
|||
Minetest Game mod: creative
|
||||
MultiCraft Game mod: creative
|
||||
===========================
|
||||
See license.txt for license information.
|
||||
|
||||
|
|
|
@ -15,16 +15,16 @@ if creative_mode_cache then
|
|||
-- To speed up digging in creative, hand 'maxlevel' and 'digtime' have been
|
||||
-- increased such that nodes of differing levels have an insignificant
|
||||
-- effect on digtime.
|
||||
local digtime = 42
|
||||
local digtime = 128
|
||||
local caps = {times = {digtime, digtime, digtime}, uses = 0, maxlevel = 256}
|
||||
|
||||
minetest.register_item(":", {
|
||||
type = "none",
|
||||
wield_image = "wieldhand.png",
|
||||
wield_scale = {x = 1, y = 1, z = 2.5},
|
||||
wield_scale = {x = 0.7, y = 2, z = 0},
|
||||
range = 10,
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.5,
|
||||
full_punch_interval = 0.9,
|
||||
max_drop_level = 3,
|
||||
groupcaps = {
|
||||
crumbly = caps,
|
||||
|
@ -33,7 +33,7 @@ if creative_mode_cache then
|
|||
choppy = caps,
|
||||
oddly_breakable_by_hand = caps,
|
||||
},
|
||||
damage_groups = {fleshy = 10},
|
||||
damage_groups = {fleshy = 5},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
@ -60,4 +60,4 @@ function minetest.handle_node_drops(pos, drops, digger)
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -127,6 +127,7 @@ function creative.register_tab(name, title, items)
|
|||
"field[0.3,4.0;2.2,1;creative_filter;;" .. minetest.formspec_escape(inv.filter) .. "]" ..
|
||||
"listring[detached:creative_" .. player_name .. ";main]" ..
|
||||
"list[detached:creative_" .. player_name .. ";main;0,0.5;9,3;" .. tostring(start_i) .. "]" ..
|
||||
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||
creative.formspec_add, false, "size[9,9.75]")
|
||||
end,
|
||||
on_enter = function(self, player, context)
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
default.chest_formspec =
|
||||
"size[9,9.75]"..
|
||||
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||
"background[-0.19,-0.25;9.41,10.48;crafting_inventory_chest.png]"..
|
||||
"bgcolor[#080808BB;true]"..
|
||||
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
||||
"list[current_name;main;0,0.5;9,4;]"..
|
||||
"list[current_player;main;0,5.5;9,3;9]"..
|
||||
"list[current_player;main;0,8.74;9,1;]"
|
||||
|
||||
local chest_inv_size = 4*9
|
||||
local chest_inv_vers = 2
|
||||
|
||||
function default.get_locked_chest_formspec(pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv_v = meta:get_int("chest_inv_ver")
|
||||
if inv_v and inv_v < chest_inv_vers then
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main",chest_inv_size)
|
||||
meta:set_int("chest_inv_ver",chest_inv_vers)
|
||||
end
|
||||
local spos = pos.x .. "," .. pos.y .. "," ..pos.z
|
||||
local formspec =
|
||||
"size[9,9.75]"..
|
||||
"image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true;]"..
|
||||
"background[-0.19,-0.25;9.41,10.48;crafting_inventory_chest.png]"..
|
||||
"bgcolor[#080808BB;true]"..
|
||||
"listcolors[#9990;#FFF7;#FFF0;#160816;#D4D2FF]"..
|
||||
"list[nodemeta:".. spos .. ";main;0,0.5;9,4;]"..
|
||||
"list[current_player;main;0,5.5;9,3;9]"..
|
||||
"list[current_player;main;0,8.74;9,1;]"
|
||||
return formspec
|
||||
end
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"default:chest"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv_v = meta:get_int("chest_inv_ver")
|
||||
if inv_v and inv_v < chest_inv_vers then
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main",chest_inv_size)
|
||||
meta:set_int("chest_inv_ver",chest_inv_vers)
|
||||
end
|
||||
end
|
||||
})
|
|
@ -20,6 +20,7 @@ dofile(minetest.get_modpath("default").."/trees.lua")
|
|||
dofile(minetest.get_modpath("default").."/aliases.lua")
|
||||
dofile(minetest.get_modpath("default").."/furnace.lua")
|
||||
dofile(minetest.get_modpath("default").."/workbench.lua")
|
||||
dofile(minetest.get_modpath("default").."/chest.lua")
|
||||
|
||||
minetest.register_on_newplayer(function (player)
|
||||
player:get_inventory():add_item('main', 'default:sword_steel')
|
||||
|
|
|
@ -1395,7 +1395,7 @@ minetest.register_node("default:obsidian", {
|
|||
description = "Obsidian",
|
||||
tiles = {"default_obsidian.png"},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
groups = {cracky=4, level=2, oddly_breakable_by_hand = 4, building = 1},
|
||||
groups = {cracky=4, level=2, oddly_breakable_by_hand = 3, building = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("default:apple", {
|
||||
|
|
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 295 B |
After Width: | Height: | Size: 2.1 KiB |
|
@ -9,7 +9,8 @@ sfinv.register_page("sfinv:crafting", {
|
|||
list[current_player;craft;4,2;2,1;4]
|
||||
list[current_player;craftpreview;7.05,1.54;1,1;]
|
||||
list[detached:split;main;7.99,3.15;1,1;]
|
||||
image[1.5,0;2,4;default_player2d.png]
|
||||
image[1.5,0;2,4;default_player2d.png;]
|
||||
image_button_exit[8.4,-0.1;0.75,0.75;close.png;exit;;true;true]
|
||||
]], true)
|
||||
end
|
||||
})
|
||||
|
|
|
@ -3,6 +3,6 @@ movement_acceleration_air = 1
|
|||
movement_liquid_sink = 23
|
||||
movement_gravity = 10.3
|
||||
|
||||
default_privs = fly, fast, interact, shout, settime
|
||||
default_privs = fly, interact, shout, settime
|
||||
|
||||
movement_speed_jump = 6.7
|