Jump to content

Help
Latest News Article

[1.7.3] Peach Dudes! (V2)


198 replies to this topic

#1

Posted 01 June 2011 - 08:24 PM

Delivery is NOT included!
Posted Image

Peach Dudes V2 for Beta 1.7.3 by KodaichiZero
All coding and graphics by KodaichiZero. Sounds edited from TF2, Inspiration from Peach0815's avatar, which was in turn created by Bosch.

A very nice showcase by Thescorpi0n!

- - - - -


If there's one thing they make well in Canada, it's peaches. During the summertime in the Niagara region, lots of peach groves all over the countryside start producing the ripest, juiciest peaches you'll ever find. But things are different in Minecraftia. There are peaches that grow from trees just about anywhere, but there's just one problem - Those peaches are alive, and not too keen on being eaten! In fact, catching them can be quite a difficult task! You want to learn how to catch a delicious Minecraftian peach for yourself? Well, just keep reading this thread and you'll be slurping up a delicious Peach Sundae in no time!

Posted Image

Minecraftian peaches, or "Peach Dudes", grow in just about any tree. Regardless of the type, if the block is a leaf block, then you can find a peach growing under there. They are a bit rare, so you may have to search for a while before you find one. Once you do find one, you'll notice that it hangs silently from the leaves, seemingly lifeless. Looks just like a regular peach, right? Well, go ahead and try to take it!

Posted Image

Told you they weren't regular peaches! When you try to take a Peach Dude from its home, he'll scream in terror and run as fast as he possibly can away from you. Don't just stand there, chase after it! He's small, speedy, and makes a "boing" noise as he hops away from you. If you're not fast enough, he'll escape from your clutches and find another tree to hang off of, restoring all of his health.

Posted Image

Once you catch up to the Peach Dude or manage to corner him, don't show any mercy! He may have a cute face, but behind that is nothing but pure deliciousness! He'll use any means possible to escape, so beat him down with whatever weapons you have until he surrenders and turns into an item resource:

Posted Image

Congratulations, you've just caught your first Minecraftian Peach! Just like a regular food item, you can right-click it to heal 1.5 hearts. It's best to eat it inside though, because there is a 50% chance he will escape from your hand and run away again! But why would you want to eat a peach just like that? That would be a waste, because there's a way you can make it much more delicious! Using three peaches, a milk bucket and a handful of sugar, you can craft the most delicious summer treat you can imagine - a Peach Sundae!

Posted Image

Though it takes a lot of effort to create, a peach sundae heals a full 10 hearts. It's also low in fat, and great for parties! So now that you know everything you need to know about Peach Dudes, make sure to invite your friends over for a few peach sundaes, and tell 'em all about the time you caught your first peach. But make sure to bring plenty of ear plugs and sunscreen - chances are you're going to be spending most of your days out in the blazing sun trying to chase them down. And they really, REALLY know how to scream!

- - - - -


Summary of Abilities:
    Very small entity, spawns underneath leaf blocks
    Has 10 HP
    Runs away when hit, or when leaf block is destroyed
    Screams when hit, frightened, or killed
    Makes a "boing" noise each time it hops
    Drops a peach item when killed
    Heals 1.5 hearts when eaten, but has 50% chance of running away
    Can be crafted into a Peach Sundae
    Runs from player on sight, or anything that attacks it.

Issues:
    - Spawns are a little bit rare, but their render distance is increased to make them easier to find.
    - They have trouble swimming sometimes.
    - Post anything else you find!

SPC Info:
    - "Suspicious Looking Peach" = 6942
    - "Peach Sundae" = 6943
    - To summon manually - "/spawn peachdude"

Instructions:
    - You must first install Risugami's Mod Loader and Audio Mod before this mod will work. Please do not attempt to install old versions of the mod loader into the 1.7.3 client.
    - If you are using a Mac computer, search for a special Mac installation tutorial if you have problems installing the mod. "Minecrafter" or something like that might work.
    - Once you've successfully installed the requirements above, simply follow the instructions included in the zip, or alternatively places all files in the "mods" folder. But I'm not entirely sure if the second method works.


Downloads:
Support the Mod
    If you want to put this banner in your signature to help the mod out:
    Posted Image
    Then copy/paste this code into your signature on your profile options:
    [url=http://www.minecraftforum.net/topic/354933-166-peach-dudes-chasable-mob-v1/][img]http://i.imgur.com/OhGcR.png[/img][/url]

Donate: ...only if you want to!
Posted Image

Make sure to turn your sound level down before playing!

Posted Image
For Single and Multiplayer!


Register or log in to remove.

#2

  • Location: Under Your Bed
  • Minecraft: freddie11234

Posted 01 June 2011 - 08:30 PM

Lol, I like the sundae idea, this is pretty cool. (I didn't know peaches grows on trees...)

View Postasyx1911, on 06 August 2011 - 10:13 PM, said:

THE HAMMER OF SUPRISE BUTT F##K


#3

  • Location: California
  • Minecraft: Frizkie

Posted 01 June 2011 - 08:34 PM

Ha, this is brilliant! I love the way you presented everything. I hate to jump on you for the source, but.. I will. Do you code in MCP? If you don't then don't worry about it, I can't read unobfuscated code for the life of me.

EDIT: I'd like to clarify that I'm not interested in copying you, mostly about the running away from the player part, as well as the attaching/reattaching to trees.

EDIT2: Wait, I didn't even look at your username. You made the bellthorn mod. You do use MCP! I envy your ability to make these brilliant mobs...

Posted Image


#4

Posted 01 June 2011 - 08:46 PM

View PostFrizkie, on 01 June 2011 - 08:34 PM, said:

Ha, this is brilliant! I love the way you presented everything. I hate to jump on you for the source, but.. I will. Do you code in MCP? If you don't then don't worry about it, I can't read unobfuscated code for the life of me.

EDIT: I'd like to clarify that I'm not interested in copying you, mostly about the running away from the player part, as well as the attaching/reattaching to trees.

Alright, sure. I do code in MCP, so you're lucky :)

I actually made a very generic method to make the entity run away from another one. It works with pretty much anything besides steep hills or drops - they won't climb up a big wall or jump off a cliff. Other than that, it's pretty generic and should work for just about anything.

http://pastie.org/2005334

ignore my silly variable names :P

While this does require that your entity extends EntityCreature or deeper, I do not suggest using playerToAttack as the entity you're running from.

Posted Image
For Single and Multiplayer!


#5

  • Location: California
  • Minecraft: Frizkie

Posted 01 June 2011 - 08:55 PM

View PostKodaichiZero, on 01 June 2011 - 08:46 PM, said:

Alright, sure. I do code in MCP, so you're lucky :)

I actually made a very generic method to make the entity run away from another one. It works with pretty much anything besides steep hills or drops - they won't climb up a big wall or jump off a cliff. Other than that, it's pretty generic and should work for just about anything.

http://pastie.org/2005334

ignore my silly variable names :P

While this does require that your entity extends EntityCreature or deeper, I do not suggest using playerToAttack as the entity you're running from.

EXCELLENT. Thank you!

Posted Image


#6

  • Location: Usa FL
  • Minecraft: Blanzer

Posted 01 June 2011 - 08:58 PM

This is a very nice mod. :Notch:
I support
Spoiler

Brony since 10/13/11
Posted Image

#7

  • Location: United States of America
  • Minecraft: Kurtisk1

Posted 01 June 2011 - 08:59 PM

Amazing as always.
Also do you get the bucket back from it?
I'm quite the shady customer.

HAL said:

I'm sorry, Dave. I'm afraid I can't do that.

#8

Posted 01 June 2011 - 09:11 PM

Dude this is soooo cool! If you make more mobs(like apples fx) i could help you make sum cool textures for it if you wanted. Any way downloadin' now look awesome!!! :iapprove:
Posted Image

#9

    Jgpony

    Tree Puncher

  • Members
  • 15 posts

Posted 01 June 2011 - 09:16 PM

Loving it! I play o 1.6.5, and it still works :)

#10

Posted 01 June 2011 - 09:45 PM

View PostJgpony, on 01 June 2011 - 09:16 PM, said:

Loving it! I play o 1.6.5, and it still works :)

Was made using 1.6.5, but tested in 1.6.6. It works fine between those two versions. Probably won't work with anything earlier though.

Posted Image
For Single and Multiplayer!


#11

    iRune

    Redstone Miner

  • Members
  • 611 posts
  • Location: Wheatly Laboratories

Posted 01 June 2011 - 09:54 PM

WHY DO I KEEP MISSING KODAICH MODS??!! lol, I missed the bellthorns but i saw it on utube now this, i found it by the side of the mod name lol, another great mod :D
Posted Image

#12

  • Location: California
  • Minecraft: Frizkie

Posted 01 June 2011 - 10:08 PM

View PostCreeper in your bed, on 01 June 2011 - 08:59 PM, said:

Amazing as always.
Also do you get the bucket back from it?

It's hard coded, so whenever you use a bucket in a crafting recipe it won't eat it up. This applies to all recipies by the way, it's not something that the modder needs to add.

EDIT: I almost forgot, what about the stuff with the entity attaching/reattaching to a tree? Would you mind sharing that?

EDIT: I also have another question. What actually makes the entity select blocks to path to AWAY from the chasing entity? I don't really see anything that would do that - it's just picking nearby points.

Posted Image


#13

Posted 01 June 2011 - 10:41 PM

View PostFrizkie, on 01 June 2011 - 10:08 PM, said:

It's hard coded, so whenever you use a bucket in a crafting recipe it won't eat it up. This applies to all recipies by the way, it's not something that the modder needs to add.

EDIT: I almost forgot, what about the stuff with the entity attaching/reattaching to a tree? Would you mind sharing that?

EDIT: I also have another question. What actually makes the entity select blocks to path to AWAY from the chasing entity? I don't really see anything that would do that - it's just picking nearby points.

The tree stuff only works because of the mob's small size. It checks every frame to see if the mob has collided vertically (isCollidedVertically), makes sure the mob is traveling in an upwards direction (posY - prevPosY), and checks the block it is on, one block above it, and 0.5 blocks below it. Since the mob is small, the block 0.5 blocks below it will be the same as its current block when it's in the upper half of a block. If all those conditions are satisfied, I set a few switches and disable onLivingUpdate so it won't be affected by gravity and won't move. I had to process its age status manually so it has a chance to despawn naturally. Basically, it's really complicated and I don't expect you to understand any of it.

And as for selecting AWAY - you'd have to understand trigonometry to see how that works. I use Math.atan2 with the X and Z displacements to calculate the angle that points away from the player. I modify the angle by a small random amount, then adjust the center destination point by 8 blocks in the calculated direction. After that, I choose a random air block near that point which has ground below it, and ask the game to give me a path to that point. If I'm able to get a path, the entity is set to follow it. If I'm NOT able to get a path, the entity just sits there and stares innocently at the player. This usually means it's either cornered or trapped on the edge of a cliff.

Posted Image
For Single and Multiplayer!


#14

  • Location: California
  • Minecraft: Frizkie

Posted 01 June 2011 - 11:09 PM

View PostKodaichiZero, on 01 June 2011 - 10:41 PM, said:

The tree stuff only works because of the mob's small size. It checks every frame to see if the mob has collided vertically (isCollidedVertically), makes sure the mob is traveling in an upwards direction (posY - prevPosY), and checks the block it is on, one block above it, and 0.5 blocks below it. Since the mob is small, the block 0.5 blocks below it will be the same as its current block when it's in the upper half of a block. If all those conditions are satisfied, I set a few switches and disable onLivingUpdate so it won't be affected by gravity and won't move. I had to process its age status manually so it has a chance to despawn naturally. Basically, it's really complicated and I don't expect you to understand any of it.

And as for selecting AWAY - you'd have to understand trigonometry to see how that works. I use Math.atan2 with the X and Z displacements to calculate the angle that points away from the player. I modify the angle by a small random amount, then adjust the center destination point by 8 blocks in the calculated direction. After that, I choose a random air block near that point which has ground below it, and ask the game to give me a path to that point. If I'm able to get a path, the entity is set to follow it. If I'm NOT able to get a path, the entity just sits there and stares innocently at the player. This usually means it's either cornered or trapped on the edge of a cliff.

No, the whole tree thing does make sense. It's pretty creative actually. As for the movement away: I'm mostly aware of what arctan2 (it converts to polar coordinates, correct?), I just didn't make the connection that it was selecting a point relative to the player.

Excellent work and thanks for the insight :D

Posted Image


#15

  • Location: on a beach
  • Minecraft: bigmike84

Posted 01 June 2011 - 11:32 PM

canada....peaches? im from florida and id say georgia has the peach industry on lock...still a fun looking mod tho lol

#16

Posted 02 June 2011 - 12:38 AM

Well, I'm not entirely sure if that information is correct, it's just something I overheard a while ago. I'm not even that big of a fan of peaches either, I'm just hyping up the mod and making it more exciting :P I will try a Georgia peach soon, however.

Posted Image
For Single and Multiplayer!


#17

Posted 02 June 2011 - 05:05 AM

So guys... I'm starting to get nervous here. Usually around this time is when I start getting a bunch of requests for additional features... Some guy wanted to do more fruit or apples, but of course I'm going to need some kind of a better reason to add that. Variety for the sake of variety is mostly pointless.

Maybe I just thought it out well enough this time? I mean, I almost didn't include a peach sundae because I was lazy, but then I thought about how much pleasure it would bring people to know that they could make some kind of super treat out of the peaches instead of just eating them. And it was fun to make the graphics. Heck, the whole mod was pretty fun to do. It was basically inspired by the one guy's avatar, but the real reason I did it was an excuse to finally make the AI for a mob that runs away from the player. To date, only two other mobs that I know of can be said to do that. The Red Creepers kind of did it, but I mostly cheated by directly modifying their speed. And DrZhark's birds do it too, but they don't RUN away, they FLY away.

In any case, I guess I should consider the mod a success. But I won't. Because this thread still has less than a page of posts T_T

I really hope we get some videos up for this mod soon so I can advertise it a little more easily.

And no, I don't really care about adfly. I'm never going to make any money off of it anyway. One of these days I'm gonna pitch a mod to Mojang. Not this one, and maybe not the next one. But I will get a mod into the vanilla game because that's been my dream ever since I started in November. I know I can do it. I just have no idea what mod it will be.

Posted Image
For Single and Multiplayer!


#18

  • Location: In the Nether, studying mods.

Posted 02 June 2011 - 06:24 AM

Nice mod. The AI could be used for quite a few new creatures. All that needs to be confirmed now is whether wolves make the task of peach-hunting substansiously easier.

#19

  • Location: Germany
  • Minecraft: Peach0815

Posted 02 June 2011 - 12:41 PM

Wuhuuu ^o^ Thats so cute x33
*download* xD
Posted Image

#20

Posted 02 June 2011 - 02:14 PM

View PostPentigan, on 02 June 2011 - 06:24 AM, said:

Nice mod. The AI could be used for quite a few new creatures. All that needs to be confirmed now is whether wolves make the task of peach-hunting substansiously easier.

It probably does, but if you're not careful, you'll lose your wolves :P

Posted Image
For Single and Multiplayer!