dragonflies, dungeon torch, keys

master
D00Med 2016-12-07 07:00:32 +10:00
parent f6b785ab44
commit 24bd6f0ce3
19 changed files with 157 additions and 72 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

View File

@ -8,13 +8,22 @@ end
--effects
minetest.register_abm({
nodenames = {"flowers:flower_rose", "flowers:flower_tulip", "flowers:flower_dandelion_yellow", "flowers:flower_viola", "flowers:flower_dandelion_white", "flowers:flower_geranium"},
interval = 3.0,
chance = 5,
interval = 7.0,
chance = 6,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.env:add_entity({x=pos.x,y=pos.y+0.5,z=pos.z}, "hyrule_mapgen:butterfly")
end
})
minetest.register_abm({
nodenames = {"moreplants:tallgrass", "moreplants:bulrush"},
interval = 7.0,
chance = 6,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.env:add_entity({x=pos.x,y=pos.y+0.5,z=pos.z}, "hyrule_mapgen:dragonfly")
end
})
sound = false
minetest.register_abm({
@ -133,17 +142,6 @@ minetest.register_abm({
end
})
minetest.register_abm({
nodenames = {"hyrule_mapgen:deku_flower"},
interval = 1.0,
chance = 1,
action = function(pos, node)
local node_1 = minetest.get_node(pos)
if node_1.param2 ~= 1 then
node_1.param2 = 1
end
end
})
minetest.register_abm({
nodenames = {"fire:basic_flame"},
@ -185,7 +183,7 @@ minetest.register_entity("hyrule_mapgen:butterfly", {
self.object:set_properties({textures = {"hyrule_mapgen_butterfly"..num..".png",},})
self.object:set_animation({x=1, y=10}, 20, 0)
self.object:setyaw(math.pi+num)
minetest.after(5, function()
minetest.after(10, function()
self.object:remove()
end)
end,
@ -200,6 +198,34 @@ minetest.register_entity("hyrule_mapgen:butterfly", {
collisionbox = {0,0,0,0,0.1,0},
})
minetest.register_entity("hyrule_mapgen:dragonfly", {
visual = "mesh",
mesh = "butterfly.b3d",
physical = true,
textures = {"hyrule_mapgen_dragonfly.png",},
visual_size = {x=0.3, y=0.3},
on_activate = function(self)
num = math.random(1,4)
--self.object:set_properties({textures = {"hyrule_mapgen_butterfly"..num..".png",},})
self.object:set_animation({x=1, y=10}, 40, 0)
self.object:setyaw(math.pi+num)
minetest.after(10, function()
self.object:remove()
end)
end,
on_step = function(self, dtime)
local num = math.random(-math.pi, math.pi)
local num1 = math.random(-1, 1)
local num2 = math.random(-1, 1)
local pos = self.object:getpos()
local vec = self.object:getvelocity()
--self.object:setyaw(math.pi+num)
self.object:setvelocity({x=num1*2, y=math.cos(12*pos.x), z=num2*2})
self.object:setacceleration({x=-num1*1, y=math.cos(6*vec.x), z=-1})
end,
collisionbox = {0,0,0,0,0.1,0},
})
--overrides
minetest.override_item("default:grass_1", {
@ -443,17 +469,16 @@ minetest.register_node("hyrule_mapgen:bridge2", {
minetest.register_node("hyrule_mapgen:swamp_flower", {
description = "Swamp Flower",
drawtype = "signlike",
visual_scale = 3.0,
drawtype = "mesh",
mesh = "flatnode.b3d",
tiles = {"hyrule_mapgen_swampflower.png"},
inventory_image = "hyrule_mapgen_swampflower.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = false,
walkable = false,
is_ground_content = true,
selection_box = {
type = "wallmounted",
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5}
},
groups = {cracky=3,dig_immediate=3},
@ -474,27 +499,20 @@ playereffects.register_effect_type("float", "", nil, {"gravity"},
minetest.register_node("hyrule_mapgen:deku_flower", {
description = "Deku Flower",
drawtype = "signlike",
visual_scale = 2.5,
drawtype = "mesh",
mesh = "flatnode.b3d",
visual_size = {x=1.2, y=1.2},
tiles = {"hyrule_mapgen_dekuflower.png"},
inventory_image = "hyrule_mapgen_dekuflower.png",
paramtype = "light",
paramtype2 = "wallmounted",
place_param2 = 1,
sunlight_propagates = false,
walkable = false,
is_ground_content = true,
selection_box = {
type = "wallmounted",
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5}
},
groups = {snappy=1, dig_immediate=3},
on_construct = function(pos, node)
minetest.after(1, function()
local node_1 = minetest.get_node(pos)
node.param2 = 2
end)
end
groups = {snappy=1, dig_immediate=3, bouncy=2},
})
minetest.register_node("hyrule_mapgen:healwater_src", {
@ -594,15 +612,25 @@ minetest.register_node("hyrule_mapgen:sandstone", {
tiles = {
"hyrule_mapgen_sandstone.png"
},
groups = {cracky=2,}
groups = {cracky=5,}
})
stairs.register_stair_and_slab(
"dsandstone",
"hyrule_mapgen:sandstone",
{cracky = 5, oddly_breakable_by_hand = 2, flammable = 2},
{"hyrule_mapgen_sandstone.png"},
"Dungeon Sandstone Stair",
"Dungeon Sandstne Slab",
default.node_sound_stone_defaults()
)
minetest.register_node("hyrule_mapgen:sandstone_tile", {
description = "Dungeon Sandstone Tile",
tiles = {
"hyrule_mapgen_sandstone_tile.png"
},
groups = {cracky=2,}
groups = {cracky=5,}
})
minetest.register_node("hyrule_mapgen:sandstone_decoration", {
@ -615,7 +643,7 @@ minetest.register_node("hyrule_mapgen:sandstone_decoration", {
"hyrule_mapgen_sandstone_decoration.png",
"hyrule_mapgen_sandstone_decoration.png",
},
groups = {cracky=2,}
groups = {cracky=5,}
})
minetest.register_node("hyrule_mapgen:sandstone_decoration2", {
@ -628,7 +656,7 @@ minetest.register_node("hyrule_mapgen:sandstone_decoration2", {
"hyrule_mapgen_sandstone_decoration2.png",
"hyrule_mapgen_sandstone_decoration2.png",
},
groups = {cracky=2,}
groups = {cracky=5,}
})
minetest.register_node("hyrule_mapgen:pillar", {
@ -809,6 +837,29 @@ minetest.register_node("hyrule_mapgen:dungeon_brick", {
groups = {cracky=3},
})
minetest.register_node("hyrule_mapgen:dungeon_torch", {
description = "Dungeon Torch",
drawtype = "plantlike",
visual_scale = 1.6,
walkable = false,
tiles = {
{name = "hyrule_mapgen_torch.png", animation = {type = "vertical_frames", aspect_w = 32, aspect_h = 32, length = 0.5,},
},
},
inventory_image = "hyrule_mapgen_torch_inv.png",
wield_image = "hyrule_mapgen_torch_inv.png",
paramtype = "light",
light_source = 20,
use_texture_alpha = true,
groups = {choppy=1},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.2, 0.5},
}
},
})
minetest.register_node("hyrule_mapgen:subrosian_tile", {
description = "Subrosian Tile",
tiles = {

View File

@ -614,23 +614,23 @@ minetest.register_decoration({
y_max = 40,
})
-- minetest.register_decoration({
-- deco_type = "simple",
-- place_on = {"default:dirt_with_grass", "default:dirt_with_grass3", "default:dirt_with_dry_grass"},
-- sidelen = 16,
-- noise_params = {
-- offset = 0.004,
-- scale = 0.006,
-- spread = {x = 100, y = 100, z = 100},
-- seed = 329,
-- octaves = 3,
-- persist = 0.6
-- },
-- biomes = {"deciduous_forest", "magic_forest", "wild_forest",},
-- decoration = "hyrule_mapgen:deku_flower",
-- y_min = 15,
-- y_max = 40,
-- })
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_grass3", "default:dirt_with_dry_grass"},
sidelen = 32,
noise_params = {
offset = 0.002,
scale = 0.006,
spread = {x = 100, y = 100, z = 100},
seed = 329,
octaves = 3,
persist = 0.6
},
biomes = {"deciduous_forest", "magic_forest", "wild_forest",},
decoration = "hyrule_mapgen:deku_flower",
y_min = 15,
y_max = 40,
})
--geysers(lavabiome)
minetest.register_decoration({

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

View File

@ -535,6 +535,16 @@ minetest.register_craftitem("hyruletools:triforce", {
end
})
minetest.register_craftitem("hyruletools:key", {
description = "Dungeon Key",
inventory_image = "hyruletools_key.png",
})
minetest.register_craftitem("hyruletools:key_boss", {
description = "Boss Key",
inventory_image = "hyruletools_boss_key.png",
})
minetest.register_craftitem("hyruletools:red_rupee", {
description = "Red Rupee",
inventory_image = "hyruletools_red_rupee.png",

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

1
mods/kblocks/depends.txt Normal file
View File

@ -0,0 +1 @@
stairs

View File

@ -1,19 +1,39 @@
if minetest.setting_getbool("loz_mode") then
minetest.register_node("kblocks:blue", {
description = "Blue rooftile",
tiles = {
"kblocks_blue.png"
},
groups = {cracky=1}
})
minetest.register_node("kblocks:red", {
description = "red rooftile",
description = "Red rooftile",
tiles = {
"kblocks_red.png"
},
groups = {cracky=1}
})
minetest.register_node("kblocks:blue", {
description = "blue rooftile",
tiles = {
"kblocks_blue.png"
},
groups = {cracky=1}
})
stairs.register_stair_and_slab(
"red",
"kblocks:red",
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
{"kblocks_red.png"},
"Red Roof Slope",
"Red Roof Slab",
default.node_sound_wood_defaults()
)
stairs.register_stair_and_slab(
"blue",
"kblocks:blue",
{choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
{"kblocks_blue.png"},
"Blue Roof Slope",
"Blue Roof Slab",
default.node_sound_wood_defaults()
)
minetest.register_node("kblocks:brown", {
description = "brown tile",
@ -129,14 +149,6 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = 'kblocks:red 4',
recipe = {
{'default:brick', 'dye:red', 'default:brick'},
{'default:brick', 'dye:red', 'default:brick'},
}
})
minetest.register_craft({
output = 'kblocks:blue 4',
recipe = {
@ -145,6 +157,14 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = 'kblocks:red 4',
recipe = {
{'default:brick', 'dye:red', 'default:brick'},
{'default:brick', 'dye:red', 'default:brick'},
}
})
minetest.register_craft({
output = 'kblocks:brown 4',
recipe = {

View File

@ -26,15 +26,15 @@ if mobs.mod and mobs.mod == "redo" then
local pos = self.object:getpos()
minetest.add_particlespawner(
1, --amount
2, --time
1, --time
{x=pos.x-0.1, y=pos.y, z=pos.z-0.1}, --minpos
{x=pos.x+0.1, y=pos.y, z=pos.z+0.1}, --maxpos
{x=-0, y=-0, z=-0}, --minvel
{x=0, y=0, z=0}, --maxvel
{x=-0.2,y=-0.2,z=-0.2}, --minacc
{x=0.2,y=-0.5,z=0.2}, --maxacc
3, --minexptime
3, --maxexptime
0.5, --minexptime
1, --maxexptime
1, --minsize
2, --maxsize
false, --collisiondetection

View File

@ -4,7 +4,11 @@
--------------------------
--------------------------
--
-- Models and textures by D00Med and toby109tt(aka tobyplowy) License of media (models, textures ) (CC BY-SA 3.0)
-- Models and textures by D00Med and toby109tt(aka tobyplowy) License of media (models, textures ) (CC BY-SA 3.0)
Created by toby109tt(aka tobyplowy) (CC BY-SA 3.0):
bucket_*.png
-- License of Api WTFPL Simple Mobs by PilzAdam > Mob Redo by Ten1plus > Redo+ Mahmutelmas06
-- Sounds from bigsoundbank and WTFPL ( confirmed by email )
-- Code is a modified version of

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 315 B

View File

@ -791,7 +791,6 @@ minetest.register_decoration({
place_on = "default:sand",
sidelen = 16,
fill_ratio = 0.01,
biomes = {"stone_grassland_ocean", "deciduous_forest_ocean"},
decoration = "moreplants:bulrush",
height = 1,
})