Foreign well since the last episode of setting up a villager trading system I have uh put in quite a bit more time many golden apples and we’ve even had to get rid of a few disappointing villagers on the way here but the good news is I think we have Finally gotten our villager system ready for its first real test run to see whether or not this thing even works I’m not sure we’re gonna find out here so my main concern with this like in a normal villager trading system uh you keep the villagers right next to their Workstations at all times so if they ever need to restock it it’s not a problem right with this one we got them going around on a loop they’re away from their workstations at times how’s it gonna actually function I hope it’ll be okay but I gotta admit my villager knowledge isn’t uh Perfect I think it’ll be okay though we’re gonna find out here uh one thing I did notice and uh this is very important with this trading system like if you’re in the trade with the guy and he goes far away from you it does not close the Trading window so you’re free to close it whenever you want that’s very different from like some other mechanics in the game like the crafting table if you’re trying to interact with the crafting table and you’re you’re doing your crafting and for some reason it moves away from you or it gets broken or Whatever or you move away from it oh any second here we’re in the water stream right now getting farther and farther away and boom there it automatically closed our trade window on us yeah anyways we got our pumpkins ready for trading here and looking at our very sophisticated villager trade Indicator uh it’s at three lights right now which is telling me villagers are refreshing their trades at this time of day which means if they aren’t refreshing them in our system here there’s something wrong with it big time okay here we go and next guy who pops up boom now we Might play around with the timings on this Loop and stuff we might set it to manual I’m not sure what we’re doing with it exactly this feels maybe a little too slow at the moment though but this is the general idea to how the system will work oh we missed the Villager okay sometimes that happens because uh kind of need to get a few more in there I think all right and we totally traded our stack of pumpkins okay let’s see when the guys come back here if the trades are fresh or not should I think they have I think this is The same guy now because we only have eight in there right yeah these are new trades we didn’t have these before okay cool well we’re losing villager trade power we’re down to two lights but that’s fine let’s uh let’s keep it going here for this guy I’m Gonna actually wait a while before I trade with them just make sure I can like when he’s far away here looks like you still can yeah good and it’s looking like our XP orbs are all kind of gathering together in one spot there okay so let’s talk about a few Things here you might notice this thing looks a little bit different from last episode remember last episode I wasn’t sure if they were gonna keep dying in the system well it turns out they were uh when the chunks were loading and unloading they seemed to be killing the Villagers very randomly and rarely but it was happening so I had to do something about that so we went with a little bit of a redesign here there’s no more pistons in the system or blocks being moved around because I think they were suffocating in those now we just Have trap doors so one of our gates is over here this trap door flips down which allows them to flow through uh once they’re inside the trap door we also made a couple tweaks here and there with things so there’s like a soul sand block there now and uh also instead of Having a piston above them here we have a fence gate that flips open for a brief moment by the Redstone here overall the redstone’s a little bit simpler and more compact the whole system here so that’s good they also seem to get through it faster the only Downside With The Changes we made is that it takes them a little bit longer to go from this stage to into the compartment here takes like an extra second where do the items go well if we’re trading with these guys and we want to clear out our inventory at any Point in time we’re going to be able to throw the items in the water streams they pop up and then they fall down there so they slip past the fence gate there up into that stream and then there’s a one block High separator here so the villagers can’t fit through but The items can and then they fall straight down when they run into that fence gate we can also separate the XB orbs that way so if the fence gate is open we allow them through otherwise just the items go through so our current plan is to have five maybe seven of These looping cells with different types of villagers in then they will eject their items into a water stream they’ll all get collected together and go into a sorting system which will sort the emeralds the goodies we get from these guys and all that kind of stuff put them Into shulker boxes hopefully then I would also like it if we could have like some barrels next to the trading systems like maybe one of them holds emeralds that automatically refill when we take them out of there so when we’re doing a trade we can just Easily you know look to the left grab some emeralds and then oh so and then trade with the guys you like my goofy laughter anyways let’s fix that real quick here all right here we go the the lights are on that means that they’re gonna start refreshing their trades here we’re doing A test to see how long it takes them to actually refresh all their trades so they were all xed out just a moment ago uh we have one guy so far has refreshed I suspect it will take a little bit of time that one refreshed good like Probably I’ll have to get the three lights on before they’re all done I think they don’t always refresh when they go by the workstations I think it might take a few loops I’m not entirely sure that’s what we’re trying to figure out here okay so far it’s looking pretty decent actually Number eight is coming up here he was xed out and he’s still xed out so I’m having an issue where two of them seem to not refresh your trades for some reason all right why why are two of them not refreshing their trades is it because they can’t reach the Workstations I’m not sure let’s try out a few more here and last guy has his trade refresh as well so all eight of them are have refreshed their trades I guess it was because they can’t reach some of the workstations tell you what I’m gonna be Straight with all of you let’s set some proper expectations for this project we’re not getting it done this episode it’ll probably take a few more uh the plan is to work on it a little bit every episode until it’s done because this takes a lot of time there’s a lot of Testing that needs to be done I need to make sure they’re not dying in the system still so I gotta let this run for quite a while I also got to make sure their trades are refreshing properly I want to run that a bit longer I think They are but I’m not entirely sure um and also just to get the villagers ready for this takes forever so thankfully we got a little bit of a stock of them but we’re gonna need a ton more we need a ton more gold I gotta hit The gold farm this is like a mini episode project unfortunately uh so to break things up with what we’re doing here we’re gonna focus on uh some of the cool like technical components we want to add to it and uh the area here that’s definitely not a base Such as this indicator this uh it shows us when it’s trading time with the Villagers I realized today this might have been done before I don’t know but uh that the power level on the daylight sensors 13 14 and 15 actually correspond pretty accurately to when villagers refresh their trades every day so Minecraft day is 24 000 game ticks from two thousand to nine thousand is the workday for villagers that’s when they refresh their trades up to twice a day and uh the daylight sensor is from 24 45 to 95 56 at 13 to 15. uh power level so It’s very close to those two numbers right so if two or three of the lights are on that means the villagers are definitely refreshing their trades at that time if only one is on it’s a little bit more inaccurate and it also will be inaccurate if it is raining or a Thunderstorms going on because that relies on daylight sensors and it gets a bit dimmer outside during rainstorms so that’s the other thing to keep in mind so this is actually very useful for us so I don’t know if you’ve ever had it when you’re trading with villagers And you’ve done a triple trade in a day or maybe you’ve only been able to trade once with them a day when you you know you thought you could trade twice what’s going on well I’ve had that happen a lot to me it’s very frustrating because you don’t know If you’re at the zero to two thousand part of the day or the 9 000 and Beyond part of the day when you’re underground you can’t tell that’s why these lights are super handy because I’ll be able to know so from zero to two thousand they don’t refresh your trades Um they can carry a trade over from the previous day though so you might trade with them and then you’ll be like why why aren’t they refreshing it’s taking so long because that’s like a minute 40 from zero to two thousand you might end up waiting for Them to get a refresh and then they can refresh it twice after that that’s how you get that triple trade day um but then you might also trade with them at 9 000 and Beyond and if you do that you’ll only get one trade with them And you’ll be wondering you know why is that second trade not coming in what’s happening here it’s because you’re at the end of the day and they’re not refreshing anymore this number is the BDubs number by the way 12 542 every single day in Minecraft beat up stops What he’s doing and he right clicks over top of that because that is the very earliest you can sleep in a day oh this is a bit weird we’re flying right now that’s right I like to be on the ground usually but for the next thing here We’re gonna need to be in creative mode our goal is to take our trade sensor and design it to work also during rainstorms um is the plan here so what we’re gonna do we’re gonna take this cool little sensor from Cortez Arena I think was the original inventor of this like six years Ago this thing will figure out if it’s raining or not so if we go weather this is why we need to be in creative and go rain check this out give it a couple seconds and the light turns on just like that uh what we need to do with our system let’s Get rid of the rain weather clear is somehow add three power levels to our Redstone line if it’s raining because that’s about the difference between rain and not raining how do we do that um first thing we’re going to do is compact this a little bit so if we take A comparator put this in subtract mode and yet a barrel to get three power levels from a barrel you need four stacks of items inside so we’re gonna do the opposite of that and go for Stacks missing all right so that gets us down to three power levels the one two three Um so if it started raining what happens here can I show you take a little bit every time so look at that it started raining and now our sensor is not going to be accurate it just lost three power levels on our thing so we need to add that when it’s Raining and to do that the plan is to get this we’re gonna do a double subtract have you ever seen this before I’m actually kind of excited about this I’ve never done this in Redstone before a double subtract Redstone circuit here um what we’re gonna do when it’s raining we Want this to I think extend and then we will have another Barrel to subtract from this subtractor um I think we add the four in here then right yeah so it added three back it is so confusing I’m not going to try to explain this in super detail but yeah You see what it’s doing right it added three back when it’s raining it’s not raining uh it’s not raining now so that Redstone line retracts it and if the rain clears up because the sun gets three ticks brighter uh we get that power level back Yeah so I think all we got to do is add his sensor into our circuit and we’re done so let’s do that it’s just like an and gate here and the oh you see guys what I did there and it’s actually a bad habit of mine but it Actually worked out in that case Okay instead of saying uh I say and all the time now I hate it I can’t stop it okay I think that’s it and we don’t need this anymore so now if it starts raining rain this should still say three Redstone power Okay so Weather I don’t I don’t go on Creative a lot I Stumble with the controls always so it’s gonna go down but then once it figures out it’s raining it comes back but the proof is in the pudding as they say so let’s test this thing out because we want to use This in our trading system when it’s all said and done we want to make sure this is actually functioning properly so again we only want these lights to turn on during the trade times which is from 2000 to 9000 of the day so that means at 19.99 these should be off and they are so that’s good but as soon as it hits 2000 we want them to turn on but they don’t because the daylight sensors aren’t able to get to the number we want exactly they’re late by 22 seconds so at 2450 is when they actually start indicating Um so if we go to 24 or 50 is when it first turns on and then it’s fine through the numbers here 3000 that’s good 4 000 is good 8 000 it’s good till we hit the nine thousands so we want it to turn off at nine thousand Ideally in a perfect world this should be off now but you can see see one light is still on um so it’s inaccurate by a little bit as well on shutting off it doesn’t shut off till 95.60 which is 28 seconds later than it we ideally want 2560 Is when it finally shuts off now this changes a little bit during the rain so if we’re at you know this is like generally we’re going to be somewhere in between and it’s not really going to be a problem um weather rain so right now it’s indicating it’s it’s Trading time it starts raining normally that would mess up the system but then it fixes itself there so it’s all good but then again if we go to 1999 is when trading hasn’t started yet it doesn’t start actually when it’s raining until 2060. so it’s very close to the 2000 we want It’s just off by oh maybe I don’t know what’s happening now oh I was off by a little bit of my number there so it’s about three seconds late on starting 99.40 so that is 47 seconds later than we would like but yeah it should be pretty Close to Accurate for what we wanted to do so that’s awesome we’re going to add it to our trading Hall there uh rain or shine it’s just not gonna work during thunderstorms because I don’t want to bother adding them they’re rare enough that I don’t really care and when it’s Thundering you can hear it’s thundering so you’ll know it’s inaccurate during that time and I might put some lightning rods near the thing as well so that we know visually that to you know they got the Sparks that it’s a thunderstorm is probably not going to be quite accurate Cool cool all right very good we got that figured out and ready for our world here which we’re back into now by the way um so we’re gonna move on to the next thing and uh it’s gonna be another sensor all right so when I build stuff in this Game I always do function before form is one of my general rules and we’re working on a new area here and we want to get the technical stuff figured out before we actually start building because otherwise it’ll be like impossible later uh or very difficult so We want to get all our sensors and new techno gizmos figured out first I really like the feeling in this game when you enter a room and it comes to life so for example in this trading room how cool would it be if we approached the trading system and then It’s they started going around on a loop and normally they aren’t because it’s actually not necessary if we’re not observing them right it’s actually just causing leg uh it would be cool if it turned on when we got near it maybe lights came on in the room and a bunch Of stuff started happening right that’s what I’m aiming for yeah I think the classic example of what I’m talking about here is our original storage room you walk into the room and it just comes to life right I used to get so many comments about this in my videos it just Blew people’s minds they loved it so much that that visual appeal is just so good right we want to recreate that more in our world I think and to do it originally we used pressure plates which is fine but now we have skulk sensors I wonder if there’s anything Fancy we can do with sculk sensors so the reason skulk sensors won’t really work for what we want to do here is because they’re just not really intelligent at all they just do a function right they activate if they hear noise that’s it um so if we’re moving around the room And stuff it’s fine we can we can keep this thing lit up but guess what as soon as we stop moving the skull sensor doesn’t know what happened to us are we in the room are we out of the room uh what’s going on that person doesn’t exist anymore the light Shuts off right even if we add some countdown timer to it or whatever eventually it’ll shut off so how do we get the skulk sensor to be aware of our presence like I want it where you enter a Zone it knows you’re there whether you’re moving or not and Then when you leave the Zone it knows you’ve left it kind of what we’re trying to achieve here now I think the way to do it is to get two of them first stop here so I want it so that we can do directional detection so if We’re walking this way it’ll know it if we’re walking like into the room or if we’re walking out of the room we’re trying to figure out how to do that first um actually everybody’s favorite thing uh can we do this we need to use locking Repeaters I think how how do we do that though because uh hmm or this is gonna be more difficult than I thought it was okay I gotta really think about this so what we’re trying to do here as we approach the one closest to us will Activate first and then we want to make it so it disables the second one but then if we approach from the other side this one will activate first and then we want to disable this one hmm actually wait a second I might have just added Eureka moment actually let’s try something here Yeah because the other thing is not only do we need to disable the sensor we also need to save into memory which direction we were moving somehow there’s actually something I’ve done similar to this before uh wait uh okay let’s try this out um you guys all know the hopper clock right yeah This will work uh so if we get a block bouncing back and forth because then the Pistons they naturally cancel each other a piston can’t move another piston arm so whichever one activates first is the one that that goes first right another one can’t activate uh so if we Get the sensors like this What is happening here okay let’s test it out so if we walk by that one should activate yeah we walk the other way yeah that’s what we want to happen we walk to the right that one activates walk to the left oh yeah it’s doing it okay I think we might have something here here’s what’s going on as far as I understand it so this isn’t actually a true like motion detector it’s not detecting which way our character is moving all that’s really detecting is what side of the line we’re on this is a line here Between the two sculk sensors basically so if we’re on this side of the the Piston right it’s always going to activate this one it doesn’t matter if we’re walking forward or if we’re walking backwards oh not again oh the good old Dragon hole so it is a directional detector but only when we’re Crossing the line in that moment it can detect what way we’re traveling uh but otherwise if we’re on one side of the line and we’re not Crossing it all it’s really doing is telling us we’re on that side of the line then that’s it so this light should never turn on if We’re on this side of the line seems to be true and as soon as we cross the line and we’re on this side then it switched well sometimes it does weird things too I think depending on when the sensors are active and the active and when the Pistons have retracted it affects it as well ah this is so cool all right everybody so check this out I’m really happy with this thing it seems to be working pretty close to 100 if not to 100 now uh with a few more restrictions On it it works a lot better for sure and you’ll notice this is not just a t flip-flop that’s bouncing back and forth no if we keep going through the same way it’s registering correctly that we’re going that direction so we’ve entered the room we’ve exited the room or whatever you Want to use a directional detector for uh this seems like it will do the trick just fine so what we’ve done is we’ve buried it underground we got a seven block Gap so from the sensors here so one two three four five six and then seven where the stone is Um and by doing that we have greatly lowered the area of detection and that’s what was kind of messing it up before the bigger the area of detection the more likely it’s gonna do weird things yeah so what we’ve kind of done here is we’ve established an invisible five Block wide line from the edge of the stone there to the edge of the lamps here down the middle and whenever we cross that line our our Redstone can figure out which direction we’re traveling and then activate some Redstone based on that it is the idea Here the major problems with this is if we enter the the detection Zone here and then we stay in it for longer than two or three seconds okay if we we go here and then we walk forward it’s gonna mess it up but if we just straight through walk through it’s not Going to be a problem uh likewise there’s a there’s like a two or three second delay before I can do another detection that those Pistons need to retract right so the other thing is we can’t just like run in here and then run back this way And expect it to like know we went this way right uh it needs that extra time to do its thing sensors have a built-in like one second delay uh at the minimum as well the other really cool thing about this though is it’s pretty flexible depending on what you want to Use it for so for example you might not like uh the Piston sounds because I sure don’t uh there’s no rule that says you have to put the sensors right above the Pistons like this you can put the Pistons lower ground lower underground and then run wire from the sensors to the Pistons Down lower you won’t hear them up above that likewise you can add more Redstone to your sensors like if you want to filter out certain sounds that’s allowed and then just run it to your Pistons the Only Rule on that is whatever circuitry you add to your sensors you need to make Sure the delay is the same for all of them because what we’re really doing here is figuring out which sensor triggers first and if one of them has more delay than the other one it’s gonna off put it and mess up your your thing um what else here Um you can have more than two sensors too so for example in our our case here we have a five block wide imaginary line you might put at the entrance to a room what if your entrance to your room is 10 blocks wide what do you do then well uh You just need to add a couple more sensors in if you want to go this way at the depth we’re at there’s basically a two block wide or two block radius area all around the sensor it’s detecting up above there so if you go four blocks over and at the Fifth block add another sensor then it will add five more blocks on your line this way and likewise you would need another sensor for over here connect these two together run it to your piston connect these two together run it to that piston and then your line up above here Would extend from here all the way to about over here the other thing is you can also have more than one line you can have another line like say you have another entrance to the room that’s definitely allowed as well just add more sensors in a different area but Then you only want to have one memory unit for Zone you’re detecting like you don’t want to have more than one set of Pistons connect all your sensors to just just the one set here anyway that’s all I got for you guys today a little bit of A odd uh technical r d sort of episode a bit old school maybe not everybody’s cup of tea but uh I enjoyed it I really like doing this kind of stuff uh you know I could build a house in this game and I’ll enjoy it a little bit You guys will probably enjoy it a little bit as well but uh I feel like this kind of stuff has a much bigger impact on the community it probably triggers more ideas than you guys and that kind of stuff as well so it’s good to do these Once in a while I think uh comment of the day says oi Etho mate have you ever tried no man’s Sky it has exploring building farming and even more maybe you would like it if you try aha so no man’s sky was gonna get released right everyone was hyped about It I was hyped about it a few months went by a hype was building and I was like where’s the gameplay this doesn’t seem like it has much gameplay it released I didn’t buy it everybody else bought it and everybody hated it and I felt so good about not buying it uh then Eventually a few few patches later I actually did a series with beef uh they released some big multiplayer patch for it and had a sale on the game I bought it I tried it out with beef I actually really enjoyed it quite a bit at that Time even though it was like the first like initial drive to uh making the game good um then they released a few more patches I played it off camera a bit and I really enjoyed it a lot more then when I had time to take in what I was doing and All that kind of stuff try out some of the new cool things it’s a good game uh it’s got its issues still of course I wish it was a bit more gamey uh usually when I play it I just try to set my own goals and see how quickly I can acquire Like some super spaceship and and how fast I can do that kind of thing then it makes it a bit more interesting for me than just randomly hopping from planet planet not really having a goal in mind I don’t like the story in that game it’s it’s not interesting to me aha anyways Hopefully you enjoyed this episode thank you for watching until the next one take care bye Video Information
This video, titled ‘Etho Plays Minecraft – Episode 572: Sensor Development’, was uploaded by EthosLab on 2022-11-26 20:11:54. It has garnered 486342 views and 25420 likes. The duration of the video is 00:28:54 or 1734 seconds.
Sensor? Call me Sensei. Today we revisit the looping villager trade system and give it a test run. Then we head into research and development mode to design a Trade Sensor and a Directional Sensor.
Cortezerino: https://www.youtube.com/watch?v=ISDN-cMiBXg
Twitter: http://www.twitter.com/EthoLP TwitchTV: http://www.twitch.tv/ethotv/ World Download (550): https://drive.google.com/file/d/1aJ6we_pq1pqU_4ofgXD3ACfEGasBNBQn/view?usp=sharing
Reminder: People advertising, spamming, or being rude in the channel comments will be blocked.