Texture changes, stalagmites/stalagtites

master
D00Med 2016-12-08 07:58:16 +10:00
parent 2f1590991a
commit 6f4ae44937
18 changed files with 176 additions and 62 deletions

View File

@ -110,7 +110,7 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
end
minetest.register_craftitem("bucket:bucket_empty", {
description = "Empty Bucket",
description = "Empty Bottle",
inventory_image = "bucket.png",
stack_max = 99,
liquids_pointable = true,
@ -184,7 +184,7 @@ bucket.register_liquid(
"default:water_flowing",
"bucket:bucket_water",
"bucket_water.png",
"Water Bucket",
"Water Bottle",
{water_bucket = 1}
)
@ -193,7 +193,7 @@ bucket.register_liquid(
"default:river_water_flowing",
"bucket:bucket_river_water",
"bucket_river_water.png",
"River Water Bucket",
"River Water Bottle",
{water_bucket = 1},
true
)
@ -203,7 +203,7 @@ bucket.register_liquid(
"default:lava_flowing",
"bucket:bucket_lava",
"bucket_lava.png",
"Lava Bucket"
"Lava Bottle"
)
minetest.register_craft({

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 B

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 675 B

After

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

After

Width:  |  Height:  |  Size: 311 B

View File

@ -1039,6 +1039,113 @@ minetest.register_node("hyrule_mapgen:red_ore", {
groups = {crumbly=1, oddly_breakable_by_hand=1, xp=1, not_in_creative_inventory=1},
})
minetest.register_node("hyrule_mapgen:stalagmite", {
description = "Stalagmite",
drawtype = "plantlike",
tiles = {"hyrule_mapgen_stalagmite0.png"},
inventory_image = "hyrule_mapgen_stalagmite0.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
})
minetest.register_node("hyrule_mapgen:stalagmite1", {
description = "Stalagmite",
drawtype = "plantlike",
tiles = {"hyrule_mapgen_stalagmite1.png"},
inventory_image = "hyrule_mapgen_stalagmite1.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
})
minetest.register_node("hyrule_mapgen:stalagmite2", {
description = "Stalagmite",
drawtype = "plantlike",
tiles = {"hyrule_mapgen_stalagmite2.png"},
inventory_image = "hyrule_mapgen_stalagmite2.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
})
minetest.register_node("hyrule_mapgen:stalagmite3", {
description = "Stalagmite",
drawtype = "plantlike",
tiles = {"hyrule_mapgen_stalagmite3.png"},
inventory_image = "hyrule_mapgen_stalagmite3.png",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
})
minetest.register_node("hyrule_mapgen:stalagtite0", {
description = "Stalagtite",
drawtype = "plantlike",
tiles = {"hyrule_mapgen_stalagmite0.png^[transformFY"},
inventory_image = "hyrule_mapgen_stalagmite0.png^[transformFY",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
})
minetest.register_node("hyrule_mapgen:stalagtite1", {
description = "Stalagtite",
drawtype = "plantlike",
visual_scale = 1.5,
tiles = {"hyrule_mapgen_stalagmite3.png^[transformFY"},
inventory_image = "hyrule_mapgen_stalagmite3.png^[transformFY",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
})
minetest.register_node("hyrule_mapgen:stalagtite2", {
description = "Stalagtite",
drawtype = "plantlike",
visual_scale = 1.5,
tiles = {"hyrule_mapgen_stalagmite2.png^[transformFY"},
inventory_image = "hyrule_mapgen_stalagmite2.png^[transformFY",
is_ground_content = false,
sunlight_propagates = true,
paramtype = "light",
selection_box = {
type = "fixed",
fixed = {{-0.3, -0.2, -0.3, 0.3, 0.5, 0.3}}
},
groups = {crumbly=1, oddly_breakable_by_hand=1},
})
minetest.register_node("hyrule_mapgen:roots", {
description = "Hanging Roots",
drawtype = "torchlike",

View File

@ -1018,3 +1018,49 @@ minetest.register_on_generated(function(minp, maxp)
end
end
end)
minetest.register_on_generated(function(minp, maxp)
if maxp.y < -50 then
return
end
local dirt = minetest.find_nodes_in_area(minp, maxp,
{"default:stone"})
for n = 1, #dirt do
if math.random(1, 50) == 1 then
local pos = {x = dirt[n].x, y = dirt[n].y, z = dirt[n].z }
if minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name == "air" then
if math.random(1,2) == 1 then
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagmite"})
elseif math.random(1,2) == 1 then
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagmite1"})
elseif math.random(1,2) == 1 then
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagmite2"})
else
minetest.add_node({x=pos.x, y=pos.y-1, z=pos.z}, {name = "hyrule_mapgen:stalagmite3"})
end
end
end
end
end)
minetest.register_on_generated(function(minp, maxp)
if maxp.y < -50 then
return
end
local dirt = minetest.find_nodes_in_area(minp, maxp,
{"default:stone"})
for n = 1, #dirt do
if math.random(1, 50) == 1 then
local pos = {x = dirt[n].x, y = dirt[n].y, z = dirt[n].z }
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name == "air" then
if math.random(1,2) == 1 then
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "hyrule_mapgen:stalagtite0"})
elseif math.random(1,2) == 1 then
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "hyrule_mapgen:stalagtite1"})
else
minetest.add_node({x=pos.x, y=pos.y+1, z=pos.z}, {name = "hyrule_mapgen:stalagtite2"})
end
end
end
end
end)

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

View File

@ -862,6 +862,11 @@ minetest.register_craft({
minetest.register_entity("hyruletools:spark", {
textures = {"hyruletools_spark.png"},
velocity = 15,
on_activate = function(self)
minetest.after(10, function()
self.object:remove()
end)
end,
on_step = function (self, pos, node, dtime)
local pos = self.object:getpos()
local objs = minetest.env:get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 2)
@ -929,25 +934,6 @@ minetest.register_entity("hyruletools:spark", {
}, vec)
end
end
--[[
--This is the particle spawner, but it will slow your pc. If you have a powerful pc you can uncomment this section
minetest.add_particlespawner(
1, --amount
0.1, --time
{x=pos.x-3, y=pos.y-3, z=pos.z-3}, --minpos
{x=pos.x+3, y=pos.y+3, z=pos.z+3}, --maxpos
{x=-0, y=-0, z=-0}, --minvel
{x=0, y=0, z=0}, --maxvel
{x=-0.5,y=5,z=-0.5}, --minacc
{x=0.5,y=5,z=0.5}, --maxacc
0.1, --minexptime
1, --maxexptime
8, --minsize
15, --maxsize
false, --collisiondetection
"tnt_smoke.png" --texture
)
]]--
end
end
end
@ -981,6 +967,11 @@ minetest.register_craft({
minetest.register_entity("hyruletools:spark2", {
textures = {"hyruletools_spark2.png"},
velocity = 15,
on_activate = function(self)
minetest.after(10, function()
self.object:remove()
end)
end,
on_step = function (self, pos, node, dtime)
local pos = self.object:getpos()
local objs = minetest.env:get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 2)
@ -1048,25 +1039,6 @@ minetest.register_entity("hyruletools:spark2", {
}, vec)
end
end
--[[
--This is the particle spawner, but it will slow your pc. If you have a powerful pc you can uncomment this section
minetest.add_particlespawner(
1, --amount
0.1, --time
{x=pos.x-3, y=pos.y-3, z=pos.z-3}, --minpos
{x=pos.x+3, y=pos.y+3, z=pos.z+3}, --maxpos
{x=-0, y=-0, z=-0}, --minvel
{x=0, y=0, z=0}, --maxvel
{x=-0.5,y=5,z=-0.5}, --minacc
{x=0.5,y=5,z=0.5}, --maxacc
0.1, --minexptime
1, --maxexptime
8, --minsize
15, --maxsize
false, --collisiondetection
"tnt_smoke.png" --texture
)
]]--
end
end
end
@ -1100,6 +1072,11 @@ minetest.register_craft({
minetest.register_entity("hyruletools:spark3", {
textures = {"hyruletools_spark3.png"},
velocity = 15,
on_activate = function(self)
minetest.after(10, function()
self.object:remove()
end)
end,
on_step = function (self, pos, node, dtime)
local pos = self.object:getpos()
local objs = minetest.env:get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 2)
@ -1167,24 +1144,6 @@ minetest.register_entity("hyruletools:spark3", {
}, vec)
end
end
--This is the particle spawner, but it will slow your pc. If you have a powerful pc you can uncomment this section
minetest.add_particlespawner(
1, --amount
0.3, --time
{x=pos.x-3, y=pos.y-3, z=pos.z-3}, --minpos
{x=pos.x+3, y=pos.y+3, z=pos.z+3}, --maxpos
{x=-0, y=-0, z=-0}, --minvel
{x=0, y=0, z=0}, --maxvel
{x=-0.5,y=5,z=-0.5}, --minacc
{x=0.5,y=5,z=0.5}, --maxacc
0.1, --minexptime
1, --maxexptime
8, --minsize
15, --maxsize
false, --collisiondetection
"lavabiome_spark.png" --texture
)
end
end

View File

@ -24,5 +24,5 @@ License for Textures, Models and Sounds
CC-BY-SA 3.0 UNPORTED. Created by D00Med
hyruletools_bomb.b3d, hyruletools_bombflower.png, hyruletools_bomb.png, hyruletools_bombflower_plant.png, hyruletools_boomer_*.png - CC-BY-SA 3.0 UNPORTED. Created by toby109tt(aka tobyplowy) and D00Med
hyruletools_bomb.b3d, hyruletools_medallion*.png, hyruletools_bombflower.png, hyruletools_bomb.png, hyruletools_bombflower_plant.png, hyruletools_boomer_*.png - CC-BY-SA 3.0 UNPORTED. Created by toby109tt(aka tobyplowy) and D00Med

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 282 B

View File

@ -68,7 +68,9 @@ if mobs.mod and mobs.mod == "redo" then
punch_start = 1, punch_end = 10
},
on_rightclick = function(self, clicker)
mobs:capture_mob(self, clicker, 5, 60, 0, true, nil)
if clicker:get_wielded_item():get_name() == "bucket:bucket_empty" and math.random(1,5) == 5 or clicker:get_wielded_item():get_name() == "mobs:net" and math.random(1,2) == 1 then
mobs:capture_mob(self, clicker, 1, 1, 0, true, nil)
end
end
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

After

Width:  |  Height:  |  Size: 194 B