Compare commits
3 Commits
nalc-1.2.0
...
master
Author | SHA1 | Date | |
---|---|---|---|
a2cc1744d4 | |||
233dbe47d5 | |||
ea9e129c35 |
13
depends.txt
13
depends.txt
@ -1,13 +0,0 @@
|
|||||||
default
|
|
||||||
nether
|
|
||||||
creative?
|
|
||||||
glow
|
|
||||||
riesenpilz
|
|
||||||
stairs
|
|
||||||
moreblocks?
|
|
||||||
vector_extras
|
|
||||||
fence_registration?
|
|
||||||
function_delayer?
|
|
||||||
watershed?
|
|
||||||
darkage
|
|
||||||
witchcraft
|
|
@ -417,7 +417,6 @@ minetest.register_node("hell:apple", {
|
|||||||
groups = {fleshy=3, dig_immediate=3},
|
groups = {fleshy=3, dig_immediate=3},
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
furnace_burntime = 6,
|
furnace_burntime = 6,
|
||||||
on_use = minetest.item_eat(-5, "hell:blood_extracted 2"),
|
|
||||||
})
|
})
|
||||||
minetest.register_alias("nether:apple", "hell:apple")
|
minetest.register_alias("nether:apple", "hell:apple")
|
||||||
|
|
||||||
|
5
mod.conf
Normal file
5
mod.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name = hell
|
||||||
|
title = Hell
|
||||||
|
description = This is a modified version of lkjoel's nether mod. Renamed by sys4 as hell mod with modifications
|
||||||
|
depends = default,nether,glow,riesenpilz,stairs,vector_extras,darkage,witchcraft
|
||||||
|
optional_depends = creative,moreblocks,fence_registration,function_delayer,watershed
|
18
portal.lua
18
portal.lua
@ -213,7 +213,7 @@ if hell_prisons then
|
|||||||
"\" attempted to teleport from or to the hell, ignoring.")
|
"\" attempted to teleport from or to the hell, ignoring.")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
local methods = {"set_pos", "move_to", "setpos", "moveto"}
|
local methods = {"set_pos", "move_to"} -- "setpos", "moveto"}
|
||||||
local metatable_overridden
|
local metatable_overridden
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
-- set the background when the player joins
|
-- set the background when the player joins
|
||||||
@ -372,22 +372,20 @@ local function hell_port(player, pos)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_item_eat(function(_, _, itemstack, user, _)
|
minetest.override_item("hell:apple", {
|
||||||
if not user or itemstack:is_empty() then
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local inv = user:get_inventory()
|
local inv = user:get_inventory()
|
||||||
if not inv then
|
if not inv then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if itemstack:get_name() == "hell:apple" then
|
|
||||||
itemstack:take_item()
|
|
||||||
if hell_port(user, vector.round(user:get_pos())) then
|
if hell_port(user, vector.round(user:get_pos())) then
|
||||||
|
itemstack:take_item()
|
||||||
return itemstack
|
return itemstack
|
||||||
|
else
|
||||||
|
return minetest.do_item_eat(-5, "hell:blood_extracted 2", itemstack, user, pointed_thing)
|
||||||
end
|
end
|
||||||
end
|
end,
|
||||||
end)
|
})
|
||||||
|
|
||||||
if hell.HELL_REALM_ENABLED then
|
if hell.HELL_REALM_ENABLED then
|
||||||
-- Use the Portal API to add a portal type which goes to the Hell
|
-- Use the Portal API to add a portal type which goes to the Hell
|
||||||
|
Reference in New Issue
Block a user