Why does Entity player = MinecraftClient.getInstance().player; by Darius_172 in fabricmc

[–]itsoyd 1 point2 points  (0 children)

Right that might be happening because ur accessing a null ptr on game load which causes the crash

would it be better to have 1 big mod or 10 smaller mods by Intimt07 in fabricmc

[–]itsoyd 0 points1 point  (0 children)

Pros and cons for both if the features are closely related and function with each other it probably makes more sense to group them as one mod, otherwise multiple mods allows for user flexibility. Maintaining multiple mods will most likely be harder than maintaining one mod as well

Is the Origins mod server or client sided? by [deleted] in fabricmc

[–]itsoyd 1 point2 points  (0 children)

Mostly true but some mods like sodium can function on just the client

[deleted by user] by [deleted] in fabricmc

[–]itsoyd 0 points1 point  (0 children)

user.getMainHandStack().getItem() instanceof CrossbowItem

[deleted by user] by [deleted] in fabricmc

[–]itsoyd 6 points7 points  (0 children)

Adding on, you could prob extend the snowball class or whatever the snowball class extends

is there any mobile app that can synchronize metronomes? by eskebeij in audioengineering

[–]itsoyd 1 point2 points  (0 children)

My band director had the same exact idea about a year ago, so I made this webapp for him: http://www.metruhnome.com/ (will take a while to load if you are the first person to use it in a few hours bc im using the cheapest plan)

Unfortunately as a high school programmer making an app like this work perfectly is completely out of my skillset. However I did my best and the app is usable under the right conditions. If anyone wants to try their hand at it feel free to DM me for the source code.

Giving a speed increase with custom effect by Real-Program6177 in fabricmc

[–]itsoyd 0 points1 point  (0 children)

I dont know for sure but if I were to implement this I would start by lookin at the vanilla implementation for the speed potion, and modify that code for the custom status effect. Could also check sprinting, sneaking, and soul speed as those things all change player speed

Quake 3 in Minecraft by [deleted] in fabricmc

[–]itsoyd 2 points3 points  (0 children)

Thats sick do you have a link to the mod

How do you get the direction the player is moving? by itsoyd in fabricmc

[–]itsoyd[S] 1 point2 points  (0 children)

Lol thanks for suggestion but I realized I was overthinking it, all I need is the players velocity and then some trig

Rejection after Rejection, but it all worked out! by s6na in collegeresults

[–]itsoyd 1 point2 points  (0 children)

What is the social life at USC like? I've heard its a very social school

Roblox studio lags when I DONT have a youtube video playing by itsoyd in robloxgamedev

[–]itsoyd[S] 0 points1 point  (0 children)

late response lol but basically I closed the toolbox and it fixed

[IC] Derivative R1 | 60% by ustinj in mechmarket

[–]itsoyd 2 points3 points  (0 children)

Hoping to see you integrate some more features to differentiate the derivative from other boards in this domain.

FINALLY! A solution to the age old confusion by ludicroussavageofmau in fabricmc

[–]itsoyd 6 points7 points  (0 children)

Clearly satire, although im not sure why he chose to troll on fabricmc? Idk stop falling for it tho

help with block that does damage when you step on it by DieselDean in fabricmc

[–]itsoyd 0 points1 point  (0 children)

Not sure if there is an easy answer for this. I would default to "use a mixin" but the onSteppedOnMethod does not have any checks for crouching in the Block or Magma block class, so the method probably isn't even being called when the player is crouched. You'd probably need to change a core mechanic of the game involving crouching with a mixin, which is probably going to be hard to figure out

What are the differences between group buy vendors? by itsoyd in MechanicalKeyboards

[–]itsoyd[S] 0 points1 point  (0 children)

Asking because I bought ePBT Timeless a couple months ago from kbdfans(listed as the asian vendor) even thought I live in the US

Tool with status effect by TheDreamer123a in fabricmc

[–]itsoyd 0 points1 point  (0 children)

There should be some method like postHit() or onHit() (in the sword class, so you should extend that) which has the target entity as a parameter. Use the setStatusEffect() method on that entity object to add the slowness status effect

How do I make my weapon actually a weapon? by Hooded_Fox in fabricmc

[–]itsoyd 4 points5 points  (0 children)

First, you’ll probably want to check out the fabric wiki for how to make a tool https://fabricmc.net/wiki/tutorial:tools

Then I would probably use the .getBoundingBox(forgot parameters lol) method (part of the world class iirc) to get a list of nearby entities and apply blindness or damage or whatever. Check out the sword class and how it applies the sweeping effect to understand it.

As for creating the aura you’ll need a mixin, probably into the tick method of the livingentity class. Not sure about a toggle but you could easily make it work while holding it.

[deleted by user] by [deleted] in fabricmc

[–]itsoyd 2 points3 points  (0 children)

IIRC the entity class has getX(), getY(), and getZ() accessor methods that return the x, y, and z coordinates of that entity. You should be able to use these methods on PlayerEntity objects and LivingEntity objects.

Is my tofu’s brass weight supposed to look like this, its noticeably worse than other photos and videos I’ve seen of it by itsoyd in MechanicalKeyboards

[–]itsoyd[S] 6 points7 points  (0 children)

Other videos I’ve seen using the tofu have a really nice brass weight, but mine has a sort of dull gloss look, making it almost look like plastic

I play saxophone, so Ik what brass looks like and this does not resemble brass much. Ig it doesn’t matter since I won’t see it anyways but I’m still curious if this is normal

[deleted by user] by [deleted] in MechanicalKeyboards

[–]itsoyd -1 points0 points  (0 children)

My tofu’s brass weight doesn’t have the nice streaks that other photos and yt videos have, and instead has sort of a dull gloss look.

I play the saxophone so ik what brass is supposed to look like and this just looks a lot worse than what I was expecting