update orbs for better gameplay
register as expendable tools (8 uses each) more expensive recipe added soundFX added weild textures
This commit is contained in:
parent
d95a811c5c
commit
6f856835e3
76
orbs.lua
76
orbs.lua
@ -1,38 +1,58 @@
|
||||
minetest.register_craftitem("castle:orb_day", {
|
||||
|
||||
----------
|
||||
--Tools
|
||||
----------
|
||||
|
||||
minetest.register_tool("castle:orb_day", {
|
||||
description = "Orb of Midday",
|
||||
tiles = {"castle_day.png"},
|
||||
inventory_image = "castle_day.png",
|
||||
wield_image = "castle_day.png",
|
||||
on_use = function()
|
||||
minetest.set_timeofday(0.5)
|
||||
end,
|
||||
tiles = {"castle_orb_day.png"},
|
||||
inventory_image = "castle_orb_day.png",
|
||||
wield_image = "castle_orb_day_weild.png",
|
||||
stack_max=1,
|
||||
on_use = function(itemstack, user)
|
||||
minetest.sound_play("castle_orbs", {pos=pos, loop=false})
|
||||
minetest.set_timeofday(0.5)
|
||||
minetest.sound_play("castle_birds", {pos=pos, loop=false})
|
||||
--1 use per diamond used in crafting :)
|
||||
itemstack:add_wear(65535/8)
|
||||
return itemstack
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craftitem("castle:orb_night", {
|
||||
description = "Orb of Midnight",
|
||||
tiles = {"castle_night.png"},
|
||||
inventory_image = "castle_night.png",
|
||||
wield_image = "castle_night.png",
|
||||
on_use = function()
|
||||
minetest.set_timeofday(0)
|
||||
end,
|
||||
minetest.register_tool("castle:orb_night",{
|
||||
description = "Orb of Midnight",
|
||||
tiles = {"castle_orb_night.png"},
|
||||
inventory_image = "castle_orb_night.png",
|
||||
wield_image = "castle_orb_night_weild.png",
|
||||
stack_max=1,
|
||||
on_use = function(itemstack, user)
|
||||
minetest.sound_play("castle_orbs", {pos=pos, loop=false})
|
||||
minetest.set_timeofday(0)
|
||||
minetest.sound_play("castle_owl", {pos=pos, loop=false})
|
||||
--1 use per diamond used in crafting :)
|
||||
itemstack:add_wear(65535/8)
|
||||
return itemstack
|
||||
end
|
||||
})
|
||||
|
||||
-----------
|
||||
--Crafting
|
||||
-----------
|
||||
|
||||
minetest.register_craft( {
|
||||
output = "castle:orb_day",
|
||||
recipe = {
|
||||
{"", "default:glass",""},
|
||||
{"default:glass", "default:mese_crystal","default:glass"},
|
||||
{"", "default:glass",""}
|
||||
},
|
||||
output = "castle:orb_day",
|
||||
recipe = {
|
||||
{"default:diamond", "default:diamond","default:diamond"},
|
||||
{"default:diamond", "default:mese_crystal","default:diamond"},
|
||||
{"default:diamond", "default:diamond","default:diamond"}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "castle:orb_night",
|
||||
recipe = {
|
||||
{"", "default:glass",""},
|
||||
{"default:glass", "default:obsidian","default:glass"},
|
||||
{"", "default:glass",""}
|
||||
}
|
||||
output = "castle:orb_night",
|
||||
recipe = {
|
||||
{"default:diamond", "default:diamond","default:diamond"},
|
||||
{"default:diamond", "default:obsidian_shard","default:diamond"},
|
||||
{"default:diamond", "default:diamond","default:diamond"}
|
||||
},
|
||||
})
|
||||
|
||||
|
@ -18,4 +18,35 @@ CC0 1.0 Universal (CC0 1.0)
|
||||
Author : Mito551
|
||||
License : (CC BY-SA)
|
||||
|
||||
------------------
|
||||
|
||||
Author: Brandon Morris
|
||||
file: castle_orbs.ogg
|
||||
original file : completetask_0.mp3
|
||||
http://opengameart.org/content/completion-sound
|
||||
License: CC-BY 3.0
|
||||
http://creativecommons.org/licenses/by/3.0/
|
||||
|
||||
------------------
|
||||
|
||||
(From Ambience mod)
|
||||
|
||||
Author: Mike Koenig
|
||||
file: castle_owl.ogg
|
||||
original file : horned_owl.ogg
|
||||
http://soundbible.com/1851-Horned-Owl.html
|
||||
License: Attribution 3.0
|
||||
http://creativecommons.org/licenses/by/3.0/
|
||||
|
||||
------------------
|
||||
|
||||
(From Ambience mod)
|
||||
|
||||
Author: PsychoBird
|
||||
file: castle_birds.ogg
|
||||
original file : Best Cardinal Bird.ogg
|
||||
http://soundbible.com/1515-Best-Cardinal-Bird.html
|
||||
License: Attribution 3.0
|
||||
http://creativecommons.org/licenses/by/3.0/
|
||||
|
||||
------------------
|
BIN
sounds/castle_birds.ogg
Normal file
BIN
sounds/castle_birds.ogg
Normal file
Binary file not shown.
BIN
sounds/castle_orbs.ogg
Normal file
BIN
sounds/castle_orbs.ogg
Normal file
Binary file not shown.
BIN
sounds/castle_owl.ogg
Normal file
BIN
sounds/castle_owl.ogg
Normal file
Binary file not shown.
@ -1,9 +1,20 @@
|
||||
--------------------------------------------
|
||||
|
||||
All textures based on
|
||||
original textures by: ???
|
||||
License Textures: Stuart Jones - WTFPL
|
||||
-castle_crossbow_bolt_inv.png
|
||||
-castle_crossbow_bolt_uv.png
|
||||
-castle_crossbow_hit.png
|
||||
|
||||
License Textures: ???
|
||||
Licence Models: Stuart Jones - CC-BY-SA 3.0
|
||||
-castle_crossbow_bolt.b3d
|
||||
-castle_crossbow_bolt.blend
|
||||
|
||||
--------------------------------------------
|
||||
|
||||
textures based on Castle mod
|
||||
original textures by Philipner ???
|
||||
|
||||
License Textures: CC-BY-SA 3.0 ???
|
||||
|
||||
--------------------------------------------
|
||||
|
||||
@ -11,8 +22,14 @@ License Textures: Napiophelios - CC-BY-SA 3.0
|
||||
|
||||
-castle_corner_stonewall1.png
|
||||
-castle_corner_stonewall2.png
|
||||
-castle_craftchest.png
|
||||
-castle_craftchest_2.png
|
||||
-castle_crate.png
|
||||
-castle_crate_top.png
|
||||
-castle_crossbow_inv.png
|
||||
-castle_crossbow_loaded.png
|
||||
-castle_orb_day_weild.png
|
||||
-castle_orb_night_weild.png
|
||||
-castle_door_jail.png
|
||||
-castle_door_oak.png
|
||||
-castle_dungeon_stone.png
|
||||
@ -25,9 +42,12 @@ License Textures: Napiophelios - CC-BY-SA 3.0
|
||||
-castle_jailbars.png
|
||||
-castle_oak_door_inv.png
|
||||
-castle_pavement_brick.png
|
||||
-castle_ropebox_bottom.png
|
||||
-castle_ropebox_side_1.png
|
||||
-castle_ropebox_side_2.png
|
||||
-castle_ropebox_side_3.png
|
||||
-castle_ropebox_top.png
|
||||
-castle_ropebox_top_2.png
|
||||
-castle_ropes.png
|
||||
-castle_rubble.png
|
||||
-castle_shield_back.png
|
||||
@ -42,10 +62,12 @@ License Textures: Napiophelios - CC-BY-SA 3.0
|
||||
-castle_stonewall.png
|
||||
-castle_straw_bale.png
|
||||
-castle_street_light.png
|
||||
-castle_street_light_on.png
|
||||
-castle_tool_battleaxe.png
|
||||
-castle_tool_sword_broad.png
|
||||
-castle_workbench_1.png
|
||||
-castle_workbench_2.png
|
||||
-castle_workbench_bottom.png
|
||||
-castle_workbench_top.png
|
||||
|
||||
|
||||
--------------------------------------------
|
Binary file not shown.
Before Width: | Height: | Size: 297 B |
Binary file not shown.
Before Width: | Height: | Size: 308 B |
BIN
textures/castle_orb_day.png
Normal file
BIN
textures/castle_orb_day.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 112 B |
BIN
textures/castle_orb_day_weild.png
Normal file
BIN
textures/castle_orb_day_weild.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 185 B |
BIN
textures/castle_orb_night.png
Normal file
BIN
textures/castle_orb_night.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 109 B |
BIN
textures/castle_orb_night_weild.png
Normal file
BIN
textures/castle_orb_night_weild.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 184 B |
Loading…
x
Reference in New Issue
Block a user