Jump to content

david476

Members
  • Posts

    238
  • Joined

  • Last visited

Everything posted by david476

  1. could someone refence me to a vanilla example of this, I can't figure out how to search through the forgesrc library.
  2. look into the folder structure for vanilla, don't know off hand
  3. How do I set it's NBT, there is a function that uses nbt but it does not have a proper name.
  4. If it matters the variable could actually be anything but a float would lessen the amount of programming I have to do
  5. just a float, it gets set after Tile Entity creation and should stay the same until the Tile Entity is deleted. The variable does get set client side on creation but not on world load.
  6. how would I go about doing that
  7. Try overriding the entity methods that allow dismount or save the player and force it to mount over and over in onUpdate
  8. Is there a way to use Datawatchers in a Tile Entity, I think my variable might not be loaded clientside on world load.
  9. thanks!
  10. How do you give a block a specific ID? All I have for my super parameters is material.
  11. So it's working but your entity gets teleported to newly spawned ones. Could I see your spawning code?
  12. post the crash. Also, you might want to just set the time for potion effects low so that you don't have to clear all effects
  13. Make sure the datawatcher is only set on the server (!this.worldObj.isRemote). I'm going to bed, I'll check in in the morning!
  14. let me know if you have problems, don't forget to thankyou button if it works!
  15. Thank you! Works like a charm!!!
  16. If what I suggested doesn't work I'll look at it some more. DataWatchers are entity specific which is why I suggested them. You mentioned "And how do i even set my tail wont spawn anymore if the condition changes" problem. If you store the value in a variable and prevent the variable from getting set if it is already false then that won't happen. E.G. public boolean tailisvisible; onUpdate() { if (tailisvisible && this.getMaxHealth() < 1500) { tailisvisible = false } }
  17. I use something like: if (!world.isRemote) { sEntity = new EntityController(world); sEntity.setPosition(x + 0.5, y + 1, z + 0.5); float fYaw = DEBClasses_v1.fourRotations(entity.rotationYaw); sEntity.rotationYaw = fYaw; sEntity.sX = x; sEntity.sY = y; sEntity.sZ = z; world.spawnEntityInWorld(sEntity); } might help, definitly works for me with setPosition
  18. if i delete the Entity and make it public the entity does not seem to be saved. do i need to add the super.s again or something else? (still have the @Override)
  19. I can look more closely at the code if you want but try using a DataWatcher to update the variable clientside and then have the renderer check that. Also, add a if() statement to your showTail() method to check if the variable is true, that should prevent it from switching from false to true.
  20. figured it out, didn't like being in the NBT method. used: if (!active && !this.worldObj.isRemote && sX + sY + sZ != 0 && this.worldObj.getBlock(sX, sY, sZ) instanceof BlockController) { BlockController sBlock = (BlockController) this.worldObj.getBlock(sX, sY, sZ); sBlock.sEntity = this; System.out.println(sX + " " + sY + " " + sZ); } in onUpdate could you please tell me what methods you are supposed to use for NBT?
  21. Paste everything, this is confusing. Sounds like you might be using a static variable or server->client data transfer wrong. Again, show us it all.
  22. Let me know what those are, still a bit of a newb, but not the problem. I deleted the super.blahs, not supposed to be there, and isolated the problem to: if (this.worldObj.getBlock(sX, sY, sZ) instanceof BlockController) { I'm crashing on load with (saving seems fine): [22:18:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [22:18:09] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [22:18:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [22:18:09] [main/INFO] [FML]: Forge Mod Loader version 7.2.209.1112 for Minecraft 1.7.2 loading [22:18:09] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_60, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7 [22:18:09] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [22:18:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [22:18:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [22:18:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [22:18:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [22:18:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [22:18:09] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [22:18:09] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/DEB/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1112/forgeSrc-1.7.2-10.12.1.1112.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [22:18:09] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [22:18:09] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/DEB/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.1.1112/forgeSrc-1.7.2-10.12.1.1112.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [22:18:09] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [22:18:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [22:18:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [22:18:09] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [22:18:10] [main/INFO]: Setting user: Player946 [22:18:10] [Client thread/INFO]: LWJGL Version: 2.9.0 [22:18:11] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [22:18:11] [Client thread/INFO] [FML]: MinecraftForge v10.12.1.1112 Initialized [22:18:11] [Client thread/INFO] [FML]: Replaced 182 ore recipies [22:18:11] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [22:18:11] [Client thread/INFO] [FML]: Searching C:\Users\DEB\Desktop\Modding\forge-1.7.2-10.12.1.1112\Forge\mods for mods [22:18:11] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW! [22:18:12] [Client thread/INFO] [debcore]: Mod debcore is missing the required element 'name'. Substituting debcore [22:18:12] [Client thread/INFO] [debmodularships]: Mod debmodularships is missing the required element 'name'. Substituting debmodularships [22:18:12] [Client thread/INFO] [FML]: Forge Mod Loader has identified 6 mods to load [22:18:12] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:debcore, FMLFileResourcePack:debmodularships [22:18:12] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [22:18:12] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [22:18:12] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [22:18:12] [Client thread/INFO] [FML]: Applying holder lookups [22:18:12] [Client thread/INFO] [FML]: Holder lookups applied Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [22:18:13] [sound Library Loader/INFO]: Sound engine started [22:18:13] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas [22:18:13] [Client thread/INFO]: Created: 256x256 textures/items-atlas DIRT BLOCK >> tile.dirt [22:18:13] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 6 mods [22:18:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Example Mod, FMLFileResourcePack:debcore, FMLFileResourcePack:debmodularships [22:18:13] [Client thread/INFO]: Created: 256x256 textures/items-atlas [22:18:13] [Client thread/ERROR]: Using missing texture, unable to load minecraft:textures/blocks/MISSING_ICON_BLOCK_165_controllerblock.png java.io.FileNotFoundException: minecraft:textures/blocks/MISSING_ICON_BLOCK_165_controllerblock.png at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:626) [Minecraft.class:?] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:585) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] [22:18:13] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas SoundSystem shutting down... Author: Paul Lamb, www.paulscode.com Starting up SoundSystem... Initializing LWJGL OpenAL (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) OpenAL initialized. [22:18:14] [sound Library Loader/INFO]: Sound engine started [22:18:15] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms [22:18:18] [server thread/INFO]: Starting integrated minecraft server version 1.7.2 [22:18:18] [server thread/INFO]: Generating keypair [22:18:18] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [22:18:18] [server thread/INFO] [FML]: Applying holder lookups [22:18:18] [server thread/INFO] [FML]: Holder lookups applied [22:18:18] [server thread/INFO] [FML]: Loading dimension 0 (Copy of Copy of Copy of Copy of) (net.minecraft.server.integrated.IntegratedServer@1ca7ddb6) [22:18:18] [server thread/INFO] [FML]: Loading dimension 1 (Copy of Copy of Copy of Copy of) (net.minecraft.server.integrated.IntegratedServer@1ca7ddb6) [22:18:18] [server thread/INFO] [FML]: Loading dimension -1 (Copy of Copy of Copy of Copy of) (net.minecraft.server.integrated.IntegratedServer@1ca7ddb6) [22:18:18] [server thread/INFO]: Preparing start region for level 0 works works [22:18:19] [Netty Client IO #0/INFO] [FML]: Server protocol version 1 [22:18:19] [Netty IO #1/INFO] [FML]: Client protocol version 1 [22:18:19] [Netty IO #1/INFO] [FML]: Client attempting to join with 6 mods : [email protected],[email protected],[email protected],[email protected],[email protected],[email protected] [22:18:19] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [22:18:19] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER [22:18:19] [server thread/INFO] [FML]: [server thread] Server side modded connection established [22:18:19] [server thread/INFO]: Player946[local:E:f3bfc389] logged in with entity id 21 at (-214.4576945781136, 4.0, 1748.4120463587542) [22:18:19] [server thread/INFO]: Player946 joined the game [22:18:19] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [22:18:20] [server thread/INFO]: Saving and pausing game... [22:18:21] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/Overworld [22:18:21] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/Nether [22:18:21] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/The End [22:18:21] [server thread/INFO]: Stopping server [22:18:21] [server thread/INFO]: Saving players [22:18:21] [server thread/INFO]: Saving worlds [22:18:21] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/Overworld [22:18:21] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/Nether [22:18:21] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/The End [22:18:21] [server thread/INFO] [FML]: Unloading dimension 0 [22:18:21] [server thread/INFO] [FML]: Unloading dimension -1 [22:18:21] [server thread/INFO] [FML]: Unloading dimension 1 [22:18:21] [server thread/INFO] [FML]: Applying holder lookups [22:18:21] [server thread/INFO] [FML]: Holder lookups applied [22:18:23] [server thread/INFO]: Starting integrated minecraft server version 1.7.2 [22:18:23] [server thread/INFO]: Generating keypair [22:18:23] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [22:18:23] [server thread/INFO] [FML]: Applying holder lookups [22:18:23] [server thread/INFO] [FML]: Holder lookups applied [22:18:23] [server thread/INFO] [FML]: Loading dimension 0 (Copy of Copy of Copy of Copy of) (net.minecraft.server.integrated.IntegratedServer@64bffa81) [22:18:23] [server thread/INFO] [FML]: Loading dimension 1 (Copy of Copy of Copy of Copy of) (net.minecraft.server.integrated.IntegratedServer@64bffa81) [22:18:23] [server thread/INFO] [FML]: Loading dimension -1 (Copy of Copy of Copy of Copy of) (net.minecraft.server.integrated.IntegratedServer@64bffa81) [22:18:23] [server thread/INFO]: Preparing start region for level 0 works works works [22:18:23] [Netty Client IO #1/INFO] [FML]: Server protocol version 1 [22:18:23] [Netty IO #3/INFO] [FML]: Client protocol version 1 [22:18:23] [Netty IO #3/INFO] [FML]: Client attempting to join with 6 mods : [email protected],[email protected],[email protected],[email protected],[email protected],[email protected] [22:18:23] [Netty IO #3/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [22:18:23] [Netty Client IO #1/INFO] [FML]: Attempting connection with missing mods [] at SERVER [22:18:24] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [22:18:24] [server thread/INFO] [FML]: [server thread] Server side modded connection established [22:18:24] [server thread/INFO]: Player946[local:E:32c84d36] logged in with entity id 13436 at (-214.4576945781136, 4.0, 1748.4120463587542) [22:18:24] [server thread/INFO]: Player946 joined the game [22:18:26] [server thread/INFO]: Saving and pausing game... [22:18:26] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/Overworld [22:18:26] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/Nether [22:18:26] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/The End [22:18:27] [server thread/INFO]: Stopping server [22:18:27] [server thread/INFO]: Saving players [22:18:27] [server thread/INFO]: Saving worlds [22:18:27] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/Overworld [22:18:27] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/Nether [22:18:27] [server thread/INFO]: Saving chunks for level 'Copy of Copy of Copy of Copy of'/The End [22:18:27] [server thread/INFO] [FML]: Unloading dimension 0 [22:18:27] [server thread/INFO] [FML]: Unloading dimension -1 [22:18:27] [server thread/INFO] [FML]: Unloading dimension 1 [22:18:27] [server thread/INFO] [FML]: Applying holder lookups [22:18:27] [server thread/INFO] [FML]: Holder lookups applied [22:18:28] [Client thread/INFO]: Stopping! SoundSystem shutting down... Author: Paul Lamb, www.paulscode.com EDIT the two lines of code under that too variables are set to correct location
  23. Look into what were called core mods. Don't know how to do it off hand.
  24. does this not write to it??? @Override protected void writeEntityToNBT(NBTTagCompound nbt) { super.writeToNBT(nbt); nbt.setInteger("sX", sX); nbt.setInteger("sY", sY); nbt.setInteger("sZ", sZ); nbt.setBoolean("active", active); }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.