Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

jastevenson303

💭
I may be slow to respond.
Block or report user

Report or block jastevenson303

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d1bcc2d3457392adf81e3fc7be095c93
minetest.register_chatcommand("tnttest1", {
func = function(name)
local pos = minetest.get_player_by_name(name):get_pos()
tnt.boom(pos, {
radius = 0,
damage_radius = 3,
})
end,
})
View gist:7ecfc5d3b391005bfc578465083bcf53
1,23d0
< machines = {}
<
< local function get_sat_time(stack)
< if stack then
< stack = stack[1]
< stack:set_count(stack:get_count() - 1)
< end
< return {
< time = 11,
View gist:13b742e650892c4418bbd04463ecaf25
snd = {}
snd.players = {}
minetest.register_chatcommand("snd", {
func = function(name, param)
if param == "play" then
local player = minetest.get_player_by_name(name)
local s = minetest.sound_play
{
name = "Front_Center",
--pitch = 0.99,
View gist:dab993bb28d6fcb5aaa5cb953a005aba
amen = {}
amen.scale = {
[1] = 0.43,
[2] = 0.78,
[3] = 0.92,
[4] = 1.3,
[5] = 1.53,
[6] = 1.75,
[7] = 1.97,
View gist:8e90bb3188d654da0dca9b7f25128c5e
r = {}
local q = {}
local id
r.start = function(p, name)
id = #q + 1
local l = math.random(0, 4) + math.random()
minetest.chat_send_player(name, l)
local pitch_increase = math.random() * 0.1 + 0.125
View gist:ab9e1054d1616e6414fe3b5f2d137b6f
local sounds = {}
--[[
for _, nodes in pairs(minetest.registered_nodes) do
for elem, val in pairs(nodes) do
if elem == "sounds" then
for _, spec in pairs(val) do
if not sounds[spec.name] and
spec.name ~= "" then
View gist:ee832bb79ee72d98c37e3e61e2a85330
Starting program: /usr/local/bin/minetestserver --worldname doors,\ chests\ \&\ bones --config /home/james/.minetest/dcb_server.conf --terminal
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff17c2700 (LWP 6602)]
[New Thread 0x7ffff0fc1700 (LWP 6603)]
[New Thread 0x7fffebb8a700 (LWP 6604)]
[New Thread 0x7fffeb389700 (LWP 6605)]
[New Thread 0x7fffeab88700 (LWP 6607)]
[New Thread 0x7fffea387700 (LWP 6608)]
[Thread 0x7fffea387700 (LWP 6608) exited]
View gist:fa53f8073fb2567135ff13aad0a69412
Starting program: /usr/local/bin/minetestserver --worldname doors,\ chests\ \&\ bones --config /home/james/.minetest/dcb_server.conf --terminal
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff17c2700 (LWP 6602)]
[New Thread 0x7ffff0fc1700 (LWP 6603)]
[New Thread 0x7fffebb8a700 (LWP 6604)]
[New Thread 0x7fffeb389700 (LWP 6605)]
[New Thread 0x7fffeab88700 (LWP 6607)]
[New Thread 0x7fffea387700 (LWP 6608)]
[Thread 0x7fffea387700 (LWP 6608) exited]
View gist:9d1ede038adefe6bdddff58593cf1dd4
Starting program: minetest
No executable file specified.
Use the "file" or "exec-file" command.
Reading symbols from minetest...done.
Starting program: /usr/local/bin/minetest minetest
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe9879700 (LWP 29359)]
[New Thread 0x7fffe97f8700 (LWP 29360)]
[Thread 0x7fffe97f8700 (LWP 29360) exited]
View gist:e81f6449705bd18185a55ff8f7b69116
SERVER==========================================================================
2017-10-03 12:19:12: VERBOSE[Server]: Server: Got TOSERVER_INIT from 192.168.1.110 (peer_id=2)
2017-10-03 12:19:12: VERBOSE[Server]: Server: 192.168.1.110: Protocol version: min: 36, max: 36, chosen: 36
2017-10-03 12:19:12: INFO[Server]: Server: New connection: "jas" from 192.168.1.110 (peer_id=2) 2017-10-03 12:19:12: VERBOSE[Server]: Sending TOCLIENT_HELLO with auth method field: 1
2017-10-03 12:19:13: INFO[Server]: Server: TOSERVER_SRP_BYTES_A received with based_on=0 and len_A=256.
2017-10-03 12:19:13: VERBOSE[Server]: Server: Handling session change: id=2
CLIENT==========================================================================
Starting program: /usr/local/bin/minetest
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
You can’t perform that action at this time.