- Баллы
- 21
Всем привет ребята, подскажите где я допустил ошибку
VERSION 1.16
//MainClass
//Generator
VERSION 1.16
//MainClass
PHP:
public void onEnable(){
Bukkit.getPluginManager().registerEvents(this, this);
WorldCreator wc = new WorldCreator("world1");
wc.generator(new Generator(1));
Bukkit.createWorld(wc);
}
PHP:
public class Generator extends ChunkGenerator{
SimplexOctaveGenerator sog;
public Generator(long seed){
sog = new SimplexOctaveGenerator(seed,4);
sog.setScale((double)1/100);
}
public ChunkData generateChankData(World world,Random random, int x,int z, BiomeGrid biome){
ChunkData chunkData = createChunkData(world);
int worldx = x * 16;
int worldz = z * 16;
for(int i = worldx; i< worldx +16;i++){
int chunkx= i -worldx;
for(int j = worldz; j<worldz + 16; i++){
int chunkz= j -worldz;
double noise = sog.noise(i, j, 0,5f,0.5f,true)+1;
int y = (int) Math.floor((noise * 8)+56);
for(int k = 128; k >= 0; k--){
Material blocktoPlace = null;
if(k<=67 && k > y){
blocktoPlace = Material.WATER;
}
else if(k>y){
blocktoPlace = Material.AIR;
}
else if(k == y){
blocktoPlace = Material.GRASS_BLOCK;
}
else if(y - 3 < k){
blocktoPlace = Material.DIRT;
}
else if(k < y -3){
blocktoPlace = Material.STONE;
}
else{
blocktoPlace = Material.AIR;
}
chunkData.setBlock(chunkx, k,chunkz, blocktoPlace);
}
}
}
return chunkData;
}
}
Код:
[21:20:53] [Server thread/INFO]: -------- World Settings For [world1] --------
[21:20:53] [Server thread/INFO]: Mob Spawn Range: 6
[21:20:53] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
[21:20:53] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Ra 48 / Mi 16 / Tiv true
[21:20:53] [Server thread/INFO]: Cactus Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Cane Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Melon Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Mushroom Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Sapling Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Beetroot Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Carrot Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Potato Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Wheat Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: NetherWart Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Vine Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Cocoa Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Bamboo Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: SweetBerry Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Kelp Growth Modifier: 100%
[21:20:53] [Server thread/INFO]: Experience Merge Radius: 3.0
[21:20:53] [Server thread/INFO]: Max TNT Explosions: 100
[21:20:53] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[21:20:53] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[21:20:53] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[21:20:53] [Server thread/INFO]: View Distance: 10
[21:20:53] [Server thread/INFO]: Item Despawn Rate: 6000
[21:20:53] [Server thread/INFO]: Item Merge Radius: 2.5
[21:20:53] [Server thread/INFO]: Arrow Despawn Rate: 1200 Trident Respawn Rate:1200
[21:20:53] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
[21:20:53] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
[21:20:53] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Desert: 14357617 Igloo: 14357618 Jungle: 14357619 Swamp: 14357620 Monument: 10387313 Ocean: 14357621 Shipwreck: 165745295 End City: 10387313 Slime: 987234911 Bastion: 30084232 Fortress: 30084232 Mansion: 10387319 Fossil: 14357921 Portal: 34222645
[21:20:53] [Worker-Main-7/FATAL]: Failed to schedule load callback for chunk [2, -6]
java.util.concurrent.CompletionException: net.minecraft.server.v1_16_R1.ReportedException: Exception generating new chunk
at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:1.8.0_261]
at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) ~[?:1.8.0_261]
at java.util.concurrent.CompletableFuture.uniCompose(Unknown Source) ~[?:1.8.0_261]
at java.util.concurrent.CompletableFuture$UniCompose.tryFire(Unknown Source) ~[?:1.8.0_261]
at java.util.concurrent.CompletableFuture$Completion.run(Unknown Source) ~[?:1.8.0_261]
at net.minecraft.server.v1_16_R1.ChunkTaskQueueSorter.b(SourceFile:58) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ThreadedMailbox.e(SourceFile:94) [spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ThreadedMailbox.a(SourceFile:137) [spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ThreadedMailbox.run(SourceFile:105) [spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(Unknown Source) [?:1.8.0_261]
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) [?:1.8.0_261]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) [?:1.8.0_261]
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) [?:1.8.0_261]
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) [?:1.8.0_261]
Caused by: net.minecraft.server.v1_16_R1.ReportedException: Exception generating new chunk
at net.minecraft.server.v1_16_R1.PlayerChunkMap.lambda$26(PlayerChunkMap.java:551) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.PlayerChunkMap.lambda$24(PlayerChunkMap.java:536) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
... 12 more
Caused by: java.lang.UnsupportedOperationException: Custom generator cl.jhiid.Generator is missing required method generateChunkData
at org.bukkit.generator.ChunkGenerator.generateChunkData(ChunkGenerator.java:117) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at org.bukkit.craftbukkit.v1_16_R1.generator.CustomChunkGenerator.buildBase(CustomChunkGenerator.java:115) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ChunkStatus.lambda$5(ChunkStatus.java:55) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ChunkStatus$d.doWork(ChunkStatus.java:233) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ChunkStatus.a(ChunkStatus.java:190) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.PlayerChunkMap.lambda$26(PlayerChunkMap.java:538) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.PlayerChunkMap.lambda$24(PlayerChunkMap.java:536) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
... 12 more
[21:20:53] [Server thread/ERROR]: Error occurred while enabling RPG v13 (Is it up to date?)
net.minecraft.server.v1_16_R1.ReportedException: Exception generating new chunk
at net.minecraft.server.v1_16_R1.MinecraftServer.initWorld(MinecraftServer.java:473) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at org.bukkit.craftbukkit.v1_16_R1.CraftServer.createWorld(CraftServer.java:1065) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at org.bukkit.Bukkit.createWorld(Bukkit.java:524) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at cl.jhiid.MainRPG.onEnable(MainRPG.java:23) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:351) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at org.bukkit.craftbukkit.v1_16_R1.CraftServer.enablePlugin(CraftServer.java:491) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at org.bukkit.craftbukkit.v1_16_R1.CraftServer.enablePlugins(CraftServer.java:405) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.MinecraftServer.loadWorld(MinecraftServer.java:438) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.DedicatedServer.init(DedicatedServer.java:219) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:810) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_261]
Caused by: java.lang.UnsupportedOperationException: Custom generator cl.jhiid.Generator is missing required method generateChunkData
at org.bukkit.generator.ChunkGenerator.generateChunkData(ChunkGenerator.java:117) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at org.bukkit.craftbukkit.v1_16_R1.generator.CustomChunkGenerator.buildBase(CustomChunkGenerator.java:115) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ChunkStatus.lambda$5(ChunkStatus.java:55) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ChunkStatus$d.doWork(ChunkStatus.java:233) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ChunkStatus.a(ChunkStatus.java:190) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.PlayerChunkMap.lambda$26(PlayerChunkMap.java:538) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.PlayerChunkMap.lambda$24(PlayerChunkMap.java:536) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at java.util.concurrent.CompletableFuture.uniCompose(Unknown Source) ~[?:1.8.0_261]
at java.util.concurrent.CompletableFuture$UniCompose.tryFire(Unknown Source) ~[?:1.8.0_261]
at java.util.concurrent.CompletableFuture$Completion.run(Unknown Source) ~[?:1.8.0_261]
at net.minecraft.server.v1_16_R1.ChunkTaskQueueSorter.b(SourceFile:58) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ThreadedMailbox.e(SourceFile:94) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ThreadedMailbox.a(SourceFile:137) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.ThreadedMailbox.run(SourceFile:105) ~[spigot-1.16.1.jar:git-Spigot-0287a20-7560f5f]
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(Unknown Source) ~[?:1.8.0_261]
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:1.8.0_261]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source) ~[?:1.8.0_261]
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[?:1.8.0_261]
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[?:1.8.0_261]
Последнее редактирование: