r/MinecraftMod • • 5d ago • Bravo 2

Messing around with making physics based mobs

It was originally just a silly idea, but it's actually looking super cool! So I decided to show you all! Should I continue investing my time into this? Or is it not something anyone would want?

The way it works is the mobs bodies are physics objects, and they actually keep themselves upright through limb motor control. Running requires them to try and keep themselves balanced. I did make their heads weightless, because of how big they are, they would face plant every time them moved.

2.0k Upvotes

116 comments sorted by

57

u/ScwiddIsScwidd 4d ago

how performant is this?

58

u/Salt_and_Fries 4d ago

I haven't played a real world with it, so it might be pretty cpu intensive

15

u/Raphael_Grove 4d ago

Yes I’m curious too! This mod looks awesome and so silly! I’d be really interested to see how it works against fighting mods like skeletons and zombies. Like could gun mods or sword hits cause knockback on their limbs and make them fall over?

14

u/RandomOnlineBro 4d ago

An entity cramming situation would set your PC on fire

9

u/Bread_Enjoyer228 4d ago

nah explode on the spot

34

u/BarbsFPV 4d ago

A mob here and there having advanced physics won’t be too taxing on most PCs. Having an entire world full of mobs with advanced physics will probably slow all but the most beastly PCs to a crawl.

This looks awesome though, but even resource packs like fresh animations can really bog you down, and that’s pretty light compared to this.

Everything in the game runs on the same thread so that’s the main reason they try to keep mob AI and movement pretty basic.

15

u/Salt_and_Fries 4d ago

Yah I was thinking maybe only having mobs within like 5 chunks having active physics? Also mobs that the player directly interacted within the past minute, so sniping a zombie or something will make it kick into physics mode. Idk, I'm brain storming optimization fixes

11

u/Kakllakl 4d ago

Def should have different versions though for people's pc's sake. I could see options to only allow x amount of creatures at a time to experience physics based on distance and interaction. But honestly this looks very funny, is it gonna have different weights or is everything going to be paper boxes that get tossed with knockback. Or will only the knockback or punch enchantment throw mobs?

4

u/Salt_and_Fries 4d ago

I'm going for heavy weights. So the player should struggle to tip a cow for example

3

u/Jwhodis 4d ago

Not sure how taxing it would be to check but you could likely implement a way to only process the physics for entities in view

Another thing is not doing physics for crammed entities, like a bunch of cows in a 1x1 hole.

2

u/quardoballs 2d ago

Maybe have a max sim number of mobs too. Farms would be very difficult. And maybe you could have two degrees of simulation: full and low-level.

111

u/emil836k 4d ago

So, about that GitHub page…

87

u/Salt_and_Fries 4d ago • Bravo

It's not a mod right now. The git is entirely on my PC. But if people want it I'll make the GitHub public like the rest of my mods!

2

u/GeologistAromatic197 1d ago

what about modrinth or curse forge ?

2

u/Salt_and_Fries 1d ago

That can happen if I can get it functional enough

74

u/Arthur_morgan457 4d ago

As a representative of the people I say we want this

17

u/NotSoFunny_Redditer 4d ago

Thank you Arthur Morgan

2

u/Golden_Battalion919 1d ago

Thank you Arthur Morgan.

14

u/SkinInevitable604 4d ago

Please please please please

7

u/TotoShampoin 4d ago

Yes please

2

u/Firebirdgaming08 3d ago

I'm not even a PC player and I vote YES!

Think of the technology

2

u/TheSpaceAlligator 3d ago

1 day later and no page...

-5

u/One_Pitch3982 1d ago

Reddit recommending me 3d old posts on MC mods that look kinda neat and the first thing I see is a mf trying to start an AI witch hunt. Gfy.

2

u/emil836k 1d ago

I literally couldn’t have asked nicer

0

u/One_Pitch3982 1d ago

You could've just asked the modmaker politely and directly, asking to access a git repo sounds, feels, and looks pretentious as hell (and I don't trust everyone to just magically know whether something was or wasn't coded using an LLM).

Besides, quite genuinely, what does it matter? LLMs are not generative AI, they are not the droids you're looking for. Most LLMs have been around a long while, and some are used by top research labs in the US because they trivialize data aggregation and analysis. NASA has been using machine learning and LLMs for the longest time and no one's up their ass about it.

I get it, if you're worried about lazy coding. That's a valid concern, stuff like Epic refactoring their launcher's code to be entirely vibecoded by Claude, or the recent trend of indie devs using Claude to vibecode entire games for them, even their models. But, like, a minecraft mod? Really?

I'm almost happier to see LLMs open up more avenues for people who have wanted to be modders but never had the know how to actually be able to make their mods now, no matter how fucked up or jank. I like seeing the creativity LLMs let people bring to the table sometimes, like this mod. Plus, people don't realize that LLMs are really the only way to decode and decrypt game engine files in a reasonable period of time anymore- gone are the days of console OS cracking where getting the graphics engine files could be done on a laptop in a few hours- stuff's just too internally complicated now and usually encrypted above the level of the average modder.

Idk man, just ask nicely next time and maybe don't care as much, for the sake of not discouraging creativity.

2

u/knoxarium 1d ago

LLMs are not generative AI

-1

u/One_Pitch3982 1d ago

LLMs can only regurgitate whatever they've been fed, like ChatGPT or Claude; things like sora take what they've been fed, fundamentally transform it, and spit out something else instead.

2

u/knoxarium 1d ago

i work in machine learning and ai. you are very wrong, im sorry. LLMs are generative ai, because LLMs predict and GENERATE tokens (aka words). LLMs don't just regurgitate data, they learn statistical patterns, grammar, concepts, and reasoning procedures into billions of shared weights so they can generalize to new inputs. if LLMs only regurgitate info, then how did it prove the Navier Stokes equation, Riemann Hypothesis and VP vs VNP? also, Sora isn't an LLM, its a diffusion model.

2

u/emil836k 1d ago

To be fair, I would argue that’s just regurgitation with extra steps

It looks at patterns, grammar, and other hard rules, but it doesn’t “learn” concepts, and it doesn’t “understand” reasoning

Though I guess that may depend on how you define the word learn, Chinese room and all that

1

u/po_stulate 14h ago

In that case human is also just regurgitation with extra steps, the exact same thing you described is also 100% the same as how we learn. Guess we also don't learn and don't understand depending on how you define the word then.

1

u/emil836k 14h ago

Well, yes and no, again, chinese room

If you can argue for it learning by bending the definition of learning, it can’t learn

It can retain knowledge and use said knowledge, but so can an algorithm

Really is just an algorithm with extra steps

→ More replies (0)

0

u/[deleted] 4d ago

[deleted]

1

u/emil836k 4d ago

Wrong guy

1

u/Jbolt3737 4d ago

Yeah sorry

7

u/Defense_Turtle 4d ago

this mod but for playermodel would get thousands of interested players imo.

3

u/Salt_and_Fries 4d ago

That would play like the game "Peak"

4

u/CursedBM81 4d ago

Pretty much every Landfall game plays like Peak in terms of movement since they all use physics for that

3

u/Defense_Turtle 3d ago

keep me updated, i might be your no.1 sponsor.

4

u/Zestyclose-Ideal2395 4d ago

I like the animation principle that these are block based robots before they're animals

1

u/Salt_and_Fries 4d ago

Yes! The logic is functionally very close to his someone would program a robot

3

u/Maskoloxyn 4d ago

if you base it on sable and that they are sort of blocks first, people can make themselves into mechanisms or augment themselves through mods like pocket sized and putting stuff on themselves I don't know how this would work

2

u/Natural-Investment34 4d ago

Is the player also going to be psysics based?

2

u/Salt_and_Fries 4d ago

Not right now, but I could experiment with it

2

u/pixel_demonic 4d ago

is this use Sable?

2

u/Salt_and_Fries 4d ago

I did originally experiment with sable. But sable was entirely block physics, it didn't have any means to apply it to Entities. So I never could get it to work.

2

u/Jbolt3737 4d ago

Please make the rabbit have jumping physics, these mobs are so cute wadling around and rabbits are my favorite animal

2

u/Salt_and_Fries 4d ago

I am scared to do rabbits

2

u/Jbolt3737 3d ago

I don't know how exactly you're doing this but I assume each leg has a desired rotation or target to point at or something. How I'd implement it: just take the rotations from the vanilla animation at the idle point, A, and the last frame of the jump before they leave the ground, B. When the rabbit jumps you have the desired rotation go instantly from point A to B and as long as the legs are strong enough the rabbit should be sprung into the air (try to make it so they use their front legs and head to keep their body upright if possible)

1

u/TheSpaceAlligator 3d ago

Same, bunnies would be awesome :D

2

u/yakcm88 3d ago

Show us the spiders.

1

u/Salt_and_Fries 3d ago

I haven't touched them yet

2

u/that_idioticgenius 2d ago

This is really cool! But im really concerned on the performance of this. Would love to know if it assigns the procedural animations automatically or do you have to set a custom procedural animation for each new mob each time? More details on the procedural animation would be nice! Ive loved it since i was a kid and i love how you implemented yours, they're so much more full of life than other games ive seen and works way better in the minecraft art style than i expected.

2

u/Salt_and_Fries 2d ago

I'm working on a single model that all the mobs run on

12

u/Edmord17 4d ago

They move around like if they were avatars in VRChat, they way pig turn around to look at us felt way too uncanny omg, cool stuff

1

u/IronfoxYT 1d ago

I makes them feel more alive imo

8

u/Investing_in_Crypto 4d ago

Cant play this game its got pig physics

3

u/After-Distance6134 4d ago

uhmm
seems cool
but too physicy or smth id day
dontget me wrong i like smth like ts https://modrinth.com/resourcepack/reanimated-blue but it looks too much

5

u/unga_bunga_1987 4d ago

its less meant to look like physics but seems to be going for physics driven ragdolls controlled by procedural animation

3

u/LaDestitute 4d ago

cows & cows & cows energy mixed with rayman limbs vibes

3

u/CompetitiveLeg7841 4d ago

Totally Acubic Binecraft Simulator

3

u/mas-issneun 4d ago

it looks too real... im scareb.

3

u/david_bivab 4d ago

Uhh sable?

3

u/Kair0_1299 4d ago

Pull mod on cf and modrinth, it's peak

3

u/Living_The_Dream75 20h ago

This looks amazing, but the lack of head movement makes it a little disturbing to watch..

2

u/ethan125 4d ago

This is a neat idea! I was expecting some kind of pig turning into a creeper joke on the last gif lol

2

u/GoldSunLulu 4d ago

I like the little turnaround but i dont like how they run and stuff. Heledron has a great video on how he made inverse kinematics, with a lot of good info for any Ik Programming really

2

u/NoobyNoob0102 4d ago

omg the 5th gif reminded me of kick the buddy

I forgot that game even existed

2

u/TheGreatQuetz 4d ago

I wonder what it'd look like if you tried to make a mob walk that has multiple bones in its legs.

Unfortunately the only vanilla mob like that is the Ender Dragon which only flies.

2

u/MystifyreMusic 4d ago

looks good and I see the vision but it's a little too much rn. the limbs get disconnected from the mob a little too much at times

2

u/Interesting-Bag-1281 4d ago

99+ missed calls from VIDEOCULT

2

u/badredstoneer 4d ago

Oh that's sick

2

u/skydisey 4d ago

Whoa procedural animations! I bet rain world MC community want to hear about you

I guess being named Salt- gives you +100 to coding skills btw, absolutely gorgeous

2

u/No_Context2723 4d ago

Looks awesome! But you should make it so that only mobs in a certain radius to the player are simulated (4 - 6 chunks maybe)

2

u/7Shinigami 4d ago

Woahhh, crazy!!

2

u/artmogus 4d ago

I'm not sure if this looks godsent or cursed lmao, I like it anyway though, keep it up!

2

u/I_am_a_Pengy 4d ago

this is awesome !!!!!!

2

u/Witty-World2916 4d ago

genuinely one of the most needed things I've seen in a while. Keep it up please!

2

u/Mystic-256 3d ago

this is amazing

2

u/termoskonferencyjny 3d ago

horse plinko when?

2

u/TIMMYDGOD3 3d ago

I want it

2

u/Economy-Energy-8394 3d ago

wahhh so cuteeee

2

u/Bubbly-Release9011 3d ago

seeing the mobs stumble over blocks and stuff is so adorable i NEED THIS

2

u/Dawnpath_ 3d ago

Oh no. It's really good. OP, I'm so sorry, and good luck.

2

u/Budget_Minimum9439 3d ago

my pc crying from seeing this...

2

u/hoverek 3d ago

I think that instead of using full-fledged physics, it is better to use Spring Physics for animation.

2

u/730Teo 3d ago

Rain world physics

2

u/K_Body 3d ago

The look like they are possessed by a soul of a human

2

u/DemonsMasquerade 3d ago edited 3d ago

sees first animation

bro looks like he’s in vr

2

u/thedieman 3d ago

Oh please continue developing this mod! I love it already!!

1

u/TheSpaceAlligator 3d ago

It has so much potential

2

u/toonfinch 3d ago

how hard would it be to make it compatible with modded mobs?

2

u/TheBailzmeister2 3d ago

This feels like that one gmod arg it’s scary as fuck Ngl

2

u/All-your-fault 2d ago

They look like they’re fuckin VRChat players

2

u/BestPony12 2d ago

that is very cool awesomeeee

2

u/choco_king_the_first 2d ago

Kungfu swineing

2

u/kicktex 2d ago

minecraft if good

2

u/Mysterious-Run-3794 2d ago

It kinda looks like someone trying to pretend to be an animal in vrchat

2

u/KezH0 2d ago

This gotta take 400 morbillion times more processing power

2

u/MrBrineplays_535 2d ago

I want this so badly

2

u/Wojtek1250XD 2d ago

Looks alot like Rain World.

2

u/Actuallynobutwhynot 1d ago

this feels like something you'd have to run minecraft in a whole new engine for, however it's a banger. oddly scary but also cute

2

u/JiveJammer 1d ago

They look so cute!!!! I would absolutely love this. Even if it is too CPU insensitive I'd just make a skyblock world and turn it into a tiny farm to have these guys around

2

u/jumbods64 17h ago

Oh thats sick as hell

2

u/CatPrince69 14h ago

Nice!!!!!

people have already said this but I hove nothing helpful to say... so uhhh make it not make pcs explode

like add performance fixes

its still really high quality tho :D

2

u/Glitch_1205 9h ago

ts so peak

1

u/Rockenpai 4d ago

Actually peak

1

u/geneyfarrell 4d ago

Definitely keep working on that pig because seeing it waddle around like that is honestly the cutest thing I have seen in a blocky world

1

u/Black_m1n 2d ago • Regret

Is this made with AI?

3

u/darkgamer2099 3d ago

I would like to be able to dismember them and manually cut them into pork chop and chicken wings

1

u/sauerkraut153 2d ago

the pig handstand killed me