Jump to content

[1.12.1]TileEntity Freeze-Up


GiantNuker

Recommended Posts

I am worrking on an addon for Botania.

The game does not crash and nothing appears in the log, but here it is anyway:

Spoiler

2017-09-19 16:25:20,465 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:25:20] [main/INFO]: Extra: []
[16:25:20] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/T902/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.1, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[16:25:20] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:25:20] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[16:25:20] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:25:20] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[16:25:20] [main/INFO]: Forge Mod Loader version 14.22.1.2479 for Minecraft 1.12.1 loading
[16:25:20] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_25
[16:25:20] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[16:25:20] [main/INFO]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[16:25:20] [main/INFO]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[16:25:20] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[16:25:20] [main/INFO]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[16:25:20] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[16:25:20] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:25:20] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:25:20] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:25:20] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:25:20] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[16:25:20] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
2017-09-19 16:25:21,485 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2017-09-19 16:25:22,060 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[16:25:24] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[16:25:24] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[16:25:24] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[16:25:25] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[16:25:25] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:25:25] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[16:25:25] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[16:25:27] [main/INFO]: Setting user: Player386
[16:25:34] [main/WARN]: Skipping bad option: lastServer:
[16:25:34] [main/INFO]: LWJGL Version: 2.9.4
[16:25:35] [main/INFO]: -- System Details --
Details:
	Minecraft Version: 1.12.1
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.8.0_25, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 650940728 bytes (620 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	FML: 
	Loaded coremods (and transformers): 
	GL info: ' Vendor: 'Intel' Version: '3.3.0 - Build 8.15.10.2696' Renderer: 'Intel(R) HD Graphics 4000'
[16:25:35] [main/INFO]: MinecraftForge v14.22.1.2479 Initialized
[16:25:35] [main/INFO]: Starts to replace vanilla recipe ingredients with ore ingredients.
[16:25:35] [main/INFO]: Replaced 1036 ore ingredients
[16:25:36] [main/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
[16:25:36] [main/INFO]: Searching C:\Users\T902\Programming\Java\Minecraft\1.12\run\mods for mods
[16:25:38] [Thread-3/INFO]: Using sync timing. 200 frames of Display.update took 139496456 nanos
[16:25:39] [main/INFO]: Forge Mod Loader has identified 8 mods to load
[16:25:39] [main/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, backslash, botaniatweaks, botania, baubles] at CLIENT
[16:25:39] [main/INFO]: Attempting connection with missing mods [minecraft, mcp, FML, forge, backslash, botaniatweaks, botania, baubles] at SERVER
[16:25:43] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:BackSlash API, FMLFileResourcePack:Botania Tweaks, FMLFileResourcePack:Botania, FMLFileResourcePack:Baubles
[16:25:43] [main/WARN]: ResourcePack: ignored non-lowercase namespace: Stripper.exe in C:\Users\T902\Programming\Java\Minecraft\1.12\libs\Botania r1.10-347-deobf.jar
[16:25:43] [main/INFO]: Processing ObjectHolder annotations
[16:25:43] [main/INFO]: Found 1169 ObjectHolder annotations
[16:25:43] [main/INFO]: Identifying ItemStackHolder annotations
[16:25:43] [main/INFO]: Found 0 ItemStackHolder annotations
[16:25:43] [main/INFO]: Configured a dormant chunk cache size of 0
[16:25:43] [Forge Version Check/INFO]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[16:25:44] [Forge Version Check/INFO]: [forge] Found status: OUTDATED Target: 14.22.1.2485
[16:25:46] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: -----Starting Block Registration-----
[16:25:46] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Registered Block "botaniatweaks:manaspawner" into forge registry
[16:25:46] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Registered Block "botaniatweaks:crystal_pylon" into forge registry
[16:25:46] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: -----Finished Block Registration-----
[16:25:46] [main/INFO]: Applying holder lookups
[16:25:46] [main/INFO]: Holder lookups applied
[16:25:46] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: -----Starting Item Registration-----
[16:25:46] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Registered Item "botaniatweaks:spawnerfocus" into forge registry
[16:25:46] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Registered Item "botaniatweaks:manaspawner" into forge registry
[16:25:46] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Registered Item "botaniatweaks:crystal_pylon" into forge registry
[16:25:46] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: -----Finished Item Registration-----
[16:25:46] [main/INFO]: Applying holder lookups
[16:25:46] [main/INFO]: Holder lookups applied
[16:25:46] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: -----Starting Potion Effect Registration-----
[16:25:46] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: -----Finished Potion Effect Registration-----
[16:25:46] [main/INFO]: Applying holder lookups
[16:25:46] [main/INFO]: Holder lookups applied
[16:25:46] [main/INFO]: OBJLoader: Domain botania has been added.
[16:25:46] [main/INFO]: Applying holder lookups
[16:25:47] [main/INFO]: Holder lookups applied
[16:25:47] [main/INFO]: Injecting itemstacks
[16:25:47] [main/INFO]: Itemstack injection complete
[16:25:53] [Sound Library Loader/INFO]: Starting up SoundSystem...
[16:25:53] [Thread-5/INFO]: Initializing LWJGL OpenAL
[16:25:53] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[16:25:53] [Thread-5/INFO]: OpenAL initialized.
[16:25:53] [Sound Library Loader/INFO]: Sound engine started
[16:26:03] [main/INFO]: Max texture size: 8192
[16:26:04] [main/INFO]: Created: 1024x512 textures-atlas
[16:26:09] [main/ERROR]: Parsing error loading recipe botaniatweaks:minebounce
com.google.gson.JsonSyntaxException: Unknown item 'botaniatweaks:lens'
	at net.minecraftforge.common.crafting.CraftingHelper.getItemStack(CraftingHelper.java:211) ~[CraftingHelper.class:?]
	at net.minecraftforge.common.crafting.CraftingHelper.lambda$init$14(CraftingHelper.java:516) ~[CraftingHelper.class:?]
	at net.minecraftforge.common.crafting.CraftingHelper$$Lambda$156/1486083061.parse(Unknown Source) ~[?:?]
	at net.minecraftforge.common.crafting.CraftingHelper.getRecipe(CraftingHelper.java:408) ~[CraftingHelper.class:?]
	at net.minecraftforge.common.crafting.CraftingHelper.lambda$loadRecipes$22(CraftingHelper.java:711) [CraftingHelper.class:?]
	at net.minecraftforge.common.crafting.CraftingHelper$$Lambda$167/770273169.apply(Unknown Source) [CraftingHelper.class:?]
	at net.minecraftforge.common.crafting.CraftingHelper.findFiles(CraftingHelper.java:822) [CraftingHelper.class:?]
	at net.minecraftforge.common.crafting.CraftingHelper.loadRecipes(CraftingHelper.java:668) [CraftingHelper.class:?]
	at net.minecraftforge.common.crafting.CraftingHelper$$Lambda$165/797579916.accept(Unknown Source) [CraftingHelper.class:?]
	at java.util.ArrayList.forEach(ArrayList.java:1249) [?:1.8.0_25]
	at net.minecraftforge.common.crafting.CraftingHelper.loadRecipes(CraftingHelper.java:620) [CraftingHelper.class:?]
	at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:779) [Loader.class:?]
	at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:348) [FMLClientHandler.class:?]
	at net.minecraft.client.Minecraft.init(Minecraft.java:534) [Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:377) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(SourceFile:123) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
	at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_25]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_25]
	at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_25]
	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
	at GradleStart.main(GradleStart.java:26) [start/:?]
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: ------------Registered Custom Recipes(0)
[16:26:09] [main/INFO]: Applying holder lookups
[16:26:09] [main/INFO]: Holder lookups applied
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: -----Seting Up Renderer for following Items-----
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for block "botaniatweaks:manaspawner" whith meta 0 as "botaniatweaks:manaspawner"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 0 as "botaniatweaks:spawnerfocus_empty"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 1 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 2 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 3 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 4 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 5 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 6 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 7 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 8 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 9 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 10 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 11 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 12 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 13 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 14 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 15 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 16 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 17 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 18 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 19 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 20 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 21 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 22 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 23 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 24 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 25 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 26 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 27 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 28 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 29 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 30 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 31 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 32 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 33 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: Render Set up for item "botaniatweaks:spawnerfocus" whith meta 34 as "botaniatweaks:spawnerfocus"
[16:26:09] [main/INFO]: [mods.giantnuker.backslash.Logger:logMsg:15]: [BackSlash API]: -----Finished Setting Up Renders-----
[16:26:09] [main/INFO]: [mods.giantnuker.botaniatweaks.BTMod:init:62]: [[!!!mods.giantnuker.backslash.RenderObj$RenderObjt@2a99b137=>java.lang.NullPointerException:null!!!], RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus, RenderObjt:botaniatweaks:spawnerfocus]
[16:26:09] [main/INFO]: Injecting itemstacks
[16:26:09] [main/INFO]: Itemstack injection complete
[16:26:09] [main/INFO]: The Lexica Botania has 26740 words.
[16:26:10] [main/INFO]: Forge Mod Loader has successfully loaded 8 mods
[16:26:11] [main/WARN]: Skipping bad option: lastServer:
[16:26:11] [main/INFO]: Narrator library for x64 successfully loaded
[16:26:11] [main/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[16:26:11] [main/ERROR]: The following texture errors were found.
[16:26:11] [main/ERROR]: ==================================================
[16:26:11] [main/ERROR]:   DOMAIN botania
[16:26:11] [main/ERROR]: --------------------------------------------------
[16:26:11] [main/ERROR]:   domain botania is missing 5 textures
[16:26:11] [main/ERROR]:     domain botania has 1 location:
[16:26:11] [main/ERROR]:       mod botania resources at C:\Users\T902\Programming\Java\Minecraft\1.12\libs\Botania r1.10-347-deobf.jar
[16:26:11] [main/ERROR]: -------------------------
[16:26:11] [main/ERROR]:     The missing resources for domain botania are:
[16:26:11] [main/ERROR]:       textures/blocks/custombrick3.png
[16:26:11] [main/ERROR]:       textures/blocks/custombrick1.png
[16:26:11] [main/ERROR]:       textures/blocks/custombrick0.png
[16:26:11] [main/ERROR]:       textures/blocks/custombrick2.png
[16:26:11] [main/ERROR]:       textures/items/headpiece_tiara_wing_1.png
[16:26:11] [main/ERROR]: -------------------------
[16:26:11] [main/ERROR]:     No other errors exist for domain botania
[16:26:11] [main/ERROR]: ==================================================
[16:26:11] [main/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[16:26:13] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[16:26:29] [main/INFO]: Deleting level New World
[16:26:29] [main/INFO]: Attempt 1...
[16:26:37] [Server thread/INFO]: Starting integrated minecraft server version 1.12.1
[16:26:37] [Server thread/INFO]: Generating keypair
[16:26:37] [Server thread/INFO]: Injecting existing registry data into this server instance
[16:26:38] [Server thread/INFO]: Applying holder lookups
[16:26:38] [Server thread/INFO]: Holder lookups applied
[16:26:38] [Server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@6b757f3c)
[16:26:39] [Server thread/INFO]: Loaded 536 advancements
[16:26:40] [Server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@6b757f3c)
[16:26:40] [Server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@6b757f3c)
[16:26:40] [Server thread/INFO]: Preparing start region for level 0
[16:26:41] [Server thread/INFO]: Preparing spawn area: 53%
[16:26:42] [Server thread/INFO]: Changing view distance to 7, from 10
[16:26:47] [Netty Local Client IO #0/INFO]: Server protocol version 2
[16:26:47] [Netty Server IO #1/INFO]: Client protocol version 2
[16:26:47] [Netty Server IO #1/INFO]: Client attempting to join with 8 mods : minecraft@1.12.1,botania@r1.10-347,botaniatweaks@1.12-1.0.0,FML@8.0.99.99,forge@14.22.1.2479,baubles@1.5.1,mcp@9.19,backslash@1.12-3.1.0
[16:26:47] [Netty Local Client IO #0/INFO]: [Netty Local Client IO #0] Client side modded connection established
[16:26:47] [Server thread/INFO]: [Server thread] Server side modded connection established
[16:26:47] [Server thread/INFO]: Player386[local:E:a8acaa0d] logged in with entity id 30 at (362.5, 4.0, 626.5)
[16:26:47] [Server thread/INFO]: Player386 joined the game
[16:26:48] [Server thread/INFO]: Saving and pausing game...
[16:26:48] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[16:26:49] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[16:26:49] [Server thread/INFO]: Saving chunks for level 'New World'/the_end
[16:26:49] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2285ms behind, skipping 45 tick(s)
[16:26:50] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@2d4e4760[id=383d2669-dd1d-3bb6-9599-ddb9736fd75c,name=Player386,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?]
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache.get(LocalCache.java:4154) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) [guava-21.0.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) [guava-21.0.jar:?]
	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?]
	at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3007) [Minecraft.class:?]
	at net.minecraft.client.resources.SkinManager$3.run(SourceFile:110) [SkinManager$3.class:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_25]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_25]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_25]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_25]
	at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25]
[16:28:35] [Server thread/INFO]: Player386 has made the advancement [Vivid Wave]
[16:28:35] [main/INFO]: [CHAT] Player386 has made the advancement [Vivid Wave]
[16:28:35] [main/INFO]: Loaded 19 advancements

 

Here is my Pylon tile entity(supplying power)

Spoiler

package mods.giantnuker.botaniatweaks.tile;

import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ITickable;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import vazkii.botania.api.mana.IManaPool;
import vazkii.botania.api.state.BotaniaStateProps;
import vazkii.botania.api.state.enums.AlfPortalState;
import vazkii.botania.api.state.enums.PylonVariant;
import vazkii.botania.common.Botania;
import vazkii.botania.common.block.ModBlocks;
import vazkii.botania.common.block.tile.TilePylon;
import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.core.helper.Vector3;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import mods.giantnuker.botaniatweaks.BTMod;

public class TileCrystalPylon extends TileEntity implements ITickable {
	public static enum EnumActivation {
		OFF,
		SWIRLING_OUT,
		CHANNEL_OUT,
		CHANNEL_LIGHTSWIRL_OUT,
		SWIRLING_IN;
	}
	public static enum EnumBinding {
		OUTPUT_ALL,
		OUTPUT_BIND,
		INPUT_COLLECT,
		INPUT_RECIEVE,
		INPUT_BIND,
		INPUT_RECIEVE_COLLECT;
	}
	public EnumActivation activated = EnumActivation.OFF;
	public EnumBinding bind = EnumBinding.OUTPUT_ALL;
	public BlockPos centerPos, boundPos;
	public int ticks = 0;
	
	public static List<TileCrystalPylon> getAllPylonsInRange(BlockPos start, int range, int rangeY, World world) {
		List<TileCrystalPylon> list = new ArrayList();

		IBlockState pylonState = BTMod.crystalPylon.getDefaultState();
		for(int i = -range; i < range + 1; i++)
			for(int j = -rangeY; j < rangeY + 1; j++)
				for(int k = -range; k < range + 1; k++) {
					BlockPos pos = start.add(new BlockPos(i, j, k));
					if(world.getBlockState(pos).getBlock() == BTMod.crystalPylon) {
						if (world.getTileEntity(pos) instanceof TileCrystalPylon)list.add((TileCrystalPylon) world.getTileEntity(pos));
					}
				}
		return list;
	}
	public static List<TileCrystalPylon> getUseablePylons(BlockPos start, int range, int rangeY, World world, BlockPos usedBy) {
		return getUseablePylons(getAllPylonsInRange(start, range, rangeY, world), usedBy);
	}
	public static List<TileCrystalPylon> getUseablePylons(List<TileCrystalPylon> pylons, BlockPos pos) {
		List<TileCrystalPylon> a = new ArrayList();
		a.addAll(pylons);
		for (TileCrystalPylon p : a) {
			if (p == null) pylons.remove(p);
			if (!p.canDrawFrom(pos)) pylons.remove(p);
		}
		return pylons;
	}
	public static int useManaFromAll(List<TileCrystalPylon> pylons, int mana, BlockPos user) {
		do {
			for (TileCrystalPylon pylon : pylons) {
				if (!pylon.canDrawFrom(user)) {
					pylons.remove(pylon);
					continue;
				}
				mana = pylon.takeMana(1);
			}
		} while(mana > 0 && pylons.size() > 0);
		/*do {
			for (TileCrystalPylon pylon : pylons) {
				if (!pylon.canDrawFrom(user)) {
					pylons.remove(pylon);
					continue;
				}
				mana = pylon.takeMana(mana);
			}
		} while(mana > 0 && pylons.size() > 0);*/
		return mana;
	}
	
	public boolean canDrawFrom(BlockPos pos) {
		updateUseability(true);
		if (this.activated != EnumActivation.OFF && this.centerPos != pos) return false;
		if (this.bind != EnumBinding.OUTPUT_ALL && this.boundPos != pos) return false;
		if (this.getCurrentMana() <= 0) return false;
		//RayTraceResult res = this.world.rayTraceBlocks(new Vec3d(this.pos), new Vec3d(pos), false, true, false);
		//if (res != null)if (res.hitVec.x != pos.getX() || res.hitVec.y != pos.getY() || res.hitVec.z != pos.getZ()) return false;
		
		return true;
	}
	
	public boolean hasPool() {
		return world.getTileEntity(pos.down()) instanceof IManaPool;
	}
	
	public int getCurrentMana() {
		if (!hasPool()) return 0;
		return ((IManaPool)world.getTileEntity(pos.down())).getCurrentMana();
	}
	public int takeMana(int mana) {
		if (this.activated == EnumActivation.OFF) return mana;
		if (!hasPool()) return mana;
		int manaIP = getCurrentMana();
		if (mana <= manaIP) {
			((IManaPool)world.getTileEntity(pos.down())).recieveMana(-mana);
			if (mana - manaIP <= 0 && world.getTileEntity(centerPos) != null)
				if (world.getTileEntity(centerPos) instanceof IPylonUpdateEvent) ((IPylonUpdateEvent)world.getTileEntity(centerPos)).updatePylons();
			return mana - manaIP;
		} else {
			((IManaPool)world.getTileEntity(pos.down())).recieveMana(-mana);
			if (world.getTileEntity(centerPos) != null)
				if (world.getTileEntity(centerPos) instanceof IPylonUpdateEvent) ((IPylonUpdateEvent)world.getTileEntity(centerPos)).updatePylons();
			return 0;
		}
	}

	@Override
	public void update() {
		++ticks;

		if(activated != EnumActivation.OFF && world.isRemote) {
			updateUseability(false);
			Vector3 centerBlock = new Vector3(centerPos.getX() + 0.5, centerPos.getY() + 0.75 + (Math.random() - 0.5 * 0.25), centerPos.getZ() + 0.5);

			if(activated == EnumActivation.SWIRLING_OUT) {
					double worldTime = ticks;
					worldTime += new Random(pos.hashCode()).nextInt(1000);
					worldTime /= 5;

					float r = 0.75F + (float) Math.random() * 0.05F;
					double x = pos.getX() + 0.5 + Math.cos(worldTime) * r;
					double z = pos.getZ() + 0.5 + Math.sin(worldTime) * r;

					Vector3 ourCoords = new Vector3(x, pos.getY() + 0.25, z);
					centerBlock = centerBlock.subtract(new Vector3(0, 0.5, 0));
					Vector3 movementVector = centerBlock.subtract(ourCoords).normalize().multiply(0.2);

					Botania.proxy.wispFX(x, pos.getY() + 0.25, z, rand255(), rand255(), rand255(), 0.25F + (float) Math.random() * 0.1F, -0.075F - (float) Math.random() * 0.015F);
					if(world.rand.nextInt(3) == 0)
						Botania.proxy.wispFX(x, pos.getY() + 0.25, z, rand255(), rand255(), rand255(), 0.25F + (float) Math.random() * 0.1F, (float) movementVector.x, (float) movementVector.y, (float) movementVector.z);
			} else if(activated == EnumActivation.CHANNEL_OUT) {
				//for (int i = 0; i < 5; i++) {
				double worldTime = ticks;
				worldTime += new Random(pos.hashCode()).nextInt(1000);
				worldTime /= 5;
				float r = 0.75F + (float) Math.random() * 0.05F;
				double x = pos.getX() + 0.5;// + Math.cos(worldTime) * r;
				double z = pos.getZ() + 0.5;// + Math.sin(worldTime) * r;
				Vector3 ourCoords = new Vector3(x, pos.getY() + 1, z);
				centerBlock = centerBlock.subtract(new Vector3(0, 0.05, 0));
				Vector3 movementVector = centerBlock.subtract(ourCoords).normalize().multiply(0.3);
				
				Botania.proxy.wispFX(x, pos.getY() + 0.25, z, rand255(), rand255(), rand255(), 0.25F + (float) Math.random() * 0.1F, (float) movementVector.x, (float) movementVector.y, (float) movementVector.z);
				
				//}
				
			} else if(activated == EnumActivation.CHANNEL_LIGHTSWIRL_OUT) {
				//for (int i = 0; i < 5; i++) {
				double worldTime = ticks;
				worldTime += new Random(pos.hashCode()).nextInt(1000);
				worldTime /= 5;
				float r = 0.75F + (float) Math.random() * 0.05F;
				double x = pos.getX() + 0.5;// + Math.cos(worldTime) * r;
				double z = pos.getZ() + 0.5;// + Math.sin(worldTime) * r;
				Vector3 ourCoords = new Vector3(x, pos.getY() + 1, z);
				centerBlock = centerBlock.subtract(new Vector3(0, 0.05, 0));
				Vector3 movementVector = centerBlock.subtract(ourCoords).normalize().multiply(0.3);
				
				Botania.proxy.wispFX(x, pos.getY() + 0.25, z, rand255(), rand255(), rand255(), 0.25F + (float) Math.random() * 0.1F, (float) movementVector.x, (float) movementVector.y, (float) movementVector.z);
				
				//}
				x = pos.getX() + 0.5 + Math.cos(worldTime) * r;
				z = pos.getZ() + 0.5 + Math.sin(worldTime) * r;
				if (new Random().nextInt(3) == 0)
					Botania.proxy.wispFX(x, pos.getY() + 0.25, z, rand255(), rand255(), rand255(), 0.25F + (float) Math.random() * 0.1F, -0.075F - (float) Math.random() * 0.015F);
				
			}
				/*Vector3 ourCoords = Vector3.fromTileEntityCenter(this).add(0, 1 + (Math.random() - 0.5 * 0.25), 0);
				Vector3 movementVector = centerBlock.subtract(ourCoords).normalize().multiply(0.2);

				Block block = world.getBlockState(pos.down()).getBlock();
				if(block == ModBlocks.flower || block == ModBlocks.shinyFlower) {
					int hex = world.getBlockState(pos.down()).getValue(BotaniaStateProps.COLOR).getColorValue();
					int r = (hex & 0xFF0000) >> 16;
					int g = (hex & 0xFF00) >> 8;
					int b = hex & 0xFF;

					if(world.rand.nextInt(4) == 0)
						Botania.proxy.sparkleFX(centerBlock.x + (Math.random() - 0.5) * 0.5, centerBlock.y, centerBlock.z + (Math.random() - 0.5) * 0.5, r / 255F, g / 255F, b / 255F, (float) Math.random(), 8);

					Botania.proxy.wispFX(pos.getX() + 0.5 + (Math.random() - 0.5) * 0.25, pos.getY() - 0.5, pos.getZ() + 0.5 + (Math.random() - 0.5) * 0.25, r / 255F, g / 255F, b / 255F, (float) Math.random() / 3F, -0.04F);
					Botania.proxy.wispFX(pos.getX() + 0.5 + (Math.random() - 0.5) * 0.125, pos.getY() + 1.5, pos.getZ() + 0.5 + (Math.random() - 0.5) * 0.125, r / 255F, g / 255F, b / 255F, (float) Math.random() / 5F, -0.001F);
					Botania.proxy.wispFX(pos.getX() + 0.5 + (Math.random() - 0.5) * 0.25, pos.getY() + 1.5, pos.getZ() + 0.5 + (Math.random() - 0.5) * 0.25, r / 255F, g / 255F, b / 255F, (float) Math.random() / 8F, (float) movementVector.x, (float) movementVector.y, (float) movementVector.z);
				}
			}*/
		}

		if(world.rand.nextBoolean() && world.isRemote)
			Botania.proxy.sparkleFX(pos.getX() + Math.random(), pos.getY() + Math.random() * 1.5, pos.getZ() + Math.random(), rand255(), rand255(), rand255(), (float) Math.random(), 2);
	}
	
	public void updateUseability(boolean calCDF) {
		if (!calCDF) {
			if (centerPos == null || world.isAirBlock(centerPos) || !canDrawFrom(centerPos)) activated = EnumActivation.OFF;
		} else {
			if (centerPos == null || world.isAirBlock(centerPos)) activated = EnumActivation.OFF;
		}
	}
	private int rand255() {
		return 50 + new Random().nextInt(150);
	}

}

EnumBinding and input animations are unused/unimplemetned

and finally the user:

Spoiler

package mods.giantnuker.botaniatweaks.tile;

import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import javax.annotation.Nonnull;

import org.lwjgl.opengl.GL11;

import com.ibm.icu.util.BytesTrie.Iterator;

import mods.giantnuker.botaniatweaks.BTMod;
import mods.giantnuker.botaniatweaks.focus.ItemFocus;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.init.Blocks;
import net.minecraft.init.SoundEvents;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.play.server.SPacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ITickable;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.client.event.sound.SoundEvent;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.registry.EntityRegistry;
import net.minecraftforge.fml.relauncher.Side;
import vazkii.botania.api.mana.IManaReceiver;
import vazkii.botania.api.mana.IThrottledPacket;
import vazkii.botania.api.state.BotaniaStateProps;
import vazkii.botania.api.state.enums.PylonVariant;
import vazkii.botania.client.core.handler.HUDHandler;
import vazkii.botania.client.lib.LibResources;
import vazkii.botania.common.Botania;
import vazkii.botania.common.block.ModBlocks;
import vazkii.botania.common.block.tile.TilePylon;
import vazkii.botania.common.block.tile.mana.TilePool;
import vazkii.botania.common.core.handler.ModSounds;

public class TileManaSpawner extends TileEntity implements IManaReceiver, ITickable, IPylonUpdateEvent {
	
	protected int mana = 0, knownMana = -1, mana_remove_left = 0, umana = 0;
	public ItemStack focus = ItemStack.EMPTY;
	public static final int MAX_MANA = 100000;
	protected Entity e;
	
	public void useMana(int mana) {
		updatePylons();
		TileCrystalPylon.useManaFromAll(locatePylons(), mana, pos);
		this.mana -= mana;
	}
	
	public List<TileCrystalPylon> locatePylons() {
		return TileCrystalPylon.getUseablePylons(pos, 5, 3, world, pos);
	}
	public void updatePylons() {
		//if (world.isRemote) return;
		for(TileCrystalPylon pylon : locatePylons()) {
			if (this.isSpawning()) {
				pylon.activated = TileCrystalPylon.EnumActivation.CHANNEL_LIGHTSWIRL_OUT;
				pylon.centerPos = pos;
			} else {
				pylon.activated = TileCrystalPylon.EnumActivation.OFF;
				pylon.centerPos = null;
			}
		}
	}
	
	public int getUseableMana() {
		if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) return umana;
		int manau = mana;
		
		for (TileCrystalPylon p : locatePylons()) {
			manau += p.getCurrentMana();
		}
		return manau;
	}
	
	public boolean isSpawning() {
		return focus != null && focus != ItemStack.EMPTY && mana_remove_left > 0;
	}
	
	public void startSpawning() {
		if (focus != null && focus != ItemStack.EMPTY && !isSpawning() && getUseableMana() >= ItemFocus.getManaForStack(focus)) {
			mana_remove_left = ItemFocus.getManaForStack(focus);
			e = EntityRegistry.getEntry(ItemFocus.MOBS.get(focus.getItemDamage() - 1)).newInstance(this.world);
			if (!world.isRemote) {
				for (EntityPlayer p : world.playerEntities) {
					wand(p);
				}
			}
		}
	}
	
	@Override
	public int getCurrentMana() {
		return mana;
	}

	@Override
	public boolean isFull() {
		return mana > MAX_MANA || isSpawning();
	}

	@Override
	public void recieveMana(int manab) {
		if (mana < MAX_MANA && mana + manab <= MAX_MANA) {
			mana += manab;
		} else if (mana + manab < MAX_MANA) {
			mana = MAX_MANA + 1;
		}
	}

	@Override
	public boolean canRecieveManaFromBursts() {
		return !isFull();
	}
	
	@Nonnull
	@Override
	public NBTTagCompound writeToNBT(NBTTagCompound nbt) {
		super.writeToNBT(nbt);
		nbt.setInteger("mana", mana);
		nbt.setInteger("mrl", mana_remove_left);
		nbt.setTag("focus", focus.writeToNBT(new NBTTagCompound()));
		return nbt;
	}
	
	@Nonnull
	@Override
	public void readFromNBT(NBTTagCompound nbt) {
		super.readFromNBT(nbt);
		mana = nbt.getInteger("mana");
		mana_remove_left = nbt.getInteger("mrl");
		knownMana = nbt.getInteger("knownMana");
		umana = nbt.getInteger("umana");
		if (nbt.getTag("focus") != null)
			focus = new ItemStack((NBTTagCompound) nbt.getTag("focus"));
	}

	public void renderHUD(Minecraft mc, ScaledResolution res) {
		if (focus == null) focus = ItemStack.EMPTY;
		String name = I18n.format(BTMod.manaSpawner.getUnlocalizedName() + ".name");
		int color = new Color(90, 205, 116).getRGB(), color2 = Color.RED.getRGB(), color3 = Color.MAGENTA.getRGB();
		HUDHandler.drawSimpleManaHUD(color, knownMana, MAX_MANA, name, res);
		
		{
			String name2 = "";
			if (focus.isEmpty()) name2 = I18n.format(BTMod.MODID + ".text.nofoc");
			else name2 = I18n.format(EntityRegistry.getEntry(ItemFocus.MOBS.get(focus.getItemDamage() -1)).getName());
			GlStateManager.enableBlend();
			GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
			int x = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(name2) / 2;
			int y = res.getScaledHeight() / 2 - 20;

			mc.fontRenderer.drawStringWithShadow(name2, x, y, color2);
			x = res.getScaledWidth() / 2 - 51;
			y += 10;
			if (!isSpawning()) {
				if (getUseableMana() < ItemFocus.getManaForStack(focus))
					HUDHandler.renderManaBar(x, y, color2, 1F, getUseableMana(), ItemFocus.getManaForStack(focus));
				else if (focus.isEmpty()) {} else {
					HUDHandler.renderManaBar(x, y, color2, mana < 0 ? 0.5F : 1F, 1, 1);
					String text = I18n.format(BTMod.MODID + ".text.ready");
					x = res.getScaledWidth() / 2 - mc.fontRenderer.getStringWidth(text) / 2;
					y -= 1;
					mc.fontRenderer.drawString(text, x, y, color);
				}
			} else {
				HUDHandler.renderManaBar(x, y, color3, mana_remove_left < 0 ? 0.5F : 1F, mana_remove_left, ItemFocus.getManaForStack(focus));
			}

			GlStateManager.disableBlend();
		}

		GlStateManager.color(1F, 1F, 1F, 1F);
	}

	public boolean wand(EntityPlayer player) {
		updatePylons();
		if(!player.isSneaking()) {
			//if(!world.isRemote) {
				NBTTagCompound nbttagcompound = new NBTTagCompound();
				writeToNBT(nbttagcompound);
				nbttagcompound.setInteger("knownMana", mana);
				nbttagcompound.setInteger("umana", getUseableMana());
				if(player instanceof EntityPlayerMP) {
					((EntityPlayerMP) player).connection.sendPacket(new SPacketUpdateTileEntity(pos, -999, nbttagcompound));
				}
			//}
			world.playSound(null, player.posX, player.posY, player.posZ, ModSounds.ding, SoundCategory.PLAYERS, 0.1F, 1);
			return true;
		}
		return false;
	}
	@Override
	public void onDataPacket(NetworkManager net, SPacketUpdateTileEntity packet) {
		super.onDataPacket(net, packet);
		readFromNBT(packet.getNbtCompound());
		updatePylons();
	}

	@Override
	public void update() {
		if (isSpawning()) {
			if (focus == ItemStack.EMPTY || focus.getItemDamage() == 0) {
				mana_remove_left = 0;
				world.playSound(null, pos.getX(), pos.getY(), pos.getZ(), SoundEvents.VINDICATION_ILLAGER_DEATH, SoundCategory.BLOCKS, 1, 10);
				for (int i = 0; i < 7000; i++)
					Botania.proxy.wispFX(pos.getX() - 0.7 + Math.random() * 3, pos.getY() - 1 + Math.random() * 3, pos.getZ() - 1 + Math.random() * 3, rand255(), rand255(), rand255(), (float) Math.random() / 3F, (float) -Math.random() / 25F, 1.5F);
				updatePylons();
				if (!world.isRemote) {
					for (EntityPlayer p : world.playerEntities) {
						wand(p);
					}
				}
				return;
			}
			if (e == null) {
				e = EntityRegistry.getEntry(ItemFocus.MOBS.get(focus.getItemDamage() - 1)).newInstance(this.world);
			}
			AxisAlignedBB aabb = e.getEntityBoundingBox();
			mana_remove_left-= ItemFocus.getManaForStack(focus) / 200;
			useMana(ItemFocus.getManaForStack(focus) / 200);
			//if(Math.random() > particleChance)
			for (int i = 0; i < 3; i++)
				Botania.proxy.wispFX(randDe(aabb.maxX) + pos.getX() + 0.5, randD(aabb.maxY) + pos.getY() + 1, randD(aabb.maxZ) + pos.getZ() - 0.5, rand255(), rand255(), rand255(), (float) Math.random() / 3F, (float) -Math.random() / 25F, 2F);
			if (mana_remove_left <= 0 && !world.isRemote) {
				updatePylons();
				e.setPosition(this.pos.getX() + 0.5, this.pos.getY() + 1.2, this.pos.getZ() + 0.5);
				world.playSound(null, pos.getX(), pos.getY(), pos.getZ(), SoundEvents.EVOCATION_ILLAGER_PREPARE_SUMMON, SoundCategory.BLOCKS, 1, 10);
				world.spawnEntity(e);
				if (!world.isRemote) {
					for (EntityPlayer p : world.playerEntities) {
						wand(p);
					}
				}
			} else if (mana_remove_left <= 0) {
				updatePylons();
				//for (int i = 0; i < 1000; i++)
					//Botania.proxy.wispFX(randDe(aabb.maxX) + pos.getX() + 0.5, randDe(aabb.maxY) + pos.getY() + 1, randDe(aabb.maxZ) + pos.getZ() - 0.5, rand255(), rand255(), rand255(), (float) Math.random() / 3F, (float) -Math.random() / 25F, 3F);
			}
		}
	}
	
	private int rand255() {
		return 50 + new Random().nextInt(150);
	}
	
	private double randDe(double nmx) {
		return randD(nmx) * 3;
	}
	private double randD(double nmx) {
		return Math.random() * nmx;
	}
}

 

What happens is, it just drops out, no log,mouse not working, nothing.

It always drops out right as the spawning finishes(update>isSpawning>mana_remove_left at the bottom of TileManaSpawner)

This is also a major setback, because most things use crystal pylons for power.

If you can help Thanks!  :D 

 

In action, right before crash:

2017-09-19_16_46_24.png.efb1b49856417e012f056781fb11d445.png

Link to comment
Share on other sites

That means you have an infinite loop somewhere. Start using breakpoints.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

No

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

19 hours ago, GiantNuker said:

do {

for (TileCrystalPylon pylon : pylons) {

if (!pylon.canDrawFrom(user)) {

pylons.remove(pylon);

continue;

}

mana = pylon.takeMana(1);

}

} while(mana > 0 && pylons.size() > 0);

 

These loops are suspicious, esp since the takeMana method can return mana unchanged. Set a breakpoint entering the loop and step through.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

1 hour ago, jeffryfisher said:

 

These loops are suspicious, esp since the takeMana method can return mana unchanged. Set a breakpoint entering the loop and step through.

public boolean canDrawFrom(BlockPos pos) {
		updateUseability(true);
		if (this.activated != EnumActivation.OFF && this.centerPos != pos) return false;
		if (this.bind != EnumBinding.OUTPUT_ALL && this.boundPos != pos) return false;
		/*Look Here*/							if (this.getCurrentMana() <= 0) return false; //<--Look Here!
		//RayTraceResult res = this.world.rayTraceBlocks(new Vec3d(this.pos), new Vec3d(pos), false, true, false);
		//if (res != null)if (res.hitVec.x != pos.getX() || res.hitVec.y != pos.getY() || res.hitVec.z != pos.getZ()) return false;
		
		return true;
	}

Line 5 of canDrawFrom.

Link to comment
Share on other sites

Ok, what about that line?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

4 hours ago, jeffryfisher said:

Set a breakpoint entering the loop and step through.

You haven't done this yet.

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

You should eliminate the case where nothing changes during the loop which calls for the infinite loop.

Here, takeMana can return mana unchanged in the loop. It shouldn't be doing that.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

55 minutes ago, Abastro said:

You should eliminate the case where nothing changes during the loop which calls for the infinite loop.

Here, takeMana can return mana unchanged in the loop. It shouldn't be doing that.

if (!pylon.canDrawFrom(user)) {
					pylons.remove(pylon);
					continue;
				}

canDrawFrom has this line

if (this.getCurrentMana() <= 0) return false;

getCurrenMana & hasPool

public boolean hasPool() {
		return world.getTileEntity(pos.down()) instanceof IManaPool;
	}
	
	public int getCurrentMana() {
		if (!hasPool()) return 0;
		return ((IManaPool)world.getTileEntity(pos.down())).getCurrentMana();
	}

 

Link to comment
Share on other sites

2 hours ago, Draco18s said:
6 hours ago, jeffryfisher said:

Set a breakpoint entering the loop and step through.

You haven't done this yet.

I'll keep quoting this until you do it.

 

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

1 hour ago, Draco18s said:

I'll keep quoting this until you do it.

 

Did It.

I also changed method contents to

List<TileCrystalPylon> a = new ArrayList();
		a.addAll(pylons);
		do {
			for (TileCrystalPylon pylon : a) {
				if (pylons.size() < 1) return mana;
				if (mana < 0) break;
				if (!pylon.canDrawFrom(user)) {
					pylons.remove(pylon);
					continue;
				}
				mana = pylon.takeMana(1);
			}
		} while(mana > 0);
		/*do {
			for (TileCrystalPylon pylon : pylons) {
				if (!pylon.canDrawFrom(user)) {
					pylons.remove(pylon);
					continue;
				}
				mana = pylon.takeMana(mana);
			}
		} while(mana > 0 && pylons.size() > 0);*/
		return mana;

It still is not working.

Link to comment
Share on other sites

Then there's still a problem and you still need to debug it.
"Not working" tells us nothing.

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

4 hours ago, GiantNuker said:

if (!pylon.canDrawFrom(user)) {
					pylons.remove(pylon);
					continue;
				}

canDrawFrom has this line


if (this.getCurrentMana() <= 0) return false;

getCurrenMana & hasPool


public boolean hasPool() {
		return world.getTileEntity(pos.down()) instanceof IManaPool;
	}
	
	public int getCurrentMana() {
		if (!hasPool()) return 0;
		return ((IManaPool)world.getTileEntity(pos.down())).getCurrentMana();
	}

 

What do you want to say by that? Still the takeMana method can return unchanged value, e.g. when the pylon is off.

I guess there could be more bugs causing strange effects. So you should know how to debug, which is basic java skill as well.

So. Do you know basic java?

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

9 hours ago, Abastro said:

What do you want to say by that? Still the takeMana method can return unchanged value, e.g. when the pylon is off.

I guess there could be more bugs causing strange effects. So you should know how to debug, which is basic java skill as well.

So. Do you know basic java?

Yes, but I've never used eclipse debug tools, always System.out.println()

 

What I've been trying to get at is, the output of takemana should not mean anything, because every iteration, canDrawFrom is called, and that checks if there is any mana left in the pool, if not it returns false, and when that returns false, it is removed from the pylons list, when that list is empty, the method exits(if (pylons.size() < 1) return mana;)

Link to comment
Share on other sites

1 hour ago, GiantNuker said:

Yes, but I've never used eclipse debug tools, always System.out.println()

 

What I've been trying to get at is, the output of takemana should not mean anything, because every iteration, canDrawFrom is called, and that checks if there is any mana left in the pool, if not it returns false, and when that returns false, it is removed from the pylons list, when that list is empty, the method exits(if (pylons.size() < 1) return mana;)

also,  don't think that's the problem because It did not work with this algorithm either.

do {
			for (TileCrystalPylon pylon : pylons) {
				if (!pylon.canDrawFrom(user)) {
					pylons.remove(pylon);
					continue;
				}
				mana = pylon.takeMana(mana);
			}
		} while(mana > 0 && pylons.size() > 0);

 

Link to comment
Share on other sites

1 hour ago, GiantNuker said:

I've never used eclipse debug tools, always System.out.println()

Well then it's time for you to become familiar and comfortable with the debugger. Force yourself to dive in, play with step, step-into and step-over. Look at local variables and class fields as they change. Set breakpoints so you can skip ahead. Figure out where your program is getting stuck by sneaking up on it.

 

PS: Is it kosher to remove a pylon from pylons while iterating the list? I vaguely recall that there's a right way and a wrong way to do it. Make sure you're doing it the right way.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

1 hour ago, jeffryfisher said:

Well then it's time for you to become familiar and comfortable with the debugger. Force yourself to dive in, play with step, step-into and step-over. Look at local variables and class fields as they change. Set breakpoints so you can skip ahead. Figure out where your program is getting stuck by sneaking up on it.

 

PS: Is it kosher to remove a pylon from pylons while iterating the list? I vaguely recall that there's a right way and a wrong way to do it. Make sure you're doing it the right way.

I got a concurrent modifocation exception, so I created another list, then iterated through that, but I think it would be faster if I just did a for(int i = 0; i < pylons.size(); i++).

 

Thanks!

Link to comment
Share on other sites

If you iterate from 0 to size, and remove one, you'll skip over another.

If you want to be able to modify the list while you're looping over it, you should use an iterator.

  • Like 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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