[Mod] Frickin' Laser Beams [laser]

User avatar
Hybrid Dog
Member
Posts: 2771
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

[Mod] Frickin' Laser Beams [laser]

by Hybrid Dog » Post

See also: viewtopic.php?p=17988#p17988

1. Place a mese block
2. Add a bobblock next to it
3. Let the bob block, then the mese block, get a mesecons signal


Depends: bobblocks, default, mesecons, minetest > 0.4.9
License: WTFPL
Download: zip, tar.gz
github: laser

Image
Attachments
current.png
(664.91 KiB) Not downloaded yet
Last edited by Hybrid Dog on Sun Dec 20, 2015 13:40, edited 9 times in total.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
InfinityProject
Member
Posts: 1009
Joined: Sat Mar 17, 2012 00:52
Location: World of Infinity, US

by InfinityProject » Post

How far do the lasers go?

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

by 12Me21 » Post

Cool, there should be a laser detector
Shoutouts to Simpleflips

User avatar
rubenwardy
Moderator
Posts: 6295
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

by rubenwardy » Post

Nice!

User avatar
lonely
Member
Posts: 58
Joined: Fri Feb 01, 2013 15:30
Location: Germany

by lonely » Post

It can't load and run bobblocks, even if i rename it!
Last edited by lonely on Wed May 15, 2013 18:21, edited 1 time in total.
Aperture science:[url]http:forum.minetest.net/viewtopic.php?id=5917[/url]
I v'e got MineCraft now, so goodbye. You can look for me at the minecraft forum. my name there
is Portalfreaky.

User avatar
rubenwardy
Moderator
Posts: 6295
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

by rubenwardy » Post

Hybrid Dog wrote:
12Me21 wrote:Cool, there should be a laser detector
What should it do?
Enable a mesecons wire.

You can use minetest.get_modpath(modname) to check to see if mesecons is installed.

User avatar
lonely
Member
Posts: 58
Joined: Fri Feb 01, 2013 15:30
Location: Germany

by lonely » Post

Hybrid Dog wrote:
12Me21 wrote:Cool, there should be a laser detector
What should it do?

rubenwardy wrote:Nice!
thanks


New version:
— vertical lasers added
— textures rotated
— more colours (except white, actually this isn't a colour) added
Last edited by lonely on Wed May 15, 2013 18:25, edited 1 time in total.
Aperture science:[url]http:forum.minetest.net/viewtopic.php?id=5917[/url]
I v'e got MineCraft now, so goodbye. You can look for me at the minecraft forum. my name there
is Portalfreaky.

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

by 12Me21 » Post

rubenwardy wrote:
Hybrid Dog wrote:
12Me21 wrote:Cool, there should be a laser detector
What should it do?
Enable a mesecons wire.

You can use minetest.get_modpath(modname) to check to see if mesecons is installed.
yes, and there should be mirrors, too
Shoutouts to Simpleflips

User avatar
12Me21
Member
Posts: 873
Joined: Tue Mar 05, 2013 00:36
GitHub: 12Me21
Location: (Ignore all of my posts before 2018)

by 12Me21 » Post

Hybrid Dog wrote:
lonely wrote:It can't load and run bobblocks, even if i rename it!
bobblocks has depends, too
12Me21 wrote:
rubenwardy wrote:
Enable a mesecons wire.

You can use minetest.get_modpath(modname) to check to see if mesecons is installed.
yes, and there should be mirrors, too
I won't add mirrors without reflections and they aren't possible yet. Maybe I'll add a laser detector.
All a mirror would need to do is when a laser beam hits it, send another laser beam at a 90 degree angle.
Shoutouts to Simpleflips

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

Great ! Looking forward to the laser detector, if possible, make entities (especially players) don't let the laser go through them, but that may be hard
By the way you should add mesecons to depends in your post since it now needs mesecons power.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

Hybrid Dog wrote:
Zeg9 wrote:Great ! Looking forward to the laser detector, if possible, make entities (especially players) don't let the laser go through them, but that may be hard
I could do it but it would cause big lags and it wouldn't work in the right time.
By the way you should add mesecons to depends in your post since it now needs mesecons power.
good idea.
Only checking for players wouldn't be that laggy on small servers or singleplayer if you use a globalstep.
EDIT: maybe update the laser with an abm so when you dig in front of it you don't have to restart the mesecons signal
Last edited by Zeg9 on Sun May 19, 2013 13:40, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
nextmissinglink
Member
Posts: 145
Joined: Mon Feb 04, 2013 16:43
Location: Uranus
Contact:

by nextmissinglink » Post

Hybrid Dog wrote:1. Place a mese block
2. Add a bobblock (red or yellow) next to it
3. Let the mese block get mesecons energy


Depends: bobblocks, default
License: [img]pic[/img]
Download: zip, tar.gz
Code: https://github.com/HybridDog/laser

[img]pic[/img]


At first my laser was flammable (yes, the tree burned down):


The wool was flammable so you'll not see this again:



The nodebox looks like the shot particles of wz2100:



I changed this texture later to 1xh:



This is not my bug! It's from bobblocks!:


I didn't know that there are 2 caves...:



Here 2 lasers are crossing:





Vertical lasers added:
+100 on a scale of 1 to 10
Last edited by nextmissinglink on Sun May 19, 2013 15:31, edited 1 time in total.
IF in doubt hit it with a hammer
This is a signature virus. Add me to your signature so that I can multiply id10t ERROR
do not abuse me i am 11 and i like hitting things with a hammer that may include you
this is ment to be secret http://forum.minetest.net/viewtopic.php ... 467#p86467

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

Nice mod.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
Inocudom
Member
Posts: 3096
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

The laser detector will make both this mod and mesecons more fun to play with.
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

User avatar
Aqua
Member
Posts: 641
Joined: Wed Aug 22, 2012 09:11
Location: Sydney~Singapore
Contact:

by Aqua » Post

Epic mod! Keep up the great work with your mods!
+1
Hi there ^.~

User avatar
arsdragonfly
Member
Posts: 31
Joined: Wed May 01, 2013 07:55

by arsdragonfly » Post

Can you add mirrors to change its route?

User avatar
aron1263
Member
Posts: 25
Joined: Sat May 04, 2013 06:24

by aron1263 » Post

I cant open it it says" failed to load and run \minetest-0.4.7\bin\..\mods\laser_master\init.lua

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

by Topywo » Post

aron1263 wrote:I cant open it it says" failed to load and run \minetest-0.4.7\bin\..\mods\laser_master\init.lua
If it isn't a modpack you'll need to rename it. In this case from laser_master to laser.

A check is looking in the init.lua, for example:
minetest.register_node("laser:detector", {

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

+1 This is really cool. For long distances i will use the lasers instead of mesecons.
+1 And they look pretty as decoration.
+1 When i'm far from home i just have to look for lasers pointing up.

Why can't lasers cross path? I understand that that would mean much more nodes as you have to make a crossed laser section for every color crossing with another color. Why not make it work with the similar colored lasers? Or you could make a very bright shining light node and place that in the laser intersections and let the lasers continue.

Anyways, +3, i like this mod!

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

Actually you can only see the lasers because of the fog in minetest...
I don't understand.

Some less wanted features:
  • Lasers should continue when node that interrupted the laser is removed.
  • If interrupting node is a bobblock it removes the similar color laser completely!
  • And what if you have two different colors lasers pointing towards each other?
I am trying to fix some of these unwanted features

User avatar
Element
Member
Posts: 269
Joined: Tue Jun 11, 2013 00:27
IRC: Elementwing4962
In-game: Elementwing4962
Location: New York
Contact:

by Element » Post

i tried renaming it laser but it says there is a error
Topywo wrote:
aron1263 wrote:I cant open it it says" failed to load and run \minetest-0.4.7\bin\..\mods\laser_master\init.lua
If it isn't a modpack you'll need to rename it. In this case from laser_master to laser.

A check is looking in the init.lua, for example:
minetest.register_node("laser:detector", {
Join Me And My Team - thornfyregaming-mc.noip.me:25565

My Server Is 1.7.9

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

by Topywo » Post

Element wrote:i tried renaming it laser but it says there is a error
It's possible you didn't enable the (most up to date) dependencies:
- Jeija's mesecons: viewtopic.php?pid=4785#p4785
- RabbiBob's bobblocks: viewtopic.php?id=1274

Else you"ll need to paste the ERROR here in a post to help you.

Exit minetest. Delete the debug.txt file. Start minetest, start the game with lasers in it. End the game and exit minetest. Open debug.txt. Copy the all the ERROR lines and paste them here.

User avatar
Hybrid Dog
Member
Posts: 2771
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

by Hybrid Dog » Post

New version:
— voxel manipulation is used → faster
— minetest.after is used, too → the signal is sent before the laser is shown
— nodes are allowed to define functions which get executed if a laser touches them or disappears next to them
— adding mirrors should be possible now
Last edited by Hybrid Dog on Sat Apr 05, 2014 13:24, edited 1 time in total.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

User avatar
Krock
Developer
Posts: 4572
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

by Krock » Post

Good work!
Gonna download this mod.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Inocudom
Member
Posts: 3096
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

Very good to see you still working on this mod.
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

Post Reply

Who is online

Users browsing this forum: MisterE and 7 guests