Page 1 of 1

[Mod] Laser Sword [0.1] [laser_mod]

PostPosted: Wed Aug 01, 2012 11:24
by pagliaccio
this mod add a laser sword for now.
in the furure i will add other block or item. (my dream? laser gun)

Laser sword, use for war or harvest wood dirt or stone.
Image

license: WTFPL

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
input
[glass]
[mese]
[stick]
output
laser sword


download on github https://github.com/pagliaccio/laser_mod version 0.1

todo list
  • add sound effect. you have laser sound?
  • add texture for sword off if it is droped

PostPosted: Wed Aug 01, 2012 12:01
by cactuz_pl

PostPosted: Wed Aug 01, 2012 12:17
by pagliaccio
license for this audio? i can use?

PostPosted: Wed Aug 01, 2012 12:29
by cactuz_pl
I was so excited about lightsaber vision and I forgot about licences, sorry, this what I sent probably isn't free.

PostPosted: Wed Aug 01, 2012 13:02
by Ragnarok
I created some noise:

http://speedy.sh/PHedn/lightsaber-sound.ogg

License: WTFPL

If you will hear clicks during playbak in the mod let me know.

PostPosted: Wed Aug 01, 2012 15:48
by pagliaccio
Ragnarok wrote:I created some noise:

http://speedy.sh/PHedn/lightsaber-sound.ogg

License: WTFPL

If you will hear clicks during playbak in the mod let me know.


good, thx very much.

i need a help with code.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
--sound of a sword

-- Play connected to an object, looped

minetest.sound_play("lightsaber_sound", {object = laser_mod:laser_sword, gain = 1.0, max_hear_distance = 32, loop = true, })

where i have mistake?

PostPosted: Wed Aug 01, 2012 16:10
by Topywo
Tried this?

minetest.sound_play("lightsaber_sound", {object = "laser_mod:laser_sword", gain = 1.0, max_hear_distance = 32, loop = true, })

PostPosted: Wed Aug 01, 2012 18:14
by pagliaccio
Topywo wrote:Tried this?

minetest.sound_play("lightsaber_sound", {object = "laser_mod:laser_sword", gain = 1.0, max_hear_distance = 32, loop = true, })


error.

i try

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.sound_play("lightsaber_sound", {object = minetest.get_tool("laser_mod:laser_sword"), gain = 1.0, max_hear_distance = 32, loop = true, })


error again. how i can get laser_mod:laser_sword object?

PostPosted: Wed Aug 01, 2012 19:26
by Topywo
minetest.sound_play("lightsaber_sound", {"laser_mod:laser_sword", gain = 1.0, max_hear_distance = 32, loop = true, })

Tried without the word "object"?

What error message gives debug.txt?

PostPosted: Wed Aug 01, 2012 19:55
by pagliaccio
Topywo wrote:minetest.sound_play("lightsaber_sound", {"laser_mod:laser_sword", gain = 1.0, max_hear_distance = 32, loop = true, })

Tried without the word "object"?

What error message gives debug.txt?


now it work, but there is not sound.

PostPosted: Sat Aug 04, 2012 12:26
by Topywo

PostPosted: Fri Dec 21, 2012 04:11
by VanessaE
If this mod is still being maintained, please note that the behavior of Mese has changed:

http://minetest.net/forum/viewtopic.php?id=4154

Suggest using the new Mese Block in your recipe in place of the old Mese object, since this sword seems like it should be expensive, and a Mese Block is the most "powerful" object in the default game (or at least, as powerful as people make it out to be :-) ).

Re: [Mod] Laser Sword [0.1] [laser_mod]

PostPosted: Thu Jun 05, 2014 06:15
by orihara
Laser Sword is one of the coolest weapon in the game though there are few swords that are better than this sword.