fixed the random message on player death.
This commit is contained in:
parent
8673e2a550
commit
49e2c3eee0
16
chats.lua
16
chats.lua
@ -2,9 +2,9 @@ local illuminati_death_message_table = {
|
|||||||
'<Distant voice> We control your life too.',
|
'<Distant voice> We control your life too.',
|
||||||
'<Hissing voice> Assemble the brotherhood, we have fresh flesh.',
|
'<Hissing voice> Assemble the brotherhood, we have fresh flesh.',
|
||||||
'<Whisper> The Illuminati claimed another life',
|
'<Whisper> The Illuminati claimed another life',
|
||||||
|
'<Faint voices in the breeze> That was an easy one.'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
minetest.register_on_chat_message(function(name,message)
|
minetest.register_on_chat_message(function(name,message)
|
||||||
if string.match(message, 'foobar') then
|
if string.match(message, 'foobar') then
|
||||||
minetest.chat_send_all('<Illuminati> Hush, this is not public information.')
|
minetest.chat_send_all('<Illuminati> Hush, this is not public information.')
|
||||||
@ -17,15 +17,11 @@ minetest.register_on_chat_message(function(name,message)
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--[[minetest.register_on_dieplayer(function(player)
|
minetest.register_on_dieplayer(function(player)
|
||||||
local key = #(minetest.get_connected_players())
|
local key = #(minetest.get_connected_players())
|
||||||
print ('number of people playing '..key)
|
local people = minetest.get_connected_players()
|
||||||
local person = math.random(1, key)
|
local person = math.random(1, key)
|
||||||
for person,player in ipairs(minetest.get_connected_players()) do
|
local name1 = people[person]
|
||||||
local name = player:get_player_name()
|
local name = name1:get_player_name()
|
||||||
minetest.chat_send_player(name, "Hello you fool, " .. name)
|
minetest.chat_send_player(name, "Hello " ..name..' somebody just died.')
|
||||||
end
|
|
||||||
-- print (person_to_spook..' has been selected to get a cheery message.')
|
|
||||||
-- minetest.chat_send_player(person_to_spook, '<Illuminati> Somebody died.')
|
|
||||||
end)
|
end)
|
||||||
--]]
|
|
||||||
|
2
depends.txt
Normal file
2
depends.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
default
|
||||||
|
dye
|
20
nodes.lua
20
nodes.lua
@ -1,3 +1,23 @@
|
|||||||
|
-- Craft Recipes
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'illuminati:core_off',
|
||||||
|
recipe = {
|
||||||
|
{'dye:red', 'default:mese_crystal', 'dye:red'},
|
||||||
|
{'dye:red', 'default:diamond', 'dye:red'},
|
||||||
|
{'default:obsidian_shard', 'default:obsidian_shard', 'default:obsidian_shard'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'illuminati:cone_off',
|
||||||
|
recipe = {
|
||||||
|
{'', 'default:mese_crystal_fragment', ''},
|
||||||
|
{'default:mese_crystal_fragment', 'default:gold_ingot', 'default:mese_crystal_fragment'},
|
||||||
|
{'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Node Registration
|
||||||
minetest.register_node('illuminati:core_off',{
|
minetest.register_node('illuminati:core_off',{
|
||||||
description = 'The source of power',
|
description = 'The source of power',
|
||||||
drawtype = 'mesh',
|
drawtype = 'mesh',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user