Compare commits
5 Commits
94f243c250
...
eec08fdb78
Author | SHA1 | Date | |
---|---|---|---|
|
eec08fdb78 | ||
|
fdd8eae067 | ||
|
2f07d29f0a | ||
|
75bb8ab83d | ||
|
505ec56c13 |
@ -73,7 +73,7 @@ minetest.register_node("jt_mods:admin_tnt_fast", {
|
||||
description = "ADMIN TNT Changes to tnt after 60 second hour timer",
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
tiles = {"admin_tnt_top.png^heart.png", "admin_tnt_bottom.png^default_mineral_copper.png^heart.png", "admin_tnt_side.png^default_rail.png"},
|
||||
tiles = {"admin_tnt_top.png^heart.png", "admin_tnt_bottom.png^default_mineral_copper.png^heart.png", "admin_tnt_side.png^carts_rail_straight.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 0},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
|
@ -26,4 +26,13 @@ minetest.register_alias("default:crushing_furnace_active", "jt_mods:crushing_fur
|
||||
minetest.register_alias("default:admin_tnt_fake", "jt_mods:admin_tnt_fake")
|
||||
minetest.register_alias("default:admin_tnt_fast", "jt_mods:admin_tnt_fast")
|
||||
minetest.register_alias("default:admin_tnt", "jt_mods:admin_tnt")
|
||||
minetest.register_alias("default:hd_stonebrick", "air")
|
||||
|
||||
--opps desert stone!!
|
||||
minetest.register_alias("jt_mods:desert_stone_with_diamond", "jt_mods:desert_stone_with_ironz")
|
||||
minetest.register_alias("jt_mods:desert_stone_with_gold", "jt_mods:desert_stone_with_ironz")
|
||||
minetest.register_alias("jt_mods:desert_stone_with_copper", "jt_mods:desert_stone_with_copperz")
|
||||
minetest.register_alias("jt_mods:desert_stone_with_iron", "jt_mods:desert_stone_with_ironz")
|
||||
minetest.register_alias("jt_mods:desert_stone_with_coal", "jt_mods:desert_stone_with_coalz")
|
||||
|
||||
|
||||
|
@ -75,3 +75,68 @@ function ()
|
||||
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
|
||||
--everamaza code
|
||||
minetest.register_privilege("liquid", "Can place liquid source nodes.")
|
||||
minetest.register_privilege("lava", "Can use liquid igniters.")
|
||||
minetest.register_privilege("water", "Can use liquid.")
|
||||
|
||||
|
||||
--lava bucket
|
||||
local old_lava_bucket_place = minetest.registered_items["bucket:bucket_lava"].on_place
|
||||
|
||||
minetest.override_item("bucket:bucket_lava", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
if not minetest.check_player_privs(placer:get_player_name(),
|
||||
{lava = true}) then
|
||||
return itemstack
|
||||
else
|
||||
return old_lava_bucket_place(itemstack, placer, pointed_thing)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
--water bucket
|
||||
local old_water_bucket_place = minetest.registered_items["bucket:bucket_water"].on_place
|
||||
|
||||
minetest.override_item("bucket:bucket_water", {
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
if not minetest.check_player_privs(placer:get_player_name(),
|
||||
{water = true}) then
|
||||
return itemstack
|
||||
else
|
||||
return old_water_bucket_place(itemstack, placer, pointed_thing)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
--source blocks
|
||||
minetest.override_item("default:lava_source", {
|
||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
if not minetest.check_player_privs(placer:get_player_name(),
|
||||
{liquid = true, lava = true}) then
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.override_item("default:water_source", {
|
||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
if not minetest.check_player_privs(placer:get_player_name(),
|
||||
{liquid = true}) then
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.override_item("default:river_water_source", {
|
||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
if not minetest.check_player_privs(placer:get_player_name(),
|
||||
{liquid = true}) then
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
79
crafting.lua
@ -14,6 +14,15 @@
|
||||
--Media(if not stated differently):
|
||||
--(c) Copyright (2014-2016) maikerumine; CC-BY-SA 3.0
|
||||
|
||||
|
||||
|
||||
minetest.override_item("default:gold_ingot", {
|
||||
description = "Gold Ingot",
|
||||
inventory_image = "default_gold_ingot.png",
|
||||
stack_max = 999,
|
||||
})
|
||||
|
||||
|
||||
--hehe change up the craft ;-)
|
||||
minetest.register_craft({
|
||||
output = 'default:desert_cobble 8',
|
||||
@ -31,6 +40,15 @@ minetest.register_craft({
|
||||
{'default:sand', 'default:sand', 'default:sand'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'default:silver_sand 8',
|
||||
recipe = {
|
||||
{'default:sand', 'default:sand', 'default:sand'},
|
||||
{'default:sand', 'dye:white', 'default:sand'},
|
||||
{'default:sand', 'default:sand', 'default:sand'},
|
||||
}
|
||||
})
|
||||
-- Minetest 0.4 mod: apple_sapling
|
||||
-- Craft a tree sapling from dirt and apple.
|
||||
--
|
||||
@ -44,6 +62,48 @@ minetest.register_craft({
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'default:junglesapling',
|
||||
recipe = {
|
||||
{"group:leaves", "default:junglegrass", "group:leaves"},
|
||||
{"default:junglegrass", "default:sapling", "default:junglegrass"},
|
||||
{"group:leaves", "default:junglegrass", "group:leaves"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'default:pine_sapling',
|
||||
recipe = {
|
||||
{"group:leaves", "default:sand", "group:leaves"},
|
||||
{"default:sand", "default:junglesapling", "default:sand"},
|
||||
{"group:leaves", "default:sand", "group:leaves"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'default:acacia_sapling',
|
||||
recipe = {
|
||||
{"group:leaves", "default:dry_shrub", "group:leaves"},
|
||||
{"default:dry_shrub", "default:pine_sapling", "default:dry_shrub"},
|
||||
{"group:leaves", "default:dry_shrub", "group:leaves"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'default:aspen_sapling',
|
||||
recipe = {
|
||||
{"group:leaves", "default:papyrus", "group:leaves"},
|
||||
{"default:papyrus", "default:acacia_sapling", "default:papyrus"},
|
||||
{"group:leaves", "default:papyrus", "group:leaves"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "default:dry_shrub",
|
||||
recipe = "default:junglegrass",
|
||||
})
|
||||
|
||||
--Lag Block
|
||||
--maikerumine
|
||||
minetest.register_craft({
|
||||
@ -53,7 +113,18 @@ minetest.register_craft({
|
||||
{"default:diamondblock", "default:ice", "default:snowblock"},
|
||||
{"default:pick_diamond", "default:sandstonebrick", "default:obsidian"},
|
||||
},
|
||||
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = 'jt_mods:heart_block',
|
||||
recipe = {
|
||||
{"default:stone", "default:stone", "default:stone"},
|
||||
{"default:stone", "default:apple", "default:stone"},
|
||||
{"default:stone", "default:stone", "default:stone"},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'jt_mods:lag_ice',
|
||||
@ -74,11 +145,11 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'default:dirt_with_grass 4',
|
||||
output = 'default:dirt_with_grass 6',
|
||||
recipe = {
|
||||
{"default:dirt", "default:grass_1", "default:dirt"},
|
||||
{"default:grass_1", "bones:bones", "default:grass_1"},
|
||||
{"default:dirt", "default:grass_1", "default:dirt"},
|
||||
{"default:dirt", "default:dirt", "default:dirt"},
|
||||
{"default:grass_1", "default:grass_1", "default:grass_1"},
|
||||
{"default:dirt", "default:dirt", "default:dirt"},
|
||||
},
|
||||
})
|
||||
|
||||
|
3
init.lua
@ -16,6 +16,7 @@
|
||||
|
||||
-- Load files
|
||||
dofile(minetest.get_modpath("jt_mods").."/aliases.lua")
|
||||
dofile(minetest.get_modpath("jt_mods").."/moreblocksrem.lua")
|
||||
dofile(minetest.get_modpath("jt_mods").."/admintnt.lua")
|
||||
dofile(minetest.get_modpath("jt_mods").."/craftitems.lua")
|
||||
dofile(minetest.get_modpath("jt_mods").."/crafting.lua")
|
||||
@ -26,7 +27,7 @@ dofile(minetest.get_modpath("jt_mods").."/tools.lua")
|
||||
dofile(minetest.get_modpath("jt_mods").."/thaw.lua")
|
||||
|
||||
--SERVER SIDE
|
||||
dofile(minetest.get_modpath("jt_mods").."/shutdown.lua")
|
||||
--dofile(minetest.get_modpath("jt_mods").."/shutdown.lua")
|
||||
dofile(minetest.get_modpath("jt_mods").."/antigrief.lua")
|
||||
|
||||
|
||||
|
635
mapgen.lua
56
moreblocksrem.lua
Normal file
@ -0,0 +1,56 @@
|
||||
--Extreme Survival created by maikerumine
|
||||
-- Minetest 0.4.13 mod: "Extreme Survival"
|
||||
-- namespace: es
|
||||
--https://github.com/maikerumine
|
||||
|
||||
--License:
|
||||
--~~~~~~~~
|
||||
--Code:
|
||||
--(c) Copyright 2015 maikerumine; modified zlib-License
|
||||
--see "LICENSE.txt" for details.
|
||||
|
||||
--Media(if not stated differently):
|
||||
--(c) Copyright (2014-2015) maikerumine; CC-BY-SA 3.0
|
||||
|
||||
|
||||
|
||||
--slope
|
||||
minetest.register_alias("stairs:slope_dirt_with_grass", "stairs:stair_dirt_with_grass")
|
||||
|
||||
--dirt
|
||||
--slope
|
||||
minetest.register_alias("stairs:slope_dirt", "stairs:stair_dirt")
|
||||
|
||||
--cobble
|
||||
--slope
|
||||
minetest.register_alias("stairs:slope_cobble", "stairs:stair_cobble")
|
||||
|
||||
--mossycobble
|
||||
--slope
|
||||
minetest.register_alias("stairs:slope_mossycobble", "stairs:stair_mossycobble")
|
||||
|
||||
--stone
|
||||
--slope
|
||||
minetest.register_alias("stairs:slope_stone", "stairs:stair_stone")
|
||||
|
||||
--stonebrick
|
||||
--slope
|
||||
minetest.register_alias("stairs:slope_stonebrick_inner", "stairs:stair_stonebrick")
|
||||
|
||||
|
||||
--sandstone
|
||||
--slope
|
||||
minetest.register_alias("stairs:slope_sandstone", "stairs:stair_sandstone")
|
||||
|
||||
--sandstonebrick
|
||||
--slope
|
||||
minetest.register_alias("stairs:slope_sandstonebrick_inner", "stairs:stair_sandstonebrick")
|
||||
|
||||
--desert_stone
|
||||
--slope
|
||||
minetest.register_alias("stairs:slope_desert_stone", "stairs:stair_desert_stone")
|
||||
|
||||
--aspen
|
||||
--slope
|
||||
minetest.register_alias("stairs:slope_aspen_wood", "stairs:stair_aspen_wood")
|
||||
|
59
nodes.lua
@ -44,6 +44,16 @@ minetest.register_node("jt_mods:griefer_soul_block", {
|
||||
sounds =default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("jt_mods:heart_block", {
|
||||
description = "Why's Heart Block",
|
||||
paramtype2 = "facedir",
|
||||
place_param2 = 0,
|
||||
tiles = {"default_stone.png^heart.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2, stone = 1,dig_immediate=2},
|
||||
sounds =default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("jt_mods:meselamp_white", {
|
||||
description = "Mese Lamp White",
|
||||
drawtype = "glasslike",
|
||||
@ -55,3 +65,52 @@ minetest.register_node("jt_mods:meselamp_white", {
|
||||
sounds =default.node_sound_glass_defaults(),
|
||||
light_source = default.LIGHT_MAX,
|
||||
})
|
||||
|
||||
--desert stone ore
|
||||
minetest.register_node("jt_mods:desert_stone_with_diamondz", {
|
||||
description = "Diamond Ore",
|
||||
tiles = {"default_desert_stone.png^default_mineral_diamond.png"},
|
||||
groups = {cracky = 1},
|
||||
drop = "default:diamond",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("jt_mods:desert_stone_with_goldz", {
|
||||
description = "Gold Ore",
|
||||
tiles = {"default_desert_stone.png^default_mineral_gold.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = "default:gold_lump",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("jt_mods:desert_stone_with_copperz", {
|
||||
description = "Copper Ore",
|
||||
tiles = {"default_desert_stone.png^default_mineral_copper.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = 'default:copper_lump',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("jt_mods:desert_stone_with_ironz", {
|
||||
description = "Iron Ore",
|
||||
tiles = {"default_desert_stone.png^default_mineral_iron.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = 'default:iron_lump',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("jt_mods:desert_stone_with_coalz", {
|
||||
description = "Coal Ore",
|
||||
tiles = {"default_desert_stone.png^default_mineral_coal.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = 'default:coal_lump',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("jt_mods:desert_stone_with_meatz", {
|
||||
description = "Coal Ore",
|
||||
tiles = {"default_desert_stone.png^mobs_meat_raw.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = 'mobs:meat_raw',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
20
shutdown.lua
@ -21,10 +21,10 @@ jt_mods = {}
|
||||
--Modified by maikerumine
|
||||
-- Time to shut down server.
|
||||
-- jt_mods is twice a day: at 06:05 and 18:05
|
||||
local H = 18
|
||||
local X = 18
|
||||
local Y = 19
|
||||
local Z = 19
|
||||
local H = 19
|
||||
local X = 19
|
||||
local Y = 20
|
||||
local Z = 20
|
||||
|
||||
local M = 55
|
||||
local N = 00
|
||||
@ -42,22 +42,22 @@ minetest.register_globalstep(function(dtime)
|
||||
local t = os.date("*t")
|
||||
if ((t.hour == H or t.hour == X) and (t.min == M) and (t.sec <= 2)
|
||||
and ((D == nil) or (t.wday == D))) then
|
||||
minetest.chat_send_all("Scheduled shutdown. 1900 Eastern Time Zone"
|
||||
minetest.chat_send_all("Scheduled shutdown. 2000 Eastern Time Zone DST 0000 ZULU"
|
||||
.."Shutting down in FIVE minutes. ALL PLAYER FILES WILL RESET")
|
||||
minetest.chat_send_all("STORE YOUR ITEMS WITHIN 4 MINUTES AND LOG OUT TO SAVE YOUR XP!!!!!!!. ".."Shutting down in FIVE minutes.")
|
||||
minetest.chat_send_all("STORE YOUR ITEMS WITHIN 4 MINUTES!. ".."Shutting down in FIVE minutes.")
|
||||
--minetest.after(2, minetest.request_shutdown)
|
||||
end
|
||||
if ((t.hour == Y or t.hour == Z) and (t.min ==N) and (t.sec <= 2)
|
||||
and ((D == nil) or (t.wday == D))) then
|
||||
minetest.chat_send_all("SHUTTING SERVER DOWN NOW!"
|
||||
.." Please come back in a few while map is backed-up.")
|
||||
minetest.chat_send_all("5 SHUTTING SERVER DOWN NOW! Please log off to save you XP!"
|
||||
minetest.chat_send_all("5 SHUTTING SERVER DOWN NOW! "
|
||||
.." Please come back in a few while map is backed--up.")
|
||||
minetest.chat_send_all("4 SHUTTING SERVER DOWN NOW! Please log off to save you XP!"
|
||||
minetest.chat_send_all("4 SHUTTING SERVER DOWN NOW! "
|
||||
.." Please come back in a few while map is backed---up.")
|
||||
minetest.chat_send_all("3 SHUTTING SERVER DOWN NOW! Please log off to save you XP!"
|
||||
minetest.chat_send_all("3 SHUTTING SERVER DOWN NOW! "
|
||||
.." Please come back in a few while map is backed----up.")
|
||||
minetest.chat_send_all("2 SHUTTING SERVER DOWN NOW! Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!Please log off to save you XP!"
|
||||
minetest.chat_send_all("2 SHUTTING SERVER DOWN NOW! See you in a few minutes!!"
|
||||
.." Please come back in a few while map is backed-----up.")
|
||||
minetest.chat_send_all("1 SHUTTING SERVER DOWN NOW!"
|
||||
.." Please come back in a few while map is backed------up.")
|
||||
|
BIN
textures/Thumbs.db
Normal file
BIN
textures/default_clay.png
Normal file
After Width: | Height: | Size: 496 B |
BIN
textures/default_cobble.png
Normal file
After Width: | Height: | Size: 585 B |
BIN
textures/default_gravel.png
Normal file
After Width: | Height: | Size: 219 B |
BIN
textures/default_junglewood.png
Normal file
After Width: | Height: | Size: 297 B |
BIN
textures/default_mossycobble.png
Normal file
After Width: | Height: | Size: 689 B |
BIN
textures/default_stone.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/default_tool_bronzeaxe.png
Normal file
After Width: | Height: | Size: 178 B |
BIN
textures/default_tool_bronzepick.png
Normal file
After Width: | Height: | Size: 233 B |
BIN
textures/default_tool_bronzeshovel.png
Normal file
After Width: | Height: | Size: 188 B |
BIN
textures/default_tool_bronzesword.png
Normal file
After Width: | Height: | Size: 208 B |
BIN
textures/default_tool_diamondaxe.png
Normal file
After Width: | Height: | Size: 177 B |
BIN
textures/default_tool_diamondpick.png
Normal file
After Width: | Height: | Size: 237 B |
BIN
textures/default_tool_diamondshovel.png
Normal file
After Width: | Height: | Size: 188 B |
BIN
textures/default_tool_diamondsword.png
Normal file
After Width: | Height: | Size: 207 B |
BIN
textures/default_tool_meseaxe.png
Normal file
After Width: | Height: | Size: 199 B |
BIN
textures/default_tool_mesepick.png
Normal file
After Width: | Height: | Size: 275 B |
BIN
textures/default_tool_meseshovel.png
Normal file
After Width: | Height: | Size: 208 B |
BIN
textures/default_tool_mesesword.png
Normal file
After Width: | Height: | Size: 228 B |
BIN
textures/default_tool_steelaxe.png
Normal file
After Width: | Height: | Size: 902 B |
BIN
textures/default_tool_steelpick.png
Normal file
After Width: | Height: | Size: 243 B |
BIN
textures/default_tool_steelshovel.png
Normal file
After Width: | Height: | Size: 167 B |
BIN
textures/default_tool_steelsword.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
textures/default_tool_stoneaxe.png
Normal file
After Width: | Height: | Size: 902 B |
BIN
textures/default_tool_stonepick.png
Normal file
After Width: | Height: | Size: 248 B |
BIN
textures/default_tool_stoneshovel.png
Normal file
After Width: | Height: | Size: 160 B |
BIN
textures/default_tool_stonesword.png
Normal file
After Width: | Height: | Size: 188 B |
BIN
textures/default_tool_woodaxe.png
Normal file
After Width: | Height: | Size: 890 B |
BIN
textures/default_tool_woodpick.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
textures/default_tool_woodshovel.png
Normal file
After Width: | Height: | Size: 156 B |
BIN
textures/default_tool_woodsword.png
Normal file
After Width: | Height: | Size: 168 B |
@ -37,6 +37,7 @@ minetest.register_tool("jt_mods:pick_admin", {
|
||||
cracky = {times={[1]=0.3, [2]=0.2, [3]=0.05}, uses=3000, maxlevel=3},
|
||||
crumbly = {times={[1]=0.3, [2]=0.2, [3]=0.05}, uses=3000, maxlevel=3},
|
||||
snappy = {times={[1]=0.3, [2]=0.2, [3]=0.05}, uses=3000, maxlevel=3},
|
||||
choppy = {times={[1]=0.3, [2]=0.2, [3]=0.05}, uses=3000, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=60},
|
||||
},
|
||||
|