This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local current_pos | |
local actual_node_get = minetest.get_node_or_nil | |
local function temp_node_get(pos, ...) | |
current_pos = pos | |
return actual_node_get(pos, ...) | |
end | |
local actual_turnon = mesecon.turnon | |
function mesecon.turnon(...) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function inform_near_players(pos, msg) | |
for _,player in pairs(minetest.get_objects_inside_radius(pos, 10)) do | |
if player:is_player() then | |
minetest.chat_send_player(player:get_player_name(), msg) | |
end | |
end | |
end | |
function apn(pos, placer, itemstack) | |
local grop = minetest.get_item_group(minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name, "myuno") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local c_air = minetest.get_content_id("air") | |
local c_tnt = minetest.get_content_id("tnt:tnt") | |
minetest.register_on_generated(function(minp, maxp) | |
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip") | |
local data = vm:get_data() | |
local area = VoxelArea:new{MinEdge=emin, MaxEdge=emax} | |
for i in area:iterp(minp, maxp) do | |
if data[i] ~= c_air then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local near_player = {x=0, y=0, z=0} | |
local please_crash = "foo" | |
minetest.register_node(":default:tmp", { | |
on_dig = function() | |
please_crash() | |
end | |
}) | |
minetest.after(3, function() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#delete existing links | |
#trash *.png | |
# the path to the mc texture pack folder | |
mctp_path=./mctp | |
# the command used for linking | |
link_file="ln -r -s" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/skins/init.lua b/skins/init.lua | |
index 8ae6759..b6e59b2 100644 | |
--- a/skins/init.lua | |
+++ b/skins/init.lua | |
@@ -27,7 +27,7 @@ dofile(skins.modpath.."/meta.lua") | |
dofile(skins.modpath.."/players.lua") | |
skins.update_player_skin = function(player) | |
- name = player:get_player_name() | |
+ local name = player:get_player_name() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minetest.register_node("workbench:3x3", { | |
description = "WorkBench", | |
tile_images = {"workbench_3x3_top.png","workbench_3x3_bottom.png","workbench_3x3_side.png"}, | |
paramtype2 = "facedir", | |
groups = {choppy=2,oddly_breakable_by_hand=1}, | |
legacy_facedir_simple = true, | |
sounds = default.node_sound_wood_defaults(), | |
on_construct = function(pos) | |
local meta = minetest.env:get_meta(pos) | |
meta:set_string("formspec", |
NewerOlder