-
Posts
785 -
Joined
-
Last visited
Everything posted by ItsAMysteriousYT
-
Searching for a NullPointer since two days!
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
Still the same this is my build.gtadle file: -
Searching for a NullPointer since two days!
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
Okay, thanks ill reply when i fixed it -
Searching for a NullPointer since two days!
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
Can i just download the latest forge src and do setupDecompWorkspace eclipse and copy the src folder in it? -
Searching for a NullPointer since two days!
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
There you go: -
HEy there, im having some problems with my EntityClass, it causes a nullpointer exception somehow, but it does not say where excactly. I made some sysouts nad found out that it is at the end of the on update method in the entitywheel class. But from there i don't know where. Here are the git links: EntityDriveable: https://github.com/ItsAMysterious/Real-Life-Mod-1.8/blob/master/src/main/java/itsamysterious/mods/reallifemod/core/vehicles/EntityDriveable.java EntityWheel: https://github.com/ItsAMysterious/Real-Life-Mod-1.8/blob/master/src/main/java/itsamysterious/mods/reallifemod/core/vehicles/EntityWheel.java
-
[1.7.10] Properties need to be set for SEUS shader transparency?
ItsAMysteriousYT replied to Frag's topic in Modder Support
The problem is not in your code, you would have to ask SonicEther too add your block too his shader code. Cuz the shaderdoes not look if a block is transparent, but which kind of block it is. E.g. if the block is glass, it makes it transparent. -
[1.7.10] Update render from 1.6.4
ItsAMysteriousYT replied to SantacreeperLP's topic in Modder Support
Please post the complete code, we're no wizards -
Congrats on that I have a supernice day today too! And for the damaging, do it on the server, it will sync to the client as far as i know.
-
Your welcome
-
IM SO STUPID: I HAVE TO SET MY BRAIN TO TRUE BEFORE I POST STUFF! public void toggleInteligence(){ Modder.brain.activate(); } Thanks anyway
-
Okay yea. So do you have a nice multiblock structure tutorial?
-
I have a problem with the boundingBOx of one of my blocks. It is larger than one by one which causes the player to glitch arround when colliding with it. Somehow the player collides at z=1 instead of z=1.5 as i wrote for maxZ. How can i fix this?
-
Depends on your goals. Since the Item need to be free and not inside the bounds of the block i recommend making pos.getX()-0.61 & pos.getZ()-0.61. This will spawn the item slightly outside the blockbounds.
-
That is easy, make a local field of type entity item as you did in spawnInWorld and set the rotationYaw to - event.player.rotationYaw.
-
Now, my mistake - show where you make the spawnEntityInWorld for the item
-
[1.7] sometimes TileEntity doesn't sync with server
ItsAMysteriousYT replied to MrRiegel's topic in Modder Support
I think its cuz when some values where saved to the client, but not too the server and markForUpdate is called on the block, it check wether the values are on the server and if not, it sets them too the values from the server on the client? -
Show your entityItem class.
-
Ah - that explains why my EntityInteractEvent does not work too Thanks diesieben07!
-
mobs spawned with spawnEntityInWorld disappear.
ItsAMysteriousYT replied to esgeroth's topic in Modder Support
Try too only check the worldObj.isRemote for the spawning. Leave the other code outside of the iff check. -
As i said in the title, i have some problems letting my custom controlled vehicle entity drive up blocks. I tried to achieve this like this: int x=Math.sin(Math.toRadians(rotationYaw); int z=Math.cos(Math.toRadians(rotationYaw); if(worldObj.getBlockState(this.getPosition.add(x,0,z)).getBlock() !=Blocks.air &&worldObj.getBlockState(this.getPosition.add(x,1,z)).getBlock() ==Blocks.air){ motionY=1; }else { double fullspeed=Math.sqrt((motionX*motionX)+(motionY*motionY)); this.applydamage(fullspeed); } But what happens is that the entity is inside of the block and then outside of the world. I think something is wrong with the collision somehow. cuz the entity does not collide with blocks or entities. Also i think in my movement algorythm is something wrong(in the onUpdate() method), but i can't figure it out. This is the complete entitity class(Without the driveup blocks stuff): http://pastebin.com/yRgNA0Vm Thanks for taking the time too help me