Tumgik
#I know observers don't quite work like this but shhhhh
the-final-sif · 1 year
Text
Anyways, I don't think I did put the chicken and the egg idea here, so!!
The chicken and the egg is my idea for a "test" for admins when they first create a server. It's hardcored in to ensure the person starting the server knows what they're doing, at least a little bit. Like a puzzle that needs to be solved.
The rules of this problem are simple; in order for mobs to start spawning there must be both a chicken and an egg present on the server. A chicken despawns instantly without an egg, an egg despawns instantly without a chicken.
The solution to this is for an admin to run the tasks in parallel, they happen at the same time, and because the tasks are processed at the same time, both come into existence together. No despawning, and you're all good to go.
c!Dream when starting his own server encountered this problem with no formal training. He got stumped by this for awhile, before finding a solution he was very proud of!!
One day, someone, probably c!Phil is looking through the server code and realizes that the server. straight up. Isn't using any parallel processes. He's not even sure how that's possible. It shouldn't be possible, because you need at least one parallel process to start your server and spawn mobs.
Since he can't figure it out Phil asks Dream how he solved that initial puzzle, trying to figure out what's going on. Dream is very happy to explain his solution!!
Start trying to spawn a chicken in a loop, basically spamming the command.
Paint a painting of an egg in an item frame.
Take an actual item frame and place it in front of an observer
Pause ticking so the observer can't update
Replace the item frame with the picture of the egg in an item frame.
Resume ticking.
The Observer now believes there is an egg that has been placed in the item frame, because the observer believes there is an egg, the server now believes there is an egg.
Because the server now believes there is an egg, it allows the chicken to spawn. Once he has the chicken, c!Dream spawns in a real egg.
Profit
Dream even kept this setup in a tiny little bedrock enclosure so nobody could mess with it. He shows it off to Phil whose just stuck between awe and horror that this worked and the broader implications for what kind of weird rube-goldberg ass server they're on right now.
437 notes · View notes
mosshead-lover · 3 years
Text
The Act of LordE: Part-7
Rehabilitation
~ Bakugou & Izuku x Reader
Summary: [y/n] moves to her dream city having abundant hopes. Her encounter with Katsuki Bakugou, sends unsettling ripples through her life. Determined to earn an apology for her boyfriend, Izuku Midoriya, she gets into a game with Katsuki. Will the game remain a simple game even at the stake of her love life?
Tumblr media
<<Previous
A/n: You will enjoy this better if you have read the previous parts before! ^^
Part-1 | Part-2 | Part-3 | Part-4 | Part-5 | Part-6 |
--Start--
A promising hero student losing his quirk was all over the news. The government had assured the nation of wiping out any sign of the evil product, down to the villains behind it. But this event made the public question the efficiency of the heroes and the government. The incident ignited by a local gang of thieves had created quite a stir.
Anyone who knew [y/n] could tell. She was the most disturbed, and a pang of uncertain guilt always clouded her face. [y/n] felt the most pathetic at work. It killed her to work in the absence of a man who, at the expense of something more important than his life, had saved her. The blame she held on herself became a hundred times heavier every second at the agency. She would feel a heavy lump in her throat, making it hard to breathe, as if the world was telling her she didn't deserve the air. She would end up fainting or break down. The agency had extended her internship by another month. So she can rest and recover well from the incident. She missed being busy, but she knew the agency was right.
”You cannot go on like this!” Izuku expressed his concerns on the way back from picking her up from the agency. She had been staying over at Izuku's since that day. He insisted that she did.
A week later...
The sun was already set, and the street lights illuminated the way. Izuku walked home faster than usual.
'[y/n] has to hear this now!'
he thought. He had to see her in flesh and blood. He had to see her shed the worries. He had to embrace her and tell her everything was going to be okay, indeed.
[y/n] was woken up by the sound of door unlatched. She sat up to welcome Izuku.
"Hey there, sleepyhead." Deku greeted in his usual warm tone.
"Hi, Izuu." [y/n] greeted him back, bringing her palm close to her mouth, yawning.
"Guess who visited UA University today?" Deku's eyes were dilated to adjust the dim room and, the street light reflecting off his green pupils made them shine like precious gems.
"Who?" [y/n] questioned him back as the ritual went, clearly uninterested.
"Aizawa-sensei!" His eyes went wide.
"Oh! your home-coming teacher?" [y/n] was more attentive now. She stood up, reaching the switchboard to turn on the lights.
"Yes! and Eri-chan too!"
[y/n] knew Eri. Deku had told her everything. She hadn't slept the day Deku told her Eri's story. She felt sad for the horrible things that little girl had to go through. She had even visited Eri once. [y/n] felt better looking at Eri doing well. She had been preparing for UA high entrance exams, determined to follow her beloved Nii-san's(Izuku's) footsteps.
"Hope she is doing well." [y/n] was smiling involuntarily at the mention of Eri.
Deku went on without feeling the need to assure [y/n] about Eri' well being.
"The reason they were there is.." Izuku tried to give a dramatic pause which miserably failed.
".. to discuss Kachan's revival!" He almost squeaked.
Eri's quirk let her transform anything she touched into its former form. A dangerous yet powerful quirk if learnt to control. But, it was never used as Eri was yet to learn how to control her power. Besides, Aizawa and other pros were against burdening her with such huge responsibilities. She was just a kid, after all. But, this time, Eri had volunteered. She had grown beyond feeling her quirk was a curse that took her parents and everything else from her. She knew her true power lay in returning something that was taken away. Surely, she couldn't revive what was taken away from her but, if she could do it for others, she wasn't going to sit back and watch. After testing her in and out, Aizawa had decided that she might be able to succeed.
"Eri's quirk!" [y/n] exclaimed. She slumped in to the sofa and let out a huge sigh. Knowing that there was a possibility that Katsuki could get his power back changed the world for her.
Izuku and [y/n] were in bed. They had had a cheerful dinner. Izuku must have mentioned at least a dozen times how happy he was to see [y/n] smile again.
"Will you visit Kachan at least now?" Deku casually questioned, staring at the ceiling.
[y/n] remained silent. Deku grunted as he shifted to face [y/n].
"[y/n]-chan" Deku then patiently waited for an answer.
"I will go tomorrow." [y/n] finally responded, her response almost inaudible.
Katsuki hated having visitors. He hated them trying to sympathise, trying to give him false hopes and the way they looked at him as though he was a helpless pup. He hated it the most. When he tried the hardest not to think about the future, all their visits did was remind him that. Luckily the glass chunks hadn't pierced deeper than a few muscle layers. He had argued with the doctor to let him go home soon. The doctor had patiently explained that he had to be kept under observation for at least a week, for he had been struck with way too many quirk erasers.
Katsuki was sleepy and tired all the time. By the time [y/n] visited him, he was a lot better. He could read a JUMP and even walk around the room before his eyelids felt heavy again. When [y/n] entered the room, Katsuki didn't recognise her anymore. The face otherwise filled with resentment and disgust was filled with gratitude and kindness with a hint of guilt. Katsuki wasn't sure how he felt about this transformation. [y/n] forced a smile as she nervously walked to his bed. She had begged Izuku to go along. He had refused to, saying she had to do it herself.
”Besides, Kachan will only be ruder to you with me around, ” he had joked. Little did he know that Kachan was hardest on her when alone. Kachan was more confused than ever. Unsure of how to react, he reached for the water glass set next to his bed. He gulped down the water hurriedly, ending up coughing and spilling it all over him. His body wasn't recovered enough to keep up with his speed. He should have known. [y/n] quickly took her handkerchief out and started dabbing the dampness as she took away the glass from him. She didn't look up until she felt his grip on her wrist. It was weak physically yet, she froze.
"I...I.."
"Don't you dare," He hissed. [y/n] was confused.
"I was just..."
"Shhhhh.." He stopped her midway and pulled her closer. Her face inches away from his.
"Can you not.." He muttered, searching for words, looking away.
"I am sorry" [y/n] didn't know why she was apologising. For dabbing his chest without permission? For his quirk?
Katskuki submerged in the way the air hushed out from her mouth tingled his skin, neglecting her words entirely.
"Bakugou! How are you feeling today?" The overly enthusiastic doctor entered the room.
[y/n] and Katsuki quickly parted. Katsuki let out a sigh, half thankful for the intervene.
"I am okay." He didn't quite return the doctor's energy.
"You can leave." He muttered, looking at [y/n] from the corner of his eye.
"The madame can stay. I will hardly take a minute. " The doctor beamed as he plugged the stethoscope to his ears, clearly aware of his intrusion and bad-timing.
"Um, I will come by later, I guess. Bye." [y/n] almost ran out of there.
She let her head sink in her palms. She hadn't done a single thing she had rehearsed. Thank him, ask him how he was, apologise and mostly, mostly to start fresh.
Next>>
~ Click here to be a part of my Taglist for this series
~ Click here for the series masterlist.
~ Click the bear to check out my other works:
ʕ•ᴥ•ʔ
———————————————————————Taglist: @nervousmentalityfox , @marvel-love-posts @miraclecherryblossomsblog , @sssjuico10 , @fuzzzwald @omlbarnes , @spicy-therapist-mom ———————————————————————
26 notes · View notes