[Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesecons]

User avatar
programmingchicken
Member
Posts: 540
Joined: Sat Apr 18, 2015 02:20
GitHub: pchicken
IRC: chicken pchicken
Location: not here
Contact:

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by programmingchicken » Post

Serh Arien wrote:Hi everybody

I have a problem and i need your help :

I want to do an aventur maps : "Fort boyard". At the end, we need a code.

This code, i want to make it like the tv show ( on the floor)

so Is it possible to use pressure plates that we would connect to a Luacontroller which, when it will receive the energy of 3 plates (in the port a / c/ d), will give energi by the port b to the piston (only if a/c and d are right)

If you can help me, thanks to use simple word, i'm french

Code: Select all

if port.a and port.c and port.d then
pin.b = true
else
pin.b = false
end
<gamerdude> I apologize for the above content

User avatar
SaKeL
Member
Posts: 659
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by SaKeL » Post

Hi guys,
Yesterday i have come accross of interesting new behaviour of sticky pistons. My question is: is this a bug or a new feature? So i found out that when the sticky piston is closed - it's not sticky anymore. This will make the double (or more) sticky pistons not working anymore like here http://uberi.mesecons.net/projects/Doub ... index.html currently the stone will not be pulled all the way until the first piston (next to the 2nd piston) is closed, it will stop where the 2nd piston closes (next to the stone) because this piston (next to the stone) will not be sticky anymore once it's closed - so the 1st piston will pull only the 2nd piston without the stone. Hope it makes sence to you a bit guys :). Thanks

JoshMars
Member
Posts: 111
Joined: Sat May 17, 2014 23:24
In-game: rubber UbuntuJosh

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by JoshMars » Post

Update: the code I posted earlier has a mistake I didn't catch.

Code: Select all

for l = 1, 3 do 
should be

Code: Select all

for l = 1, i do 
Also I submitted pull request on github

User avatar
SaKeL
Member
Posts: 659
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by SaKeL » Post

Cool thanks man ;) i will check it out..

User avatar
benrob0329
Member
Posts: 1338
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by benrob0329 » Post

how do I make a pause between events?
Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA

User avatar
benrob0329
Member
Posts: 1338
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by benrob0329 » Post

Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA

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

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by Hybrid Dog » Post


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

User avatar
benrob0329
Member
Posts: 1338
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
IRC: benrob0329
In-game: benrob03
Location: Michigan
Contact:

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by benrob0329 » Post

I was saying that I made an Instant Answer request on the DuckDuckGo forums, however transilating that to give me or having an in game wiki would be really cool!
Social: YouTube Peertube Matrix Room: #minetest:matrix.org | Games: The Infinite IKEA

zalkiaent
New member
Posts: 4
Joined: Mon Jan 05, 2015 15:37
In-game: Zalkiaent
Location: nope. not telling ya...

Five stars!

by zalkiaent » Post

This mod is amazing! I love the concept! I hope you can add some more stuff in the future!
Im zalkia entertainment... my older profile was hacked and banned, so I made a new account!

cyberix3d name:zalkiaent
Gmail:zalkiaent@gmail.com

User avatar
SaKeL
Member
Posts: 659
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by SaKeL » Post

Pushing item frames/stands with piston will throw the item out of the frame, but then you can get the item out of the frame by punching it - duplicating items for sure :/ is this something what can get fixed it this mod ?

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

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by Hybrid Dog » Post

SaKeL wrote:Pushing item frames/stands with piston will throw the item out of the frame, but then you can get the item out of the frame by punching it - duplicating items for sure :/ is this something what can get fixed it this mod ?
l couldn't duplicate the item, the only problem was the object wasn't moved.
download/file.php?mode=view&id=4720
Attachments
screenshot_20160110_134700.png
(172.9 KiB) Not downloaded yet
Last edited by Hybrid Dog on Sat Jan 16, 2016 08:21, edited 1 time in total.

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

User avatar
SaKeL
Member
Posts: 659
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by SaKeL » Post

what mod for itemframes are you using ? i have the one from Vanessa

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

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by Hybrid Dog » Post

SaKeL wrote:what mod for itemframes are you using ? i have the one from Vanessa
l use Zeg9's one. l guess this commit added the problem:
https://github.com/VanessaE/homedecor_m ... 6c91a80f84

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

User avatar
SaKeL
Member
Posts: 659
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by SaKeL » Post

you are right ! i have reverted it in my code, thanks a lot.

https://youtu.be/kKDMClqCnW0?list=PLhJU ... _GBQiESwKI

User avatar
SaKeL
Member
Posts: 659
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by SaKeL » Post

is it possible to add more names in player detector ?

amadin
Member
Posts: 548
Joined: Tue Jun 16, 2015 16:23

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by amadin » Post

Can mesecon remember and then recover the area of map?

User avatar
Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by Minetestforfun » Post

SaKeL wrote:is it possible to add more names in player detector ?
Done on our servers, you can clone the code :)

https://github.com/MinetestForFun/serve ... f317fdad57

User avatar
SaKeL
Member
Posts: 659
Joined: Tue Apr 14, 2015 18:39
GitHub: JurajVajda
IRC: SaKeL
In-game: SaKeL

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by SaKeL » Post

Cool, thanks a lot.

DoyleChris
Member
Posts: 254
Joined: Sat Jul 25, 2015 19:54
In-game: DoyleChris

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by DoyleChris » Post

Is there a way to add a formspec to the single injector to specify a certain number of items to be removed from a chest. Example if you want just 4 items to come out each command, then when you hit it 4 items come out. And make a maximum of 20, so you just cant use the single injector as a stack injector.

User avatar
fireglow
Member
Posts: 93
Joined: Fri Mar 28, 2014 11:36
IRC: fireglow
In-game: fireglow
Location: Germany

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by fireglow » Post

Minetestforfun wrote:
SaKeL wrote:is it possible to add more names in player detector ?
Done on our servers, you can clone the code :)

https://github.com/MinetestForFun/serve ... f317fdad57
That's awesome!
I have a challenge for you:
Add negations, i.e. "!player" will match anybody but player.
What do you think? :-D

JoshMars
Member
Posts: 111
Joined: Sat May 17, 2014 23:24
In-game: rubber UbuntuJosh

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by JoshMars » Post

I wish someone had something about multiple player detection BEFORE so I didn't have to go and add that myself -.-

blackjack
Member
Posts: 25
Joined: Thu Jan 07, 2016 09:54
Location: Germany

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by blackjack » Post

I'm trying to use a lua controller on a survival server and I hit some trouble with it.
Hope someone can help me out here :)

I was able to realize the function I'd like to get. It works well, as long as someone's around that place.
But when leaving and getting back later, the lua controller got overheated in the mean time.
Not sure, if it's a bug or a feature.
Best regards
blackjack

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

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by Hybrid Dog » Post

How does your code look like?

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

blackjack
Member
Posts: 25
Joined: Thu Jan 07, 2016 09:54
Location: Germany

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by blackjack » Post

Hybrid Dog wrote:How does your code look like?
Quite simple:

Code: Select all

if event.iid == "open" and pin.a then
  port.c = true
  port.d = false
  interrupt (1, "closed")
elseif event.iid == "closed" and pin.a then
  port.c = false
  port.d = true
  interrupt (5, "open")
else
  port.c = true
  interrupt (0.5, "closed")
end
On port.a there is a mesecons button and port.d draws back to pin.a via mesecons.
Port.c is the output signal.
Best regards
blackjack

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

Re: [Mod] Mesecons (= redstone) [GitHub] [minetest-mod-mesec

by Hybrid Dog » Post


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

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests