[Mod] Laser Sword [0.1] [laser_mod]

Post Reply
pagliaccio
Member
Posts: 65
Joined: Tue Jul 31, 2012 07:38
Location: italy

[Mod] Laser Sword [0.1] [laser_mod]

by pagliaccio » Post

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

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
Last edited by pagliaccio on Thu Aug 02, 2012 12:47, edited 1 time in total.

User avatar
cactuz_pl
Member
Posts: 876
Joined: Tue Jun 05, 2012 16:34
Location: Poland

by cactuz_pl » Post

Last edited by cactuz_pl on Wed Aug 01, 2012 12:07, edited 1 time in total.
Nope

pagliaccio
Member
Posts: 65
Joined: Tue Jul 31, 2012 07:38
Location: italy

by pagliaccio » Post

license for this audio? i can use?

User avatar
cactuz_pl
Member
Posts: 876
Joined: Tue Jun 05, 2012 16:34
Location: Poland

by cactuz_pl » Post

I was so excited about lightsaber vision and I forgot about licences, sorry, this what I sent probably isn't free.
Nope

User avatar
Ragnarok
Member
Posts: 217
Joined: Thu Mar 22, 2012 12:56
Location: Poland
Contact:

by Ragnarok » Post

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.
Last edited by Ragnarok on Wed Aug 01, 2012 13:06, edited 1 time in total.

pagliaccio
Member
Posts: 65
Joined: Tue Jul 31, 2012 07:38
Location: italy

by pagliaccio » Post

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.

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?
Last edited by pagliaccio on Wed Aug 01, 2012 15:49, edited 1 time in total.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

Tried this?

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

pagliaccio
Member
Posts: 65
Joined: Tue Jul 31, 2012 07:38
Location: italy

by pagliaccio » Post

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

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?

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

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?

pagliaccio
Member
Posts: 65
Joined: Tue Jul 31, 2012 07:38
Location: italy

by pagliaccio » Post

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.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post


User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

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 :-) ).
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

orihara
New member
Posts: 1
Joined: Thu Jun 05, 2014 06:12
GitHub: orihara
IRC: orihara
In-game: orihara

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

by orihara » Post

Laser Sword is one of the coolest weapon in the game though there are few swords that are better than this sword.

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests