sfan5 wrote:DeepGaze wrote:is there hope for a wireless mesecon?
https://dl.dropboxusercontent.com/u/30267315/Minetest/mesecons_wireless.zip
Crafting:
Note: Only has 1 wireless channel
thankyou
sfan5 wrote:DeepGaze wrote:is there hope for a wireless mesecon?
https://dl.dropboxusercontent.com/u/30267315/Minetest/mesecons_wireless.zip
Crafting:
Note: Only has 1 wireless channel
interrupt(5)
if (mem.var == nil) then
mem.var = 0
end
if (pin.d == true) then
if (port.a == true and math.random() < 0.02) then
port.a = false
mem.var = math.random(10, 25)
end
if (port.a == false) then
mem.var = mem.var - 1
port.c = not port.c
end
if (mem.var < 1) then
port.a = true
end
end
jhlucario3 wrote:I cant get it to work my game keeps saying mod failed to load and run'
if event.type == "on" then
if event.pin == "A" then
port.d = not pin.d
elseif event.pin == "B" then
port.d = true
elseif event.pin == "C" then
port.d = false
end
end



Use the "code" tags for posting code instead of just using plain text. ;-)wcwyes wrote:Apparently my friend Badwolf changed the code to
if event.type == "on" then
if pin.d then
port.b = not pin.b
if pin.a then
port.b = true
end
if pin.c then
port.b = false
end
end
if event.type == "on" then
if pin.d then
port.b = not pin.b
if pin.a then
port.b = true
end
if pin.c then
port.b = false
end
endsfan5 wrote:Heres a DL link for the first version that was on github(2 years ago):
https://github.com/Jeija/minetest-mod-mesecons/archive/67c953579bd02916dfa46f91a2541d4bdc64230f.zip
ndjdjksisksk wrote:sfan5 wrote:Heres a DL link for the first version that was on github(2 years ago):
https://github.com/Jeija/minetest-mod-mesecons/archive/67c953579bd02916dfa46f91a2541d4bdc64230f.zip
thanks
Users browsing this forum: No registered users and 10 guests