This file contains 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_tool("harry:potter", { | |
-- normal stuff here | |
on_use = function(itemstack, user, pointed_thing) | |
minetest.env:set_node(pointed_thing.above, {name="default:water_source"}) | |
end | |
}) |
This file contains 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
on_use = function(itemstack, user, pointed_thing) | |
if pointed_thing and pointed_thing.above and minetest.env:get_node(pointed_thing.above).name == "air" then | |
minetest.sound_play("flint", {pos=pointed_thing.under}) | |
minetest.env:add_node(pointed_thing.above, {name="fire:basic_flame"}) | |
itemstack:add_wear(1000) | |
return itemstack | |
end | |
end |
This file contains 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("default:water_source", { | |
description = "Water Source", | |
inventory_image = minetest.inventorycube("default_water.png"), | |
drawtype = "liquid", | |
tiles = { | |
{name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=128, aspect_h=128, length=2.0}} | |
}, | |
special_tiles = { | |
-- New-style water source material (mostly unused) | |
{name="default_water.png", backface_culling=false}, |
This file contains 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
--[[ | |
Particles for Minetest | |
Copyright (c) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com> | |
Source Code: https://github.com/cornernote/minetest-particles | |
License: GPLv3 | |
MAIN LOADER |
This file contains 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(":default:lava_source", { | |
description = "Lava", | |
inventory_image = minetest.inventorycube("default_lava.png"), | |
drawtype = "liquid", | |
--tiles ={"default_lava.png"}, | |
tiles ={ | |
{name="default_lava_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}} | |
}, | |
special_tiles = { | |
-- New-style lava source material (mostly unused) |
This file contains 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("oldcoder:rat", { | |
drawtype = "nodebox", | |
node_box = { | |
--boxes here | |
}, | |
textures = {}, | |
}) |
This file contains 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 shoot(pos, dir, damage, speed) | |
local obj = minetest.env:add_entity(pos, "com:bullet") | |
obj:setvelocity({x=dir.x*speed, y=dir.y*speed, z=dir.z*speed}) | |
obj:get_luaentity().damage = damage | |
end | |
minetest.register_tool("com:ak47", { | |
description = "Ak 47", | |
inventory_image = "com_ak47.png", | |
This file has been truncated, but you can view the full file.
This file contains 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 -ruN minetest-db_backends/builtin/builtin.lua minetest-digging_animation/builtin/builtin.lua | |
--- minetest-db_backends/builtin/builtin.lua 2012-10-29 00:33:00.000000000 +0100 | |
+++ minetest-digging_animation/builtin/builtin.lua 2012-10-31 18:50:34.000000000 +0100 | |
@@ -22,4 +22,5 @@ | |
dofile(minetest.get_modpath("__builtin").."/chatcommands.lua") | |
dofile(minetest.get_modpath("__builtin").."/static_spawn.lua") | |
dofile(minetest.get_modpath("__builtin").."/detached_inventory.lua") | |
+dofile(minetest.get_modpath("__builtin").."/falling.lua") | |
diff -ruN minetest-db_backends/builtin/chatcommands.lua minetest-digging_animation/builtin/chatcommands.lua |
This file contains 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/mods/fire/init.lua b/mods/fire/init.lua | |
index 846a2d3..a8530fc 100644 | |
--- a/mods/fire/init.lua | |
+++ b/mods/fire/init.lua | |
@@ -8,24 +8,34 @@ minetest.register_node("fire:basic_flame", { | |
groups = {igniter=2,dig_immediate=3}, | |
drop = '', | |
walkable = false, | |
+ | |
+ after_place_node = function(pos, placer) |
This file contains 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/mods/default/init.lua b/mods/default/init.lua | |
index 2a27988..cd0e22d 100644 | |
--- a/mods/default/init.lua | |
+++ b/mods/default/init.lua | |
@@ -1455,6 +1455,7 @@ minetest.register_abm({ | |
end | |
local fuel = nil | |
+ local fuel_time | |
local cooked = nil |