[Mod] Laser Sword [0.1] [laser_mod]

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

[Mod] Laser Sword [0.1] [laser_mod]

by pagliaccio » Wed Aug 01, 2012 11:24

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: 874
Joined: Tue Jun 05, 2012 16:34
Location: Poland
 

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

by pagliaccio » Wed Aug 01, 2012 12:17

license for this audio? i can use?
 

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

by cactuz_pl » Wed Aug 01, 2012 12:29

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: 213
Joined: Thu Mar 22, 2012 12:56
Location: Poland

by Ragnarok » Wed Aug 01, 2012 13:02

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 » Wed Aug 01, 2012 15:48

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: 1720
Joined: Fri May 18, 2012 20:27

by Topywo » Wed Aug 01, 2012 16:10

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 » Wed Aug 01, 2012 18:14

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: 1720
Joined: Fri May 18, 2012 20:27

by Topywo » Wed Aug 01, 2012 19:26

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 » Wed Aug 01, 2012 19:55

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: 1720
Joined: Fri May 18, 2012 20:27
 

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

by VanessaE » Fri Dec 21, 2012 04:11

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 (16-512px)
 

User avatar
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 » Thu Jun 05, 2014 06:15

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


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 8 guests