Jump to content

Setrion

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by Setrion

  1. Oh.. i have to register them first.. It's so simple, but now it works Thank you very much for your help
  2. Hey Guys, me again I tried to create a "glint" particle for my golden trees all of this works perfectly, but the particles don't have a texture there's these "missing texture" thing everwhere my particle should be shown The code of my Particle: package com.setrion.koratio.particles; import com.setrion.koratio.main.Koratio; import net.minecraft.client.Minecraft; import net.minecraft.client.particle.Particle; import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; public class ParticleGlint extends Particle { private int i; private int i2; public ParticleGlint(World world, double x, double y, double z, double f, double f1, double f2) { this(world, x, y, z, 1.0F, f, f1, f2); } public ParticleGlint(World world, double x, double y, double z, float f, double f1, double f2, double f3) { super(world, x, y, z, 0.0D, 0.0D, 0.0D); motionX *= 2.10000000149011612D; motionY *= 2.10000000149011612D; motionZ *= 2.10000000149011612D; particleRed = particleGreen = 1.0F * f; particleRed *= 0.9F; particleBlue = 0.0F; particleScale = 1.0f + (rand.nextFloat() * 0.6f); particleScale *= f; i = particleMaxAge = 10 + rand.nextInt(21); particleMaxAge *= f; i2 = i / 2; canCollide = true; this.setParticleTexture(Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite(new ResourceLocation(Koratio.modid, "particle/glint").toString())); } @Override public void renderParticle(BufferBuilder buffer, Entity entity, float partialTicks, float rotationX, float rotationZ, float rotationYZ, float rotationXY, float rotationXZ) { particleAlpha = getGlowBrightness(); super.renderParticle(buffer, entity, partialTicks, rotationX, rotationZ, rotationYZ, rotationXY, rotationXZ); } @Override public void onUpdate() { if (i <= 1) { setExpired(); } else { i--; } } public float getGlowBrightness() { if (i <= i2) { return (float) i / (float) i2; } else { return Math.max(1.0f - (((float) i - i2) / i2), 0); } } @Override public int getBrightnessForRender(float partialTicks) { return 0xF000F0; } @Override public int getFXLayer() { return 1; } } And here's a Screenshot of how it looks ingame: (These Link is because i can't upload these Picture here, don't know why) Can anyone tell me why my Texture isn't there? (If this helps, my texture is in these package: (assets.koratio.textures.particle)
  3. Okay it is working, thanks very much Now i got the problem, that no monsters in this world are spawning. I can spawn them with eggs, so the difficulty can't be the problem They're in the spawnable-monsters list of the Biomes, so they should spawn, i think is there a thing i must do, to spawn my monsters in my dimension? The animals i made are spawning correctly, just the monsters don't
  4. Okay i found it, so i can just put this name (field_76944_d) instead of genBiomes and it will still work?
  5. Okay, in Dev environment it now works, thanks for all of your help, really, that makes me smile But how did i get these SRG name?
  6. I did, but now the Log tells me that: [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: java.lang.IllegalAccessException: Class com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider can not access a member of class net.minecraft.world.biome.BiomeProvider with modifiers "protected" [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at java.lang.Class.newInstance(Unknown Source) [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider.makeLayers(FantasiaBiomeProvider.java:74) [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider.<init>(FantasiaBiomeProvider.java:44) [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider.init(FantasiaWorldProvider.java:91) [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at net.minecraft.world.WorldProvider.setWorld(WorldProvider.java:54) [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at net.minecraft.world.WorldServer.<init>(WorldServer.java:122) [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at net.minecraft.world.WorldServerMulti.<init>(WorldServerMulti.java:18) [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:127) [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at net.minecraft.server.integrated.IntegratedServer.init(IntegratedServer.java:160) [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:552) [17:00:04] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:init:103]: at java.lang.Thread.run(Unknown Source) [17:00:04] [Server thread/INFO] [FML]: Loading dimension 7 (New World) (net.minecraft.server.integrated.IntegratedServer@3c63e969) [17:00:04] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@3c63e969) [17:00:04] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@3c63e969) [17:00:04] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Preparing start region for level 0 [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: java.lang.IllegalAccessException: Class com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider can not access a member of class net.minecraft.world.biome.BiomeProvider with modifiers "protected" [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: at java.lang.Class.newInstance(Unknown Source) [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: at com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider.makeLayers(FantasiaBiomeProvider.java:74) [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: at com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider.<init>(FantasiaBiomeProvider.java:44) [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: at com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider.getBiomeProvider(FantasiaWorldProvider.java:70) [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: at net.minecraft.world.WorldServer.tick(WorldServer.java:195) [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:831) [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:743) [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:192) [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592) [17:00:05] [Server thread/INFO] [STDERR]: [com.setrion.koratio.world.dimension.fantasia.FantasiaWorldProvider:getBiomeProvider:82]: at java.lang.Thread.run(Unknown Source) [17:00:05] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: Encountered an unexpected exception The things i did was that: ReflectionUtil.setFieldValue(BiomeProvider.class.getField("genBiomes"), BiomeProvider.class.newInstance(), biomes);
  7. Okay i tried to do it like the "BiomeProvider" file does, the variable setting thing, but this don't work i guess it's simple & you know how to, but i should learn something by this i really don't have any plan how to fix my problem
  8. Okay i changed the name of the variable - still not working Tried to set the variable from the "BiomeProvider" file - not working cause it's not visible
  9. Did you mean i can copy the complete BiomeProvider code to my class & change some things? will this work? i tried to learn how to create dimensions but can't find any helpful pages i know how to create SingleBiomeDimensions but one with all biomes i want it to have is not the same
  10. Okay here's the code (i uploaded just the "world" files now, cause they're the only files i work with in dimensional stuff) https://github.com/Setrion/Koratio-1.12.2/tree/master/world
  11. Hey guys, i need some help for a few weeks i'm working on a dimension for my mod I failed badly before i found some code of Twilight Forest's dimension creation (i know, copying code is not really helpful, but i want to learn how to create dimension, edit them & decorate them like i want to) The code now is "error-free" but if i enter the dimension i get the following crash [13:18:23] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Preparing start region for level 0 [13:18:24] [Server thread/INFO] [FML]: Unloading dimension 7 [13:18:24] [Server thread/INFO] [FML]: Unloading dimension -1 [13:18:24] [Server thread/INFO] [FML]: Unloading dimension 1 [13:18:24] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer]: Changing view distance to 12, from 10 [13:18:45] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [13:18:45] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [13:18:45] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 7 mods : minecraft@1.12.2,ichunutil@7.1.4,tabula@7.0.0,FML@8.0.99.99,forge@14.23.4.2705,mcp@9.42,koratio@1.12.2-0.0.0.33-alpha [13:18:45] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [13:18:45] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established [13:18:45] [Server thread/INFO] [FML]: Loading dimension 7 (Koratio) (net.minecraft.server.integrated.IntegratedServer@110c273c) [13:18:45] [Server thread/INFO] [net.minecraft.server.management.PlayerList]: Setrion[local:E:0b0c2528] logged in with entity id 95 at (-1227.0, 55.0, -301.0) [13:18:45] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Setrion joined the game [13:18:45] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: Encountered an unexpected exception net.minecraft.util.ReportedException: Exception generating new chunk at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:212) ~[NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:865) ~[MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:743) ~[MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:192) ~[IntegratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592) [MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_181] Caused by: java.lang.NullPointerException at net.minecraft.world.biome.BiomeProvider.getBiomesForGeneration(BiomeProvider.java:97) ~[BiomeProvider.class:?] at com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider.getBiomesForGeneration(FantasiaBiomeProvider.java:79) ~[FantasiaBiomeProvider.class:?] at com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider.getBiomesForGeneration(FantasiaBiomeProvider.java:70) ~[FantasiaBiomeProvider.class:?] at com.setrion.koratio.world.dimension.fantasia.ChunkGeneratorFantasia.setBlocksInChunk(ChunkGeneratorFantasia.java:80) ~[ChunkGeneratorFantasia.class:?] at com.setrion.koratio.world.dimension.fantasia.ChunkGeneratorFantasia.generateChunk(ChunkGeneratorFantasia.java:69) ~[ChunkGeneratorFantasia.class:?] at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:155) ~[ChunkProviderServer.class:?] at net.minecraft.world.World.getChunkFromChunkCoords(World.java:361) ~[World.class:?] at net.minecraft.world.World.spawnEntity(World.java:1314) ~[World.class:?] at net.minecraft.world.WorldServer.spawnEntity(WorldServer.java:1121) ~[WorldServer.class:?] at net.minecraft.server.management.PlayerList.playerLoggedIn(PlayerList.java:398) ~[PlayerList.class:?] at net.minecraft.server.management.PlayerList.initializeConnectionToPlayer(PlayerList.java:175) ~[PlayerList.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.completeServerSideConnection(NetworkDispatcher.java:259) ~[NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.access$100(NetworkDispatcher.java:72) ~[NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.update(NetworkDispatcher.java:208) ~[NetworkDispatcher$1.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:307) ~[NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:197) ~[NetworkSystem.class:?] ... 5 more [13:18:45] [Server thread/ERROR] [net.minecraft.server.MinecraftServer]: This crash report has been saved to: C:\Users\Horet\Desktop\Koratio 1.12\run\.\crash-reports\crash-2018-09-08_13.18.45-server.txt [13:18:45] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server [13:18:45] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players [13:18:45] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving worlds [13:18:45] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'Koratio'/overworld [13:18:45] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'Koratio'/fantasia [13:18:45] [Server thread/INFO] [FML]: Unloading dimension 0 [13:18:45] [Server thread/INFO] [FML]: Unloading dimension 7 [13:18:45] [Server thread/INFO] [FML]: Applying holder lookups [13:18:45] [Server thread/INFO] [FML]: Holder lookups applied [13:18:45] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded. [13:18:46] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: ---- Minecraft Crash Report ---- // Daisy, daisy... Time: 9/8/18 1:18 PM Description: Exception generating new chunk java.lang.NullPointerException: Exception generating new chunk at net.minecraft.world.biome.BiomeProvider.getBiomesForGeneration(BiomeProvider.java:97) at com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider.getBiomesForGeneration(FantasiaBiomeProvider.java:79) at com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider.getBiomesForGeneration(FantasiaBiomeProvider.java:70) at com.setrion.koratio.world.dimension.fantasia.ChunkGeneratorFantasia.setBlocksInChunk(ChunkGeneratorFantasia.java:80) at com.setrion.koratio.world.dimension.fantasia.ChunkGeneratorFantasia.generateChunk(ChunkGeneratorFantasia.java:69) at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:155) at net.minecraft.world.World.getChunkFromChunkCoords(World.java:361) at net.minecraft.world.World.spawnEntity(World.java:1314) at net.minecraft.world.WorldServer.spawnEntity(WorldServer.java:1121) at net.minecraft.server.management.PlayerList.playerLoggedIn(PlayerList.java:398) at net.minecraft.server.management.PlayerList.initializeConnectionToPlayer(PlayerList.java:175) at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.completeServerSideConnection(NetworkDispatcher.java:259) at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.access$100(NetworkDispatcher.java:72) at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.update(NetworkDispatcher.java:208) at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:307) at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:197) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:865) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:743) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:192) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592) at java.lang.Thread.run(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace: at net.minecraft.world.biome.BiomeProvider.getBiomesForGeneration(BiomeProvider.java:97) at com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider.getBiomesForGeneration(FantasiaBiomeProvider.java:79) at com.setrion.koratio.world.dimension.fantasia.FantasiaBiomeProvider.getBiomesForGeneration(FantasiaBiomeProvider.java:70) at com.setrion.koratio.world.dimension.fantasia.ChunkGeneratorFantasia.setBlocksInChunk(ChunkGeneratorFantasia.java:80) at com.setrion.koratio.world.dimension.fantasia.ChunkGeneratorFantasia.generateChunk(ChunkGeneratorFantasia.java:69) -- Chunk to be generated -- Details: Location: -77,-19 Position hash: -77309411405 Generator: com.setrion.koratio.world.dimension.fantasia.ChunkGeneratorFantasia@77f4b33c Stacktrace: at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:155) at net.minecraft.world.World.getChunkFromChunkCoords(World.java:361) at net.minecraft.world.World.spawnEntity(World.java:1314) at net.minecraft.world.WorldServer.spawnEntity(WorldServer.java:1121) at net.minecraft.server.management.PlayerList.playerLoggedIn(PlayerList.java:398) at net.minecraft.server.management.PlayerList.initializeConnectionToPlayer(PlayerList.java:175) at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.completeServerSideConnection(NetworkDispatcher.java:259) at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.access$100(NetworkDispatcher.java:72) at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.update(NetworkDispatcher.java:208) at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:307) -- Ticking connection -- Details: Connection: net.minecraft.network.NetworkManager@1c660a73 Stacktrace: at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:197) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:865) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:743) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:192) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592) at java.lang.Thread.run(Unknown Source) -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_181, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 7551264392 bytes (7201 MB) / 8476557312 bytes (8083 MB) up to 8476557312 bytes (8083 MB) JVM Flags: 3 total; -Xincgc -Xmx8192M -Xms8192M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.42 Powered by Forge 14.23.4.2705 7 mods loaded, 7 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored | State | ID | Version | Source | Signature | |:--------- |:--------- |:--------------------- |:-------------------------------- |:--------- | | UCHIJAAAA | minecraft | 1.12.2 | minecraft.jar | None | | UCHIJAAAA | mcp | 9.42 | minecraft.jar | None | | UCHIJAAAA | FML | 8.0.99.99 | forgeSrc-1.12.2-14.23.4.2705.jar | None | | UCHIJAAAA | forge | 14.23.4.2705 | forgeSrc-1.12.2-14.23.4.2705.jar | None | | UCHIJAAAA | koratio | 1.12.2-0.0.0.33-alpha | bin | None | | UCHIJAAAA | ichunutil | 7.1.4 | iChunUtil-1.12.2-7.1.4.jar | None | | UCHIJAAAA | tabula | 7.0.0 | Tabula-1.12.2-7.0.0.jar | None | Loaded coremods (and transformers): GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread. Profiler Position: N/A (disabled) Player Count: 1 / 8; [EntityPlayerMP['Setrion'/95, l='Koratio', x=-1227.00, y=55.00, z=-301.00]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' [13:18:46] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:629]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2018-09-08_13.18.45-server.txt [13:18:46] [Client Shutdown Thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server [13:18:46] [Client Shutdown Thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players Can someone help me? Working with dimensions really kills my mind..
  12. Puh.. that sounds a little bit confusing to me But i'll try it, i think i can do it this way, but it's not so easy
  13. Hey guys, i've got a question I'm trying to make a Zombie Pigman Boss, most of you will know him from "Take back the night" from Captian Sparklez, and i will try to code him into Minecraft The Question is, is it possible to make the Boulder on the chain to an own "entity" so it will be effected by gravity & players have the ability to destroy it? I think this can be done, but i don't know how, and i don't know where i can look to take some ideas
  14. It finally works thank you very much
  15. And your leaves are looking like the vanilla ones? you see the leaves behind other leaves? that's what i want to get
  16. If i override the methods for rendering etc. they're like the picture of my leaves, if i delete them from my leaves file, they're the same, but with black in the transparent fields I can paste you the code if you want package com.setrion.koratio.blocks; import java.util.List; import java.util.Random; import com.setrion.koratio.main.Koratio; import net.minecraft.block.Block; import net.minecraft.block.BlockLeaves; import net.minecraft.block.BlockPlanks; import net.minecraft.block.BlockPlanks.EnumType; import net.minecraft.block.BlockSlab.EnumBlockHalf; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyBool; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraft.util.BlockRenderLayer; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumParticleTypes; import net.minecraft.util.NonNullList; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class BlockJubanLeaves extends BlockLeaves { private boolean leavesFancy = GameSettings.Options.GRAPHICS != null; public BlockJubanLeaves() { this.setUnlocalizedName("juban_leaves"); this.setRegistryName("juban_leaves"); this.setCreativeTab(Koratio.blockTab); this.setDefaultState(this.blockState.getBaseState().withProperty(CHECK_DECAY, Boolean.valueOf(true)).withProperty(DECAYABLE, Boolean.valueOf(true))); } public IBlockState getStateFromMeta(int meta) { return this.getDefaultState().withProperty(DECAYABLE, Boolean.valueOf((meta & 2) == 0)).withProperty(CHECK_DECAY, Boolean.valueOf((meta & 4) > 0)); } @Override public int getMetaFromState(IBlockState state) { int i = 0; if(!((Boolean)state.getValue(DECAYABLE)).booleanValue()) { i |= 2; } if(!((Boolean)state.getValue(CHECK_DECAY)).booleanValue()) { i |= 4; } return i; } protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {CHECK_DECAY, DECAYABLE}); } @Override public NonNullList<ItemStack> onSheared(ItemStack item, net.minecraft.world.IBlockAccess world, BlockPos pos, int fortune) { return NonNullList.withSize(1, new ItemStack(this, 1)); } @Override public EnumType getWoodType(int meta) { return null; } @Override public void beginLeavesDecay(IBlockState state, World world, BlockPos pos) { if (!(Boolean)state.getValue(CHECK_DECAY)) { world.setBlockState(pos, state.withProperty(CHECK_DECAY, true), 1); } } @Override public boolean isShearable(ItemStack item, IBlockAccess world, BlockPos pos){ return true; } @Override public boolean isLeaves(IBlockState state, IBlockAccess world, BlockPos pos){ return true; } public boolean isFullCube(IBlockState state) { return false; } public boolean isOpaqueCube(IBlockState state) { return !this.leavesFancy; } /** * Pass true to draw this block using fancy graphics, or false for fast graphics. */ @SideOnly(Side.CLIENT) public void setGraphicsLevel(boolean fancy) { this.leavesFancy = fancy; } @SideOnly(Side.CLIENT) public BlockRenderLayer getBlockLayer() { return this.leavesFancy ? BlockRenderLayer.CUTOUT_MIPPED : BlockRenderLayer.SOLID; } public boolean causesSuffocation(IBlockState state) { return false; } public Item getItemDropped(IBlockState state, Random rand, int fortune) { return Item.getItemFromBlock(ModBlocks.blockJubanSapling); } protected int getSaplingDropChance(IBlockState state) { return 20; } public void registerItemModel(Item itemBlock) { Koratio.proxy.registerItemRenderer(itemBlock, 0, "juban_leaves"); } public Item createItemBlock() { return new ItemBlock(this).setRegistryName(getRegistryName()); } @SideOnly(Side.CLIENT) public boolean shouldSideBeRendered(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) { return !this.leavesFancy && blockAccess.getBlockState(pos.offset(side)).getBlock() == this ? false : super.shouldSideBeRendered(blockState, blockAccess, pos, side); } }
  17. If true & false i got this issue, i tried it a lot times
  18. Hey guys, i have a small (i hope it is nothing that can be a big problem xD) texture/visibility bug with my leaves the issue is, that i can see through them and the other leaves behind the first one are invisible i think these 2 screenshots can show what my issue is (one is the Vanilla Oak Leaves & one are my leaves, i hope you can see what i want to say..) Sorry for my bad english, try to be better by time
×
×
  • Create New...

Important Information

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