
SilasOtoko
Members-
Posts
92 -
Joined
-
Last visited
Everything posted by SilasOtoko
-
[1.6.4] How to make an entity follow the player?
SilasOtoko replied to osum4est's topic in Modder Support
I've wanted to do something similar to this and I thought maybe I could make the mob target the player without hurting him? Also if anyone could figure out the piece of code that has a baby animal follow it's parent that might work too? -
Alright....I have no idea how to do this. I know to check for Instance of ..., but I do not know how to check the area at all. I looked into the mob spawner code to see how it checks for mob count but I can't figure it out.
-
Nice. I saw that you had a similar post to this awhile back so I'm glad it was you that answered.
-
[1.6.4]Fortune Doesn't Affect Custom Ore [*SOLVED*]
SilasOtoko replied to MetroidMan347's topic in Modder Support
Hey what was the fix for this? I can't seem to find another posting like this and I am having the same problem. -
Right now I have a custom mob that spawns during the night and doesn't despawn during the day, which is the way I want it. Problem is, more of the same mob continually spawn and soon take over an area. I'm using the method of Limiting spawns per Chunk to 1 and it only spawns in one at a time, but I'm still having this problem. How does vanilla minecraft keep mobs like cows and such from continually spawning in an area over time AND keeping the cows from despawning?
-
Custom Mob that Picks up Blocks like Endermen [Solved]
SilasOtoko replied to SilasOtoko's topic in Modder Support
I see now that I am extending EntityMob not EntityIronGolem so I probably could have just extended EntityEnderman. But fortunately I don't need to because your advice about the boolean range worked! I changed it to 4096 and so far the game has not crashed like it used to. I didn't take your advice at first because I wasn't having my Entity pick up an custom blocks, but it has fixed it all the same. Thanks citizenslave! -
Custom Mob that Picks up Blocks like Endermen [Solved]
SilasOtoko replied to SilasOtoko's topic in Modder Support
I appreciate your input guys. The reason I haven't extended EntityEnderman is because I've already extended entityIronGolem. Are you able to extend two classes at once? -
Custom Mob that Picks up Blocks like Endermen [Solved]
SilasOtoko replied to SilasOtoko's topic in Modder Support
Increasing the array to allow for custom blocks is nice and all, but what would you suggest if I am getting an error with the Entity carrying Vanilla blocks only? -
Custom Mob that Picks up Blocks like Endermen [Solved]
SilasOtoko replied to SilasOtoko's topic in Modder Support
Ughh...Everything works except now once in a while the game will crash when my mob is doing its block thing, not really sure at what point or what exactly causes the crash, but the error report says it's the OnLivingUpdate line of code involving the carryingBlocks. Supposed culprit line 163: Entity: Error Report: -
Custom Mob that Picks up Blocks like Endermen [Solved]
SilasOtoko replied to SilasOtoko's topic in Modder Support
It works! All I needed was the Rendering bits. Thank you! -
Custom Mob that Picks up Blocks like Endermen [Solved]
SilasOtoko replied to SilasOtoko's topic in Modder Support
Wow, I completely forgot to look at the Rendering. I'll check it out. -
So basically you are trying to cure bad potion effects with another potion effect?
-
Custom Mob that Picks up Blocks like Endermen [Solved]
SilasOtoko replied to SilasOtoko's topic in Modder Support
I did. If you look at the code I posted it is very identical to the enderman's code, minus the teleporting bits. It works fine, but the blocks don't appear in the arms of my mob like it does with the enderman. That's the part that I am trying to fix. -
Stupidity and ignorance are two different things. Would the function for adding curative items be used in the main or the new custom class? And from the way you wrote it, it seems as if the curative item would have to be added for each effect, instead of the cure-all for all the effects or am I wrong?
-
I created my own custom method for this in a new class while extending Potion Effects. I added in my new item but I'm not sure what else to do beyond that? It doesn't work at this point.
-
That's what I did though. I seem to have all the same code that the milk does, but it still doesn't work. I'm guessing there is some reference to it in another class that allows it to work the way it does.
-
This one I basically have working already. The Sapling is placed where it lands, but it would probably be better if I had it actually get planted and on the right block. Right now it gets placed on any block and on any side of the block. Not sure how to do a check for this within the Throwable Entity class. Actually, what I really wanted this to do originally was to act as bonemeal wherever it landed, Throwable Bonemeal. But I know that one is a bit more complicated so I settled on a sapling planter. Entity:
-
I wanted to make one of my custom items cure potion effects upon being eaten. I'm pretty sure I have everything written out correctly but it still doesn't cure the potion effects. Is there another element to this such as an event class? Item:
-
I'm working on making my custom mob pick up and place blocks just like endermen. I thought that I had all the parts that I needed to make this work, but I am not seeing the mob carry the blocks around. I see random blocks disappear near my mob and later possibly get placed, but it's hard to tell because I don't see my mob pick them up or carry them around or place them. Anyone have an idea of what I may have wrong or am missing? Entity: Model:
-
Issues trying to run Mod on Server 1.6.4 [Not Solved]
SilasOtoko replied to SilasOtoko's topic in Modder Support
Nevermind. It worked on the MCP server but once I tried it on the regular server it still doesn't work. I noticed that when I try reobfuscating the files, it tells me the server source is messed up and to run updatemd5. When I try running updatemd5 it just tells me to fix the server source first. Any help in fixing this? I haven't messed with any vanilla files, and it even gives me this error when I run a fresh MCP install. -
Issues trying to run Mod on Server 1.6.4 [Not Solved]
SilasOtoko replied to SilasOtoko's topic in Modder Support
I changed my @Init to @EventHandler and updated my imports. I'm not sure which of those two did it but it works now Thanks guys! -
Issues trying to run Mod on Server 1.6.4 [Not Solved]
SilasOtoko replied to SilasOtoko's topic in Modder Support
It's for minecraft 1.6.4 with forge build 897. Everything runs completely fine on single player. -
I have been trying to run my Mod on a server but I am running into some issues. Basically, almost nothing works. The other mods that I have installed work, and my mod works on single player, but nothing generates with my mod and when I try to use the items they disappear when I right click with them. Strangely enough the custom armor works fine, but that is about it. I do not get any errors either. Can anyone help me with this? Main: ClientProxy: CommonProxy:
-
Thanks guys. I appreciate the responses
-
I think I'll try the whole EntityThrowable route. My problem with just using ItemInteractionForEntity is that I don't have a World parameter to refer to for removing the entity. Unless you guys know a good class to extend for this situation?