sciguy1121 / Community-Mod-1

Community Mod 1
GNU Lesser General Public License v3.0
10 stars 16 forks source link

Mobs (Robot) #126

Closed EliSussman closed 11 years ago

EliSussman commented 11 years ago

Is anyone experienced with making mobs? I need help making a craft-able mob (like golems) and making it spawn (from a spawn egg and in world)

Techtad commented 11 years ago

I haven't been working much with mobs, but I can try to make an AI for the robot. I think it would be a fun thing to do in a break of making the GCEU system, which is really boring right now.

EliSussman commented 11 years ago

That would be awesome, do you know how to do those things I asked about?

Techtad commented 11 years ago

Well. I know how would I do that, but I think there's a better way that I don't know, so no.

EliSussman commented 11 years ago

oh, well thats all we need to do. If you want to know more about how the robot should act just ask me, it should be a golem made of silicon blocks like an iron golem and it should be afraid of water and attack on sight :)

Techtad commented 11 years ago

Well, I had a different idea for it. I had an idea to be able to give him tools, like if you give him a sword, he will fight, if you give him a pick, he will mine, axe to chop down trees, etcetera. But the mining would be kinda overpowered, so I thought we would need to give him some fuel.

But your idea is simpler and faster to make. Also, should the robot spawn already, because it doesn't do that for me.

EliSussman commented 11 years ago

I can't get it to spawn with the egg or without so I dont know about that, my code looks right but it might be changes with 1.5, I already checked the other classes for mobs, but we are supposed to make it with silicon blocks (not in crafting table, on the ground) like an iron golem anyway so it shouldnt spawn already, also I like the idea of giving it tools and especially swords to fight for you :)

Techtad commented 11 years ago

Well, I personally think that crafting it would be better that placing silicon blocks, because it's a mechanical robot, made with a lot of complicated circuits inside, not a magical silicon golem. The compromise here is to make some special machine blocks. So you don't make it out of pure silicon, you make it with blocks that have some chips and circuits in it's recipe. That would be more realistic.

EliSussman commented 11 years ago

Okay, we already have silicon wafer, silicon chips, silicon blocks, cables, and batteries. Those should work for now but we should make a mechanical crafting table or maybe just use the advanced crafting table, anyway, what can I do for now to help out with it?

sciguy1121 commented 11 years ago

@smigolpol @KingCreeperEli Once we get the dimension working, should the robot spawn there?

EliSussman commented 11 years ago

I think a person should make it and use for defense. It will be done tomorrow, I totally redoing it

EliSussman commented 11 years ago

@smigolpol @sciguy1121 Lets make a craftable robot (like a spawn egg that spawns the robot)that when you spawn will kill things for you :)

sciguy1121 commented 11 years ago

@KingCreeperEli Sounds good, I think we should have different kinds of robots, that perform different tasks (maybe differentiated by color?).

EliSussman commented 11 years ago

Right now lets just create the 1 robot and 1 model, I think we should be able to give the robot items like swords and tools

EliSussman commented 11 years ago

Do you know how to make a item with code for a spawn egg so we can spawn the robot from the model?

EliSussman commented 11 years ago

Also how do we fix the name on the spawn egg?

EliSussman commented 11 years ago

@sciguy1121 @smigolpol So those are the issues im currently tackling.... Any ideas?

sciguy1121 commented 11 years ago

@KingCreeperEli Is there anything in the ItemSpawnEgg class?

EliSussman commented 11 years ago

I cant find it... do you know what package its in? I want to use the code to give the robot model the same characteristics as a spawn egg

EliSussman commented 11 years ago

Can someone make the robot model into a spawn egg type item using the code in spawn egg?

ghost commented 11 years ago

Just found a bug, when you try to stack the Robot Model, it gives you only one.

Techtad commented 11 years ago

@staticboy123 I don't think that's a bug.

I found the spawn egg item class, it is called ItemMonsterPlacer. I'm going to look at that code and see if it'll work.

ghost commented 11 years ago

Also happens with silicon chip and cosileadium. But from what you said, I don't think you understand what I am saying. Try to stack one of the items that I mentioned, and you will understand.

ghost commented 11 years ago

For some reason I cannot recreate it now. Weird

Techtad commented 11 years ago

@staticboy123 They stack perfectly normally, are you sure you have the right version of this repository?

OK. I made the model spawn the actual robot, but it actually spawns it inside blocks... I'll figure that out and then I'll make a pull request about it.

Techtad commented 11 years ago

OK. I finished the model item, but I don't have time to make the pull request right now, so I'm just leting you know that it's done.

I'll make the pull request tomorrow.

ghost commented 11 years ago

After some testing, it seems that the stacking problem only happens when a chest is open, and not all of the time. I noticed that the items it happens to are also unable to be shift clicked, so they may be related. Anyways, I need to go for probably the whole day, maybe less time, but I will not be programming for a bunch of hours.

Also I was playing around with the Robot Spawn Egg and found that putting a lot of them down can be very entertaining, as they attack each other. I realized that if the robots are very useful, something will have to be done to ensure they are not spawned with something like soul shards. That is much farther down the line though, so it is not really something to worry about I guess.

Techtad commented 11 years ago

@staticboy123 Ah.... I get the problem and I found why it happens, it is because those items spawn in stack size of random.nextInt(2), which includes 0. So it sometimes randomly chooses 0 and that's the problem. I'll fix that.

EliSussman commented 11 years ago

I fixed the name of the robot spawn egg to say "Spawn Robot" but now there are 2 spawn eggs in the creative menu...

Techtad commented 11 years ago

@KingCreeperEli I noticed 2 spawn eggs before you fixed the name too...

EliSussman commented 11 years ago

Spawn Eggs FIXED

EliSussman commented 11 years ago

@sciguy1121 @staticboy123 @smigolpol do any of you know why the robot attacks all hostile mobs except creepers?

Techtad commented 11 years ago

@KingCreeperEli Maybe he's smart? : ) I don't see much general differences in the code for creeper and a skeleton or zombie. I'll implement that better AI soon, if we want him to attack creepers, we should make him use range attacks against them, otherwise it would be a suicide every time.

EliSussman commented 11 years ago

@smigolpol Good point, I guess we should leave it like that :)

Techtad commented 11 years ago

@KingCreeperEli For now. but I'll be working on it. I think it's even the next on my list.

EliSussman commented 11 years ago

@smigolpol Thanks, but it doesn't need to be to high a priority for you, its not like it really matters, noone is doing lets plays of it yet :)

EliSussman commented 11 years ago

@smigolpol Any news on the connected textures?

Techtad commented 11 years ago

As far as I got for now, experimenting with connected textures is very time-consuming and boring, making and testing AIs would be more entertaining for me now. I think I'm going to do that now.

EliSussman commented 11 years ago

@smigolpol Okay :) Is there anything I can texture or help with or research or something? :)

DeathSeeker512 commented 11 years ago

Here is an idea, we can make a block that allows you to craft microchips that control the robot's ai. so if a robot is crafted with chip 1 it will do x.

DeathSeeker512 commented 11 years ago

@sciguy1121 I do think that the original reason why this was posted is now implemented, unless of course I am from the future where you guys have already made the robot

sciguy1121 commented 11 years ago

@DeathSeeker512 Seems so