Quartz Tower

>Added randomly generating tower-dungeon
>Added new, tougher mob variants
>Added new decorations for dungeons
>Improved some textures
master
D00Med 2018-02-25 12:22:42 +10:00
parent a39c9a0000
commit c3c91d0e8b
80 changed files with 4670 additions and 2911 deletions

View File

@ -18,4 +18,5 @@ weather_allow_abm = true
enable_moreplants = true
twilight = false
3d_leaves = false
mob_show_health = false
mob_show_health = false
lom_devmode = false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 722 B

After

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 609 B

After

Width:  |  Height:  |  Size: 718 B

View File

@ -540,10 +540,9 @@ doors.register("door_ice", {
tiles = {{name = "doors_door_ice.png", backface_culling = true}},
description = "Ice Door",
inventory_image = "doors_item_ice.png",
protected = true,
use_texture_alpha = true,
groups = {cracky = 1, level = 2},
sounds = default.node_sound_metal_defaults(),
sounds = default.node_sound_glass_defaults(),
sound_open = "doors_door_open",
sound_close = "doors_door_close",
recipe = {
@ -553,6 +552,22 @@ doors.register("door_ice", {
}
})
doors.register("door_quartz", {
tiles = {{name = "doors_door_quartz.png", backface_culling = true}},
description = "Quartz Door",
inventory_image = "doors_item_quartz.png",
use_texture_alpha = true,
groups = {cracky = 1, level = 2},
sounds = default.node_sound_stone_defaults(),
sound_open = "doors_door_open",
sound_close = "doors_door_close",
recipe = {
{"quartz:quartz_crystal", "quartz:quartz_crystal"},
{"quartz:quartz_crystal", "quartz:quartz_crystal"},
{"quartz:quartz_crystal", "quartz:quartz_crystal"},
}
})
doors.register("door_steel", {
tiles = {{name = "doors_door_steel.png", backface_culling = true}},
description = "Steel Door",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 624 B

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

View File

@ -216,6 +216,7 @@ minetest.register_entity("experience:orb", {
physical = true,
timer = 0,
textures = {"orb.png"},
glow = 12,
visual_size = {x=0.3, y=0.3},
collisionbox = {-0.17,-0.17,-0.17,0.17,0.17,0.17},
on_activate = function(self, staticdata)

View File

@ -80,6 +80,34 @@ minetest.register_node("fire:permanent_flame", {
end,
})
minetest.register_node("fire:fake_flame", {
description = "Fake Flame",
drawtype = "firelike",
tiles = {
{
name = "fire_basic_flame_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 1
},
},
},
inventory_image = "fire_basic_flame.png",
paramtype = "light",
light_source = 11,
walkable = false,
buildable_to = true,
sunlight_propagates = true,
damage_per_second = 4,
groups = {dig_immediate = 3},
drop = "",
on_blast = function()
end,
})
-- Flint and steel

View File

@ -0,0 +1,139 @@
minetest.register_craft( {
output = "hyrule_mapgen:logpile 1",
recipe = {
{ "", "default:tree", "" },
{ "default:tree", "", "default:tree" }
}
})
minetest.register_craft( {
output = "hyrule_mapgen:big_table 1",
recipe = {
{ "default:wood", "default:wood", "default:wood" },
{ "default:wood", "", "" },
{ "default:wood", "", "" }
}
})
minetest.register_craft( {
output = "hyrule_mapgen:wood_fence 6",
recipe = {
{"default:stick", "default:stick", "default:stick"},
{"default:stick", "default:stick", "default:stick"}
}
})
minetest.register_craft({
output = 'hyrule_mapgen:ice_brick',
recipe = {
{'default:ice', 'default:ice', ''},
{'default:ice', '', ''},
{'default:ice', '', ''},
}
})
minetest.register_craft({
output = 'hyrule_mapgen:bridge',
recipe = {
{'', 'group:wood', ''},
{'group:wood', 'group:wood', 'group:wood'},
}
})
minetest.register_craft({
output = 'hyrule_mapgen:grupee',
recipe = {
{'hyruletools:green_rupee', 'hyruletools:green_rupee', 'hyruletools:green_rupee'},
{'hyruletools:green_rupee', 'hyruletools:green_rupee', 'hyruletools:green_rupee'},
{'hyruletools:green_rupee', 'hyruletools:green_rupee', 'hyruletools:green_rupee'},
}
})
minetest.register_craft({
output = 'hyrule_mapgen:rrupee',
recipe = {
{'hyruletools:red_rupee', 'hyruletools:red_rupee', 'hyruletools:red_rupee'},
{'hyruletools:red_rupee', 'hyruletools:red_rupee', 'hyruletools:red_rupee'},
{'hyruletools:red_rupee', 'hyruletools:red_rupee', 'hyruletools:red_rupee'},
}
})
minetest.register_craft({
output = 'hyrule_mapgen:brupee',
recipe = {
{'hyruletools:blue_rupee', 'hyruletools:blue_rupee', 'hyruletools:blue_rupee'},
{'hyruletools:blue_rupee', 'hyruletools:blue_rupee', 'hyruletools:blue_rupee'},
{'hyruletools:blue_rupee', 'hyruletools:blue_rupee', 'hyruletools:blue_rupee'},
}
})
minetest.register_craft({
output = 'hyrule_mapgen:nrupee',
recipe = {
{'hyruletools:nyan_rupee', 'hyruletools:nyan_rupee', 'hyruletools:nyan_rupee'},
{'hyruletools:nyan_rupee', 'hyruletools:nyan_rupee', 'hyruletools:nyan_rupee'},
{'hyruletools:nyan_rupee', 'hyruletools:nyan_rupee', 'hyruletools:nyan_rupee'},
}
})
minetest.register_craft({
output = 'hyrule_mapgen:railblock',
recipe = {
{'', 'default:steel_ingot', ''},
{'default:steel_ingot', 'default:steel_ingot', ''},
{'', 'default:steel_ingot', ''},
}
})
minetest.register_craft({
output = 'hyrule_mapgen:wallring',
recipe = {
{'hyrule_mapgen:railblock', 'default:steel_ingot'},
}
})
minetest.register_craft({
output = 'hyrule_mapgen:volvagia_spawn',
recipe = {
{'', 'default:stone', ''},
{'bucket:bucket_lava', 'hyruletools:pendant3', 'bucket:bucket_lava'},
{'', 'default:stone', ''},
}
})
minetest.register_craft({
output = 'hyrule_mapgen:bongo_spawn',
recipe = {
{'', 'default:stone', ''},
{'bucket:bucket_lava', 'hyruletools:pendant1', 'bucket:bucket_lava'},
{'', 'default:stone', ''},
}
})
minetest.register_craft({
output = 'hyrule_mapgen:dodongo_spawn',
recipe = {
{'', 'default:tree', ''},
{'moreplants:eye', 'hyruletools:pendant2', 'moreplants:eye'},
{'', 'default:tree', ''},
}
})
minetest.register_craft({
output = "default:wood 4",
type = "shapeless",
recipe = {"hyrule_mapgen:palm_tree"}
})
minetest.register_craft({
output = "default:junglewood 4",
type = "shapeless",
recipe = {"hyrule_mapgen:wild_tree"}
})
minetest.register_craft({
output = "default:acacia_wood 4",
type = "shapeless",
recipe = {"hyrule_mapgen:magic_tree"}
})

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
License for Code
----------------
Copyright (C) 2016 DOOMED <heiselong@gmx.com>
Copyright (C) 2016 D00Med <heiselong@gmx.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
@ -39,9 +39,9 @@ https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
License for Textures, Models and Sounds
---------------------------------------
CC-BY-SA 3.0 UNPORTED. Created by DOOMED
CC-BY-SA 3.0 UNPORTED. Created by D00Med
hyrule_mapgen_roots.png, hyrule_mapgen_roots2.png, hyrule_mapgen_statue_active.png, hyrule_mapgen_statue_front.png, hyrule_mapgen_statue_side.png, hyrule_mapgen_big_sapling.png, cactus.b3d, leaf.b3d, waterlily.b3d, default_stone.png, hyrule_mapgen_grupee.png, hyrule_mapgen_brupee.png, hyrule_mapgen_rrupee.png - CC-BY-SA 3.0 UNPORTED. Created by toby109tt(aka tobyplowy)
hyrule_mapgen_roots.png, hyrule_mapgen_roots2.png, hyrule_mapgen_statue_active.png, hyrule_mapgen_statue_front.png, hyrule_mapgen_statue_side.png, hyrule_mapgen_big_sapling.png, cactus.b3d, leaf.b3d, waterlily.b3d, default_stone.png, hyrule_mapgen_grupee.png, hyrule_mapgen_brupee.png, hyrule_mapgen_rrupee.png, goddess_statue.obj - CC-BY-SA 3.0 UNPORTED. Created by toby109tt(aka tobyplowy)
For moreblocks_slope.obj:

View File

@ -1521,7 +1521,7 @@ minetest.register_ore({
clust_scarcity = 16 * 16 * 16,
clust_size = 12,
y_min = -31000,
y_max = 31000,
y_max = 10,
noise_threshold = 0.0,
noise_params = {
offset = 0.5,
@ -1936,3 +1936,17 @@ minetest.register_on_generated(function(minp, maxp)
end
end
end)
minetest.register_on_generated(function(minp, maxp)
if minp.x < 50 and 50 < maxp.x and minp.y < 10 and 10 < maxp.y and minp.z < 50 and 50 < maxp.z then
minetest.place_schematic({x=0,y=10,z=0}, minetest.get_modpath("hyrule_mapgen").."/schematics/tower_ground.mts", 0, {["hyrule_mapgen:tower_dev"] = "hyrule_mapgen:tower_spawner",}, true)
end
end)
--Tower Generation
-- minetest.register_on_newplayer(function(player)
-- if player:get_player_name() == "singleplayer" then
-- minetest.place_schematic({x=0,y=15,z=0}, minetest.get_modpath("hyrule_mapgen").."/schematics/tower_ground.mts", 0, {["hyrule_mapgen:tower_dev"] = "hyrule_mapgen:tower_spawner",}, true)
-- end
-- end)

View File

@ -0,0 +1,150 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib candles.mtl
o nodebox6
v -0.062500 -0.499000 -0.312500
v -0.062500 -0.499000 -0.250000
v -0.062500 -0.437500 -0.250000
v -0.062500 -0.437500 -0.312500
v -0.125000 -0.499000 -0.312500
v -0.125000 -0.499000 -0.250000
v -0.125000 -0.437500 -0.250000
v -0.125000 -0.437500 -0.312500
v 0.187500 -0.500000 -0.062500
v 0.187500 -0.500000 0.125000
v 0.187500 -0.062500 0.125000
v 0.187500 -0.062500 -0.062500
v 0.000000 -0.500000 -0.062500
v 0.000000 -0.500000 0.125000
v 0.000000 -0.062500 0.125000
v 0.000000 -0.062500 -0.062500
v -0.187500 -0.499000 -0.187500
v -0.187500 -0.499000 -0.062500
v -0.187500 -0.375000 -0.062500
v -0.187500 -0.375000 -0.187500
v -0.250000 -0.499000 -0.187500
v -0.250000 -0.499000 -0.062500
v -0.250000 -0.375000 -0.062500
v -0.250000 -0.375000 -0.187500
v -0.062812 -0.498125 -0.187188
v -0.062812 -0.498125 -0.125313
v -0.062812 -0.126875 -0.125313
v -0.062812 -0.126875 -0.187188
v -0.124688 -0.498125 -0.187188
v -0.124688 -0.498125 -0.125313
v -0.124688 -0.126875 -0.125313
v -0.124688 -0.126875 -0.187188
v 0.185500 -0.499000 -0.125000
v 0.185500 -0.499000 -0.000000
v 0.185500 -0.375000 -0.000000
v 0.185500 -0.375000 -0.125000
v 0.062500 -0.499000 -0.125000
v 0.062500 -0.499000 -0.000000
v 0.062500 -0.375000 -0.000000
v 0.062500 -0.375000 -0.125000
v 0.124688 -0.497187 0.000312
v 0.124688 -0.497187 0.062187
v 0.124688 0.059687 0.062188
v 0.124688 0.059687 0.000313
v 0.062812 -0.497187 0.000312
v 0.062812 -0.497187 0.062187
v 0.062812 0.059687 0.062188
v 0.062812 0.059687 0.000313
v 0.062500 -0.499000 0.062500
v 0.062500 -0.499000 0.187500
v 0.062500 -0.437500 0.187500
v 0.062500 -0.437500 0.062500
v -0.062500 -0.499000 0.062500
v -0.062500 -0.499000 0.187500
v -0.062500 -0.437500 0.187500
v -0.062500 -0.437500 0.062500
v 0.000000 -0.499000 -0.250000
v 0.000000 -0.499000 -0.062500
v 0.000000 -0.250000 -0.062500
v 0.000000 -0.250000 -0.250000
v -0.187500 -0.499000 -0.250000
v -0.187500 -0.499000 -0.062500
v -0.187500 -0.250000 -0.062500
v -0.187500 -0.250000 -0.250000
vt 0.000000 0.000000
vt 0.166667 0.000000
vt 0.166667 0.100000
vt 0.000000 0.100000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
vt 0.166667 0.200000
vt 0.000000 0.200000
vt 0.500000 0.000000
vt 0.500000 0.700000
vt 0.000000 0.700000
vt 0.333333 0.700000
vt 0.333333 0.900000
vt 0.000000 0.900000
vt 0.166667 0.300000
vt 0.000000 0.300000
vt 0.666667 0.500000
vt 0.833333 0.500000
vt 0.833333 0.700000
vt 0.666667 0.700000
vt 0.666667 0.800000
vt 0.833333 0.800000
vt 0.833333 0.900000
vt 0.666667 0.900000
vt 0.333333 0.000000
vt 0.333333 0.200000
vt 0.500000 0.400000
vt 0.000000 0.400000
vt 0.166667 0.400000
vt 0.166667 0.500000
vt 0.000000 0.500000
usemtl none
s off
f 1/1 2/2 3/3 4/4
f 5/1 6/2 7/3 8/4
f 1/1 4/2 8/3 5/4
f 2/1 3/5 7/6 6/7
f 1/1 2/2 6/3 5/4
f 4/4 3/3 7/8 8/9
f 9/1 10/10 11/11 12/12
f 13/1 14/10 15/11 16/12
f 9/10 12/11 16/12 13/1
f 10/10 11/11 15/12 14/1
f 9/1 10/2 14/3 13/4
f 12/12 11/13 15/14 16/15
f 17/1 18/5 19/6 20/7
f 21/1 22/2 23/8 24/9
f 17/2 20/8 24/9 21/1
f 18/2 19/8 23/9 22/1
f 17/1 18/2 22/3 21/4
f 20/9 19/8 23/16 24/17
f 25/18 26/19 27/20 28/21
f 29/18 30/19 31/20 32/21
f 25/18 28/19 32/20 29/21
f 26/18 27/19 31/20 30/21
f 25/1 26/5 30/6 29/7
f 28/22 27/23 31/24 32/25
f 33/1 34/26 35/27 36/9
f 37/1 38/26 39/27 40/9
f 33/26 36/27 40/9 37/1
f 34/1 35/26 39/27 38/9
f 33/1 34/2 38/3 37/4
f 36/9 35/8 39/16 40/17
f 41/18 42/19 43/20 44/21
f 45/18 46/19 47/20 48/21
f 41/18 44/19 48/20 45/21
f 42/18 43/19 47/20 46/21
f 41/1 42/5 46/6 45/7
f 44/22 43/23 47/24 48/25
f 49/1 50/2 51/3 52/4
f 53/1 54/2 55/3 56/4
f 49/1 52/2 56/3 53/4
f 50/1 51/2 55/3 54/4
f 49/1 50/2 54/3 53/4
f 52/4 51/3 55/8 56/9
f 57/1 58/10 59/28 60/29
f 61/1 62/10 63/28 64/29
f 57/1 60/29 64/28 61/10
f 58/1 59/29 63/28 62/10
f 57/1 58/2 62/3 61/4
f 60/29 59/30 63/31 64/32

View File

@ -0,0 +1,222 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib goddes_statue.mtl
o Cube.001_Cube.003
v 0.462144 1.443764 0.058216
v 0.462144 1.511934 -0.251525
v -0.462144 1.511934 -0.251525
v -0.462144 1.443764 0.058216
v 0.462144 0.008205 -0.257734
v 0.462144 0.076375 -0.567475
v -0.462144 0.076375 -0.567475
v -0.462144 0.008205 -0.257734
v 0.462144 1.493369 0.296924
v 0.462144 1.440136 -0.025222
v -0.462144 1.440136 -0.025222
v -0.462144 1.493369 0.296924
v 0.462144 0.055986 0.534447
v 0.462144 0.002752 0.212300
v -0.462144 0.002752 0.212300
v -0.462144 0.055986 0.534447
v -1.000000 -1.006371 1.000000
v -1.000000 -1.006372 -1.000000
v 1.000000 -1.006372 -1.000000
v 1.000000 -1.006371 1.000000
v -1.000000 -0.006371 1.000000
v -1.000000 -0.006371 -1.000000
v 1.000000 -0.006371 -1.000000
v 1.000000 -0.006371 1.000000
v 0.461847 3.099157 0.230925
v -0.461847 3.099157 0.230925
v -0.461847 1.540419 0.230925
v 0.461847 1.540419 0.230925
v -0.461847 3.099157 -0.230923
v -0.461847 1.540419 -0.230924
v 0.461847 3.099157 -0.230923
v 0.461847 1.540419 -0.230924
v 0.000000 1.540419 -0.230924
v 0.000000 -0.018317 -0.230925
v 0.000000 -0.018317 0.230924
v 0.000000 1.540419 0.230925
v 0.911750 3.142858 0.230925
v 0.456918 3.062659 0.230925
v 0.456918 3.062659 -0.230923
v 0.911750 3.142858 -0.230923
v 0.727590 1.527602 0.230925
v 1.182422 1.607801 0.230925
v 0.000000 -0.018317 -0.230925
v 0.000000 -0.018317 0.230924
v -0.461847 -0.018317 0.230924
v -0.461847 -0.018317 -0.230925
v -0.461847 1.540419 0.230925
v -0.461847 1.540419 -0.230924
v 0.461847 4.022851 0.461849
v -0.461847 4.022851 0.461849
v -0.461847 3.099156 0.461849
v 0.461847 3.099156 0.461849
v -0.461847 4.022851 -0.461847
v -0.461847 3.099157 -0.461847
v 0.461847 4.022851 -0.461847
v 0.461847 3.099157 -0.461847
v 0.000000 1.540419 0.230925
v 0.461847 1.540419 -0.230924
v 0.461847 -0.018317 -0.230925
v 0.000000 1.540419 -0.230924
v 0.461847 -0.018317 0.230924
v 0.461847 1.540419 0.230925
v 1.182422 1.607801 -0.230924
v 0.727590 1.527602 -0.230924
v 0.508033 4.069726 0.508034
v -0.508033 4.069726 0.508034
v -0.508033 3.053663 0.508034
v 0.508033 3.053663 0.508034
v -0.508033 4.069726 -0.508031
v -0.508033 3.053663 -0.508032
v 0.508033 4.069726 -0.508031
v 0.508033 3.053663 -0.508032
v -0.508033 1.924153 0.508034
v 0.508033 1.924153 0.508034
v -0.508033 3.053663 0.498034
v 0.508033 3.053663 0.498034
v -0.508033 1.924153 0.498034
v 0.508033 1.924153 0.498034
v -0.478444 3.060385 0.230925
v -0.933276 3.140584 0.230925
v -1.203948 1.605527 0.230925
v -0.749116 1.525328 0.230925
v -0.478444 3.060385 -0.230923
v -0.749116 1.525328 -0.230924
v -0.933276 3.140584 -0.230923
v -1.203948 1.605527 -0.230924
vt 0.421875 0.687500
vt 0.562500 0.687500
vt 0.562500 0.750000
vt 0.421875 0.750000
vt 0.687500 0.468750
vt 0.812500 0.468750
vt 0.812500 0.281250
vt 0.687500 0.281250
vt 0.859375 0.468750
vt 0.796875 0.468750
vt 0.796875 0.281250
vt 0.859375 0.281250
vt 0.046875 0.187500
vt 0.296875 0.187500
vt 0.296875 0.062500
vt 0.046875 0.062500
vt 0.296875 0.437500
vt 0.046875 0.437500
vt 0.625000 0.687500
vt 0.500000 0.687500
vt 0.500000 0.500000
vt 0.625000 0.500000
vt 0.437500 0.687500
vt 0.437500 0.500000
vt 0.312500 0.687500
vt 0.312500 0.500000
vt 0.437500 0.750000
vt 0.312500 0.750000
vt 0.125000 0.687500
vt 0.125000 0.500000
vt 0.187500 0.500000
vt 0.187500 0.687500
vt 0.812500 0.687500
vt 0.812500 0.500000
vt 0.875000 0.500000
vt 0.875000 0.687500
vt 0.750000 0.687500
vt 0.750000 0.500000
vt 0.187500 0.750000
vt 0.125000 0.750000
vt 0.500000 0.750000
vt 0.375000 0.750000
vt 0.375000 0.500000
vt 0.250000 0.750000
vt 0.250000 0.500000
vt 0.375000 1.000000
vt 0.250000 1.000000
vt 0.125000 1.000000
vt 0.250000 0.687500
vt 0.062500 0.687500
vt 0.062500 0.500000
vt 0.000000 0.750000
vt 0.000000 0.500000
vt 0.062500 0.750000
vt 0.687500 0.687500
vt 0.687500 0.500000
vt 0.750000 0.750000
vt 0.687500 0.750000
vt 0.812500 0.750000
vt 0.500000 0.875000
vt 0.375000 0.875000
vt 0.250000 0.875000
vt 0.125000 0.875000
vt 0.000000 0.875000
vt 0.406250 0.406250
vt 0.406250 0.265625
vt 0.531250 0.265625
vt 0.531250 0.406250
usemtl Character
s off
f 1/1 2/2 3/3 4/4
f 8/1 7/2 6/3 5/4
f 1/5 4/6 8/7 5/8
f 2/9 1/10 5/11 6/12
f 3/5 2/6 6/7 7/8
f 4/9 3/10 7/11 8/12
f 9/1 10/2 11/3 12/4
f 16/1 15/2 14/3 13/4
f 9/5 12/6 16/7 13/8
f 10/10 9/9 13/12 14/11
f 11/5 10/6 14/7 15/8
f 12/10 11/9 15/12 16/11
f 21/13 22/14 18/15 17/16
f 22/13 23/14 19/15 18/16
f 23/13 24/14 20/15 19/16
f 24/13 21/14 17/15 20/16
f 17/13 18/14 19/17 20/18
f 24/13 23/14 22/17 21/18
f 25/19 26/20 27/21 28/22
f 26/20 29/23 30/24 27/21
f 29/23 31/25 32/26 30/24
f 32/2 28/3 27/27 30/23
f 25/28 31/25 29/23 26/27
f 33/29 34/30 35/31 36/32
f 38/33 41/34 42/35 37/36
f 39/37 64/38 41/34 38/33
f 43/32 44/39 45/40 46/29
f 47/6 48/9 46/12 45/7
f 49/41 50/42 51/43 52/21
f 50/42 53/44 54/45 51/43
f 53/44 55/40 56/30 54/45
f 56/42 52/46 51/47 54/44
f 53/44 50/47 49/48 55/40
f 57/32 47/49 45/45 44/31
f 58/50 59/51 34/30 33/29
f 48/50 60/29 43/30 46/51
f 36/32 35/31 61/45 62/49
f 60/29 57/32 44/31 43/30
f 62/6 61/7 59/12 58/9
f 25/49 28/45 32/26 31/25
f 49/52 52/53 56/30 55/40
f 48/29 47/40 57/54 60/50
f 40/55 63/56 64/38 39/37
f 37/19 42/22 63/56 40/55
f 40/55 39/37 38/57 37/58
f 34/32 59/29 61/40 35/39
f 64/37 63/33 42/59 41/57
f 58/29 33/50 36/54 62/40
f 65/60 66/61 67/42 68/41
f 66/61 69/62 70/44 67/42
f 69/62 71/63 72/40 70/44
f 72/61 68/46 67/47 70/62
f 69/62 66/47 65/48 71/63
f 65/64 68/52 72/40 71/63
f 67/65 73/66 74/67 68/68
f 75/68 76/65 78/66 77/67
f 79/33 80/36 81/35 82/34
f 83/37 79/33 82/34 84/38
f 85/55 83/37 84/38 86/56
f 80/19 85/55 86/56 81/22
f 85/55 80/58 79/57 83/37
f 84/37 82/57 81/59 86/33

View File

@ -0,0 +1,28 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib lightshaft.mtl
o Cube
v -1.000000 -1.000000 1.000000
v -1.500000 -4.500000 -2.000000
v 1.500000 -4.500000 -2.000000
v 1.000000 -1.000000 1.000000
v -1.000000 1.000000 1.000000
v -1.500000 -1.500000 -2.000000
v 1.500000 -1.500000 -2.000000
v 1.000000 1.000000 1.000000
vt 0.900000 0.900000
vt 0.100000 0.900000
vt 0.100000 0.000000
vt 0.900000 0.000000
vt 0.000000 0.000000
vt 0.000000 0.050000
vt 0.050000 0.050000
vt 0.050000 0.000000
usemtl Material
s off
f 5/1 1/2 2/3 6/4
f 6/5 2/6 3/7 7/8
f 7/4 3/3 4/2 8/1
f 8/5 4/6 1/7 5/8
f 1/2 4/1 3/4 2/3
f 8/2 5/1 6/4 7/3

View File

@ -0,0 +1,28 @@
# Blender v2.72 (sub 0) OBJ File: ''
# www.blender.org
mtllib lightshaft2.mtl
o Cube
v -1.000000 1.084134 0.946470
v -1.500000 -1.915866 1.446470
v 1.500000 -1.915866 1.446470
v 1.000000 1.084134 0.946470
v -1.000000 1.084134 -1.053530
v -1.500000 -1.915866 -1.553530
v 1.500000 -1.915866 -1.553530
v 1.000000 1.084134 -1.053530
vt 0.900000 0.900000
vt 0.100000 0.900000
vt 0.100000 0.000000
vt 0.900000 0.000000
vt 0.000000 0.000000
vt 0.000000 0.050000
vt 0.050000 0.050000
vt 0.050000 0.000000
usemtl Material
s off
f 5/1 1/2 2/3 6/4
f 6/5 2/6 3/7 7/8
f 7/4 3/3 4/2 8/1
f 8/5 4/6 1/7 5/8
f 1/2 4/1 3/4 2/3
f 8/2 5/1 6/4 7/3

3333
mods/hyrule_mapgen/nodes.lua Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 526 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 B

After

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 B

After

Width:  |  Height:  |  Size: 370 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 512 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 B

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

View File

@ -1663,7 +1663,7 @@ minetest.register_node("hyruletools:fire", {
drawtype = "plantlike",
sunlight_propagates = true,
paramtype = "light",
light_source = 14,
light_source = 5,
walkable = false,
damage_per_second = 2,
tiles = {{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 548 B

After

Width:  |  Height:  |  Size: 783 B

View File

@ -36,7 +36,7 @@ minetest.register_node("loot:chest", {
{-0.5, 0.4375, -0.3125, 0.5, 0.5, 0.3125}, -- NodeBox4
}
},
groups = {cracky = 2, oddly_breakable_by_hand = 1},
groups = {cracky = 3,},
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
@ -57,6 +57,22 @@ minetest.register_node("loot:chest", {
end,
on_rightclick = function(pos, node, clicker, item, _)
local name = clicker:get_player_name()
if math.random(1,50) == 6 then
for i=1,3 do
minetest.env:add_entity({x=pos.x+math.random(-10,10)*0.1, y=pos.y+0.1, z=pos.z+math.random(-10,10)*0.1}, "mobs_loz:moldorm_leech")
end
return
elseif math.random(1,50) == 6 then
for i=1,4 do
minetest.env:add_entity({x=pos.x+math.random(-10,10)*0.1, y=pos.y+0.1, z=pos.z+math.random(-10,10)*0.1}, "mobs_loz:leever_poison")
end
return
elseif math.random(1,50) == 6 then
for i=1,5 do
minetest.env:add_entity({x=pos.x+math.random(-10,10)*0.1, y=pos.y+0.1, z=pos.z+math.random(-10,10)*0.1}, "mobs_loz:zol")
end
return
end
if clicker:get_wielded_item():get_name() == "loot:key" then
item:take_item()
local meta = minetest.get_meta(pos)
@ -221,6 +237,52 @@ minetest.register_node("loot:amethyst_cube", {
sounds = default.node_sound_glass_defaults()
})
minetest.register_node("loot:vegemite", {
description = "Vegemite",
tiles = {
"loot_vegemite_top.png",
"loot_vegemite_top.png",
"loot_vegemite.png",
"loot_vegemite.png^[transformFX",
"loot_vegemite.png^[transformFX",
"loot_vegemite.png",
},
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-2/16, -0.5, -3/16, 2/16, 0, 3/16},
{-3/16, -0.5, -2/16, 3/16, 0, 2/16},
}
},
groups = {cracky=1, not_in_creative_inventory=1},
sounds = default.node_sound_glass_defaults()
})
minetest.register_node("loot:pc", {
description = "PC",
tiles = {
"loot_pc_top.png",
"loot_pc_top.png",
"loot_pc_side.png",
"loot_pc_side.png",
"loot_pc_front.png",
"loot_pc_top.png"
},
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.4375, -0.5, -0.4375, 0.4375, -0.25, 0.5}, -- NodeBox1
{-0.25, -0.25, -0.25, 0.3125, -0.1875, 0.25}, -- NodeBox2
{-0.375, -0.1875, -0.375, 0.375, 0.5, 0.4375}, -- NodeBox4
}
},
groups = {cracky=1, not_in_creative_inventory=1}
})
minetest.register_node("loot:carpet", {
description = "Carpet Floor",
tiles = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 B

View File

@ -12,6 +12,7 @@ if mobs.mod and mobs.mod == "redo" then
armor = 130,
collisionbox = {-0.1,-0.1,-0.1, 0.1,0.1,0.1},
visual = "mesh",
glow = 12,
mesh = "fairy2.b3d",
textures = {
{"fairy.png"},

View File

@ -1,6 +1,28 @@
minetest.register_node("mobs_loz:armos_statue", {
description = "Armos Statue",
tiles = {
"mobs_armos_frozen.png",
},
visual_scale = 0.5,
drawtype = "mesh",
mesh = "armos.b3d",
paramtype = "light",
paramtype2 = "facedir",
selection_box = {
type = "fixed",
fixed = {{-0.35, -0.5, -0.35, 0.35, 1.3, 0.35},}
},
collision_box = {
type = "fixed",
fixed = {{-0.35, -0.5, -0.35, 0.35, 1.3, 0.35},}
},
groups = {cracky=3,},
sounds = default.node_sound_stone_defaults(),
})
mobs:register_mob("mobs_loz:armos", {
type = "animal",
type = "monster",
passive = false,
attack_type = "dogfight",
reach = 2,
@ -8,7 +30,7 @@ mobs:register_mob("mobs_loz:armos", {
hp_min = 10,
hp_max = 27,
armor = 100,
collisionbox = {-0.5, 0, -0.5, 0.5, 1.5, 0.5},
collisionbox = {-0.35, -0.5, -0.35, 0.35, 1.3, 0.35},
visual = "mesh",
mesh = "armos.b3d",
textures = {

View File

@ -52,4 +52,60 @@ mobs:register_mob("mobs_loz:darknut", {
},
})
mobs:register_egg("mobs_loz:darknut", "Darknut", "default_stone.png", 1)
mobs:register_egg("mobs_loz:darknut", "Darknut", "default_stone.png", 1)
mobs:register_mob("mobs_loz:darkernut", {
type = "monster",
passive = false,
attack_type = "dogfight",
reach = 2.5,
damage = 3,
hp_min = 60,
hp_max = 87,
armor = 100,
collisionbox = {-0.7, -0, -0.7, 0.7, 2, 0.7},
visual_size = {x=1.3, y=1.3},
visual = "mesh",
mesh = "darknut.b3d",
textures = {
{"mobs_darkernut.png"},
},
makes_footstep_sound = true,
view_range = 10,
walk_velocity = 1.5,
run_velocity = 2,
drops = {
{name = "loot:key",
chance = 5, min = 1, max = 1},
{name = "default:sword_diamond",
chance = 20, min = 1, max = 1},
},
on_die = function(self)
local pos = self.object:getpos()
if math.random(1,7) == 2 then
minetest.env:add_entity(pos, "hyruletools:heart_entity")
minetest.env:add_entity(pos, "hyruletools:heart_entity")
end
minetest.env:add_entity(pos, "experience:orb")
minetest.env:add_entity(pos, "experience:orb")
minetest.env:add_entity(pos, "experience:orb")
end,
water_damage = 0,
lava_damage = 5,
light_damage = 0,
fear_height = 6,
animation = {
speed_normal = 12,
speed_run = 15,
stand_start = 15,
stand_end = 25,
walk_start = 30,
walk_end = 50,
run_start = 30,
run_end = 50,
punch_start = 1,
punch_end = 15,
},
})
mobs:register_egg("mobs_loz:darkernut", "Darkernut", "default_obsidian.png", 1)

View File

@ -26,6 +26,61 @@ mobs:register_mob("mobs_loz:deku_baba", {
walk_velocity = 0.01,
run_velocity = 0.05,
jump = false,
drops = {
{name = "loot:key",
chance = 1, min = 1, max = 1},
},
on_die = function(self)
local pos = self.object:getpos()
if math.random(1,2) == 2 then
minetest.env:add_entity(pos, "hyruletools:heart_entity")
end
minetest.env:add_entity(pos, "experience:orb")
end,
water_damage = -1,
lava_damage = 5,
light_damage = 0,
fear_height = 3,
animation = {
speed_normal = 12,
speed_run = 30,
stand_start = 1,
stand_end = 19,
walk_start = 1,
walk_end = 19,
run_start = 35,
run_end = 55,
punch_start = 20,
punch_end = 35,
},
})
mobs:register_egg("mobs_loz:deku_baba", "Deku Baba", "default_dry_grass.png", 1)
mobs:register_mob("mobs_loz:deku_baba_dry", {
type = "monster",
passive = false,
attack_type = "dogfight",
reach = 4,
damage = 4,
hp_min = 20,
hp_max = 37,
armor = 100,
collisionbox = {-0.3, 0, -0.2, 0.2, 1.2, 0.2},
visual = "mesh",
mesh = "dekubaba.b3d",
textures = {
{"mobs_dekubaba_dry.png"},
},
blood_texture = "default_dry_grass.png",
makes_footstep_sound = false,
sounds = {
random = "mobs_dirtmonster",
},
view_range = 5,
walk_velocity = 0.01,
run_velocity = 0.05,
jump = false,
drops = {
{name = "mobs_loz:nut",
chance = 1, min = 1, max = 3},
@ -55,4 +110,4 @@ mobs:register_mob("mobs_loz:deku_baba", {
},
})
mobs:register_egg("mobs_loz:deku_baba", "Deku_Baba", "default_dry_grass.png", 1)
mobs:register_egg("mobs_loz:deku_baba_dry", "Dry Deku Baba", "wool_orange.png", 1)

46
mods/mobs_loz/gibido.lua Normal file
View File

@ -0,0 +1,46 @@
mobs:register_mob("mobs_loz:gibido", {
type = "monster",
passive = false,
reach = 2,
damage = 3,
attack_type = "dogfight",
hp_min = 20,
hp_max = 30,
armor = 100,
collisionbox = {-0.4, -1, -0.4, 0.4, 0.7, 0.4},
visual = "mesh",
mesh = "character.b3d",
drawtype = "front",
textures = {
{"mobs_gibido.png"},
},
on_die = function(self)
local pos = self.object:getpos()
if math.random(1,3) == 2 then
minetest.env:add_entity(pos, "hyruletools:heart_entity")
end
minetest.env:add_entity(pos, "experience:orb")
end,
makes_footstep_sound = true,
walk_velocity = 1,
run_velocity = 1.4,
water_damage = 1,
lava_damage = 5,
light_damage = 1,
view_range = 5,
animation = {
speed_normal = 15,
speed_run = 15,
stand_start = 0,
stand_end = 79,
walk_start = 168,
walk_end = 187,
run_start = 168,
run_end = 187,
punch_start = 200,
punch_end = 219,
},
})
mobs:register_egg("mobs_loz:gibido", "Gibido", "wool_grey.png", 1)

View File

@ -30,6 +30,7 @@ dofile(path.."/armos.lua")
dofile(path.."/wolfos.lua")
dofile(path.."/darknut.lua")
dofile(path.."/tektite.lua")
dofile(path.."/gibido.lua")
dofile(path.."/biri.lua")
dofile(path.."/keese.lua")
dofile(path.."/skulltula.lua")

View File

@ -17,8 +17,8 @@ mobs:register_mob("mobs_loz:leever", {
},
makes_footstep_sound = true,
view_range = 7,
walk_velocity = 1,
run_velocity = 1.5,
walk_velocity = 1.5,
run_velocity = 2.2,
jump_height = 0,
drops = {
{name = "hyruletools:green_rupee",
@ -79,4 +79,86 @@ mobs:register_mob("mobs_loz:leever", {
},
})
mobs:register_egg("mobs_loz:leever", "Leever", "default_sand.png", 1)
mobs:register_egg("mobs_loz:leever", "Leever", "default_sand.png", 1)
mobs:register_mob("mobs_loz:leever_poison", {
type = "monster",
passive = false,
attack_type = "dogfight",
reach = 1.5,
damage = 3,
hp_min = 15,
hp_max = 30,
armor = 110,
collisionbox = {-0.3, -0, -0.3, 0.3, 0.4, 0.3},
visual_size = {x=1, y=1},
visual = "mesh",
mesh = "leever.b3d",
textures = {
{"mobs_leever_poison.png"},
},
makes_footstep_sound = true,
view_range = 7,
walk_velocity = 2,
run_velocity = 2.5,
jump_height = 3,
drops = {
{name = "hyruletools:green_rupee",
chance = 5, min = 1, max = 3},
},
do_custom = function(self)
if not self.active then
minetest.after(15, function()
if self.object ~= nil and self.object:getpos() ~= nil then
local pos = self.object:getpos()
minetest.add_particlespawner({
amount = 10,
time = 0.5,
minpos = {x=pos.x-0.2, y=pos.y-0.3, z=pos.z-0.2},
maxpos = {x=pos.x+0.2, y=pos.y+0.5, z=pos.z+0.2},
minvel = {x=-0.5, y=2, z=-0.5},
maxvel = {x=0.5, y=4, z=0.5},
minacc = {x=0, y=-7, z=0},
maxacc = {x=0, y=-7, z=0},
minexptime = 2,
maxexptime = 3,
minsize = 1,
maxsize = 2,
collisiondetection = true,
texture = "quartz_wall.png"
})
self.object:set_properties({physical = false})
minetest.after(1, function()
self.object:remove()
end)
end
end)
self.active = true
end
end,
on_die = function(self)
local pos = self.object:getpos()
if math.random(1,10) == 2 then
minetest.env:add_entity(pos, "hyruletools:heart_entity")
end
minetest.env:add_entity(pos, "experience:orb")
end,
water_damage = 1,
lava_damage = 5,
light_damage = 0,
fear_height = 3,
animation = {
speed_normal = 12,
speed_run = 15,
stand_start = 20,
stand_end = 40,
walk_start = 3,
walk_end = 16,
run_start = 3,
run_end = 17,
punch_start = 3,
punch_end = 16,
},
})
mobs:register_egg("mobs_loz:leever_poison", "Poisonous Leever", "wool_magenta.png", 1)

Binary file not shown.

View File

@ -119,4 +119,58 @@ mobs:register_mob("mobs_loz:great_moldorm", {
},
})
mobs:register_egg("mobs_loz:great_moldorm", "Great Moldorm", "mobs_zol.png^[colorize:yellow:20", 1)
mobs:register_egg("mobs_loz:great_moldorm", "Great Moldorm", "mobs_zol.png^[colorize:yellow:20", 1)
mobs:register_mob("mobs_loz:moldorm_leech", {
type = "monster",
passive = false,
attack_type = "dogfight",
reach = 1,
damage = 1,
hp_min = 12,
hp_max = 25,
armor = 120,
collisionbox = {-0.2, -0.1, -0.2, 0.2, 0.4, 0.4},
visual = "mesh",
mesh = "bdodongo.b3d",
textures = {
{"mobs_moldorm_leech.png"},
},
makes_footstep_sound = false,
sounds = {
random = "mobs_stonemonster",
},
walk_velocity = 3,
run_velocity = 4,
jump = 1,
floats = 1,
view_range = 5,
drops = {
{name = "default:gravel",
chance = 3, min = 1, max = 2},
},
on_die = function(self)
local pos = self.object:getpos()
if math.random(1,4) == 2 then
minetest.env:add_entity(pos, "hyruletools:heart_entity")
end
minetest.env:add_entity(pos, "experience:orb")
end,
water_damage = 0,
lava_damage = 2,
light_damage = 1,
animation = {
speed_normal = 15,
speed_run = 20,
stand_start = 3,
stand_end = 3,
walk_start = 3,
walk_end = 21,
run_start = 3,
run_end = 21,
punch_start = 3,
punch_end = 21,
},
})
mobs:register_egg("mobs_loz:moldorm_leech", "Moldorm Leech", "default_stone.png", 1)

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -34,7 +34,7 @@ mobs:register_mob("mobs_loz:volvagia", {
run_velocity = 5,
jump = false,
drops = {
{name = "hyruletools:firestone", chance = 1, min = 3, max = 5},
{name = "hyruletools:firestone", chance = 1, min = 1, max = 1},
},
on_die = function(self)
local pos = self.object:getpos()
@ -119,7 +119,7 @@ mobs:register_mob("mobs_loz:volvagia_ice", {
run_velocity = 5,
jump = false,
drops = {
{name = "hyruletools:firestone", chance = 1, min = 3, max = 5},
{name = "loot:key", chance = 1, min = 1, max = 1},
},
on_die = function(self)
local pos = self.object:getpos()

View File

@ -158,4 +158,59 @@ mobs:register_mob("mobs_loz:wolfos2", {
},
})
mobs:register_egg("mobs_loz:wolfos2", "White Wolfos", "wool_cyan.png", 1)
mobs:register_egg("mobs_loz:wolfos2", "White Wolfos", "wool_cyan.png", 1)
mobs:register_mob("mobs_loz:wolfos_tower", {
type = "monster",
passive = false,
attack_type = "dogfight",
reach = 2.5,
damage = 4,
hp_min = 60,
hp_max = 87,
armor = 90,
collisionbox = {-0.5, -0, -0.5, 0.5, 1, 0.5},
--visual_size = {x=1.5, y=1.5},
visual = "mesh",
mesh = "wolfos.b3d",
textures = {
{"mobs_wolfos_tower.png"},
},
makes_footstep_sound = true,
view_range = 10,
walk_velocity = 1.6,
run_velocity = 3.2,
drops = {
{name = "loot:key",
chance = 5, min = 1, max = 1},
},
on_die = function(self)
local pos = self.object:getpos()
if math.random(1,5) == 2 then
minetest.env:add_entity(pos, "hyruletools:heart_entity")
minetest.env:add_entity(pos, "hyruletools:heart_entity")
end
if math.random(1,50) == 1 then
minetest.set_node(self.object:getpos(), {name="mobs_loz:wolfos_tear"})
end
minetest.env:add_entity(pos, "experience:orb")
end,
water_damage = 1,
lava_damage = 5,
light_damage = 0,
fear_height = 6,
animation = {
speed_normal = 14,
speed_run = 18,
stand_start = 1,
stand_end = 20,
walk_start = 45,
walk_end = 65,
run_start = 45,
run_end = 65,
punch_start = 20,
punch_end = 40,
},
})
mobs:register_egg("mobs_loz:wolfos_tower", "Tower Wolfos", "default_dirt.png", 1)

View File

@ -77,6 +77,7 @@ minetest.register_node("quartz:wall_immortal", {
description = "Unbreakeable Quartz Wall",
tiles = {"quartz_wall.png",},
groups = {snappy=0,bendy=0,cracky=0, not_in_creative_inventory=1},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
on_blast = function(pos, intensity)
end,
@ -88,6 +89,7 @@ minetest.register_node("quartz:block_immortal", {
tiles = {"quartz_block_top.png", "quartz_block_bottom.png", "quartz_block_side.png"},
groups = {snappy=0,bendy=0,cracky=0, not_in_creative_inventory=1},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
on_blast = function(pos, intensity)
end,
})
@ -98,6 +100,7 @@ minetest.register_node("quartz:chiseled_immortal", {
tiles = {"quartz_chiseled_top.png", "quartz_chiseled_top.png", "quartz_chiseled_side.png"},
groups = {snappy=0,bendy=0,cracky=0, not_in_creative_inventory=1},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
on_blast = function(pos, intensity)
end,
})
@ -108,6 +111,7 @@ minetest.register_node("quartz:pillar_immortal", {
tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"},
groups = {snappy=0,bendy=0,cracky=0, not_in_creative_inventory=1},
sounds = default.node_sound_stone_defaults(),
is_ground_content = false,
on_blast = function(pos, intensity)
end,
on_place = minetest.rotate_node,

View File

@ -528,8 +528,47 @@ minetest.register_entity("tnt:tnt_object", {
minetest.after(3, function()
if self.object ~= nil then
local pos = self.object:getpos()
local node = minetest.find_node_near(pos, 1, {"default:water_source", "default:water_flowing", "default:river_water_source", "default:river_water_flowing"})
if node and not self.waterproof then
minetest.add_particlespawner({
amount = 5,
time = 0.2,
minpos = {x=pos.x-0.4, y=pos.y+0.1, z=pos.z-0.4},
maxpos = {x=pos.x+0.4, y=pos.y+0.5, z=pos.z+0.4},
minvel = {x=-0.5, y=0.5, z=0.5},
maxvel = {x=1, y=1, z=1},
minacc = {x=-0.2, y=1, z=-0.2},
maxacc = {x=0.2, y=1, z=0.2},
minexptime = 0.5,
maxexptime = 1,
minsize = 1,
maxsize = 2,
collisiondetection = false,
texture = "bubble.png"
})
self.object:remove()
elseif not node or self.waterproof then
tnt.boom(pos, {damage_radius=3, radius=3})
self.object:remove()
if self.waterproof then
minetest.add_particlespawner({
amount = 5,
time = 0.2,
minpos = {x=pos.x-0.4, y=pos.y+0.1, z=pos.z-0.4},
maxpos = {x=pos.x+0.4, y=pos.y+0.5, z=pos.z+0.4},
minvel = {x=-0.5, y=0.5, z=0.5},
maxvel = {x=1, y=1, z=1},
minacc = {x=-0.2, y=1, z=-0.2},
maxacc = {x=0.2, y=1, z=0.2},
minexptime = 0.5,
maxexptime = 1,
minsize = 1,
maxsize = 2,
collisiondetection = false,
texture = "bubble.png"
})
end
end
end
end)
end,
@ -541,7 +580,7 @@ minetest.register_entity("tnt:tnt_object", {
local pos = self.object:getpos()
if pos ~= nil then
minetest.add_particlespawner({
amount = 5,
amount = 2,
time = 0.2,
minpos = {x=pos.x, y=pos.y+0.4, z=pos.z},
maxpos = {x=pos.x, y=pos.y+0.5, z=pos.z},
@ -628,8 +667,30 @@ function tnt.register_tnt(def)
drop = "",
sounds = default.node_sound_wood_defaults(),
groups = {falling_node = 1},
on_timer = function(pos, elapsed)
on_timer = function(pos, elapsed)
local node = minetest.find_node_near(pos, 1, {"default:water_source", "default:water_flowing", "default:river_water_source", "default:river_water_flowing"})
local name = minetest.get_node(pos).name
if node and minetest.get_item_group(name, "waterproof") < 1 then
minetest.add_particlespawner({
amount = 5,
time = 0.2,
minpos = {x=pos.x-0.4, y=pos.y+0.1, z=pos.z-0.4},
maxpos = {x=pos.x+0.4, y=pos.y+0.5, z=pos.z+0.4},
minvel = {x=-0.5, y=0.5, z=0.5},
maxvel = {x=1, y=1, z=1},
minacc = {x=-0.2, y=1, z=-0.2},
maxacc = {x=0.2, y=1, z=0.2},
minexptime = 0.5,
maxexptime = 1,
minsize = 1,
maxsize = 2,
collisiondetection = false,
texture = "bubble.png"
})
minetest.set_node(pos, {name="air"})
elseif not node or minetest.get_item_group(name, "waterproof") > 0 then
tnt.boom(pos, def)
end
end,
-- unaffected by explosions
on_blast = function() end,
@ -647,7 +708,7 @@ minetest.register_abm({
chance = 1,
action = function(pos, node)
minetest.add_particlespawner({
amount = 25,
amount = 10,
time = 1,
minpos = {x=pos.x, y=pos.y+0.4, z=pos.z},
maxpos = {x=pos.x, y=pos.y+0.5, z=pos.z},