Everything posted by LogicTechCorp
- 
	
		
		[1.8.9] Create texture/model from NBT
		
		I have a custom scythe that can be made up from three parts. I would like to create the texture/model based on the NBT that each part passes to the complete scythe. How would I achieve this?
 - 
	
		
		[1.8.9] "Universal" Entity
		
		I managed to get it moving per Choonster's suggestion, but it is still stuttering.
 - 
	
		
		[1.8.9] "Universal" Entity
		
		Now that I have the rendering sorted. When the entity spawns it doesn't move and it keeps stuttering in place.
 - 
	
		
		[1.8.9] "Universal" Entity
		
		Thank you, now the entity renders correctly but it keeps rendering the entity's death animation.
 - 
	
		
		[1.8.9] "Universal" Entity
		
		It works but now I have a new problem. java.lang.ClassCastException: soulmagic.entity.EntitySpectral cannot be cast to net.minecraft.entity.passive.EntityChicken at net.minecraft.client.renderer.entity.RenderChicken.handleRotationFloat(RenderChicken.java:10) ~[RenderChicken.class:?] at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:140) [RendererLivingEntity.class:?] at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:54) [RenderLiving.class:?] at net.minecraft.client.renderer.entity.RenderLiving.doRender(RenderLiving.java:16) [RenderLiving.class:?] at soulmagic.client.renderer.entity.SpectralRenderFactory$SpectralRender.doRender(SpectralRenderFactory.java:27) [spectralRenderFactory$SpectralRender.class:?] at soulmagic.client.renderer.entity.SpectralRenderFactory$SpectralRender.doRender(SpectralRenderFactory.java:17) [spectralRenderFactory$SpectralRender.class:?] at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:380) [RenderManager.class:?] at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:337) [RenderManager.class:?] at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:304) [RenderManager.class:?] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:672) [RenderGlobal.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1368) [EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1282) [EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1110) [EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1107) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:380) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:116) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65] 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_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) [idea_rt.jar:?]
 - 
	
		
		[1.8.9] "Universal" Entity
		
		Am I doing it correctly? @Override public void writeSpawnData(ByteBuf buffer) { NBTTagCompound entityTag = this.entity.serializeNBT(); ByteBufUtils.writeTag(buffer, entityTag); } @Override public void readSpawnData(ByteBuf additionalData) { NBTTagCompound entityTag = ByteBufUtils.readTag(additionalData); this.entity.deserializeNBT(entityTag); }
 - 
	
		
		[1.8.9] "Universal" Entity
		
		When rendering the entity it appears that the entity is null but I am not sure why. [10:15:48] [Client thread/FATAL]: Reported exception thrown! net.minecraft.util.ReportedException: Rendering entity in world at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:428) ~[RenderManager.class:?] at net.minecraft.client.renderer.entity.RenderManager.renderEntityStatic(RenderManager.java:337) ~[RenderManager.class:?] at net.minecraft.client.renderer.entity.RenderManager.renderEntitySimple(RenderManager.java:304) ~[RenderManager.class:?] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:672) ~[RenderGlobal.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1368) ~[EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1282) ~[EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1110) ~[EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1107) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:380) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:116) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65] 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_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) [idea_rt.jar:?] Caused by: java.lang.NullPointerException at net.minecraft.client.renderer.entity.RenderManager.getEntityRenderObject(RenderManager.java:237) ~[RenderManager.class:?] at soulmagic.entity.EntitySpectral.getRender(EntitySpectral.java:74) ~[EntitySpectral.class:?] at soulmagic.client.renderer.entity.SpectralRenderFactory$SpectralRender.doRender(SpectralRenderFactory.java:27) ~[spectralRenderFactory$SpectralRender.class:?] at soulmagic.client.renderer.entity.SpectralRenderFactory$SpectralRender.doRender(SpectralRenderFactory.java:17) ~[spectralRenderFactory$SpectralRender.class:?] at net.minecraft.client.renderer.entity.RenderManager.doRenderEntity(RenderManager.java:380) ~[RenderManager.class:?] ... 26 more Render: https://github.com/LogicTechCorp/SoulMagic/blob/master/src/main/java/soulmagic/client/renderer/entity/SpectralRenderFactory.java Soul: https://github.com/LogicTechCorp/SoulMagic/blob/master/src/main/java/soulmagic/entity/item/EntitySoul.java Spectral: https://github.com/LogicTechCorp/SoulMagic/blob/master/src/main/java/soulmagic/entity/EntitySpectral.java
 - 
	
		
		[1.8.9] "Universal" Entity
		
		How would I get a new instance of the entity that is not dead?
 - 
	
		
		[1.8.9] "Universal" Entity
		
		Once I have the dead entity's render how would I use it in my entity's render class?
 - 
	
		
		[1.8.9] "Universal" Entity
		
		How would I save the entity to nbt?
 - 
	
		
		[1.8.9] "Universal" Entity
		
		My mod adds in the ability to reanimate dead entities into a spectral version of themselves. I would like this function to work with all living entities from vanilla to any mod, so would it be possible to use the original entity's model and texture?
 - 
	
		
		[1.8.9] Custom Clock
		
		How would I go about adding in a custom clock?
 - 
	
		
		[1.8.9] Custom Enchantments
		
		I have added in a few enchantments into my mod. They work as expected but I am unable to obtain them from the enchantment table. How do I remedy this? Edit: I tested my custom enchantments by using /enchant
 - 
	
		
		[1.8.9] Change recipe output based on day/night
		
		Thank you it seems to have fixed my problem but I have another issue. When I pick up the output, the items in the crafting grid decrement correctly then they decrement to 0 and the items that were in the crafting grid are thrown back into the players inventory.
 - 
	
		
		[1.8.9] Change recipe output based on day/night
		
		Thank you Jabelar. I change the recipe output based on world.isDaytime(). It appears that it is always daytime on the client but the server time is correct. Could this be causing my issues? [10:46:19] [Client thread/INFO]: [CHAT] Set the time to 13000 [10:46:29] [Client thread/INFO]: [soulmagic.item.crafting.SoulMagicCraftingManager:findMatchingRecipe:42]: isDaytime = true [10:46:29] [server thread/INFO]: [soulmagic.item.crafting.SoulMagicCraftingManager:findMatchingRecipe:42]: isDaytime = false [10:48:00] [Client thread/INFO]: [soulmagic.item.crafting.SoulMagicCraftingManager:findMatchingRecipe:43]: 8xtile.spectral_glass@0 [10:48:00] [server thread/INFO]: [soulmagic.item.crafting.SoulMagicCraftingManager:findMatchingRecipe:43]: 8xtile.spectral_glass@1
 - 
	
		
		[1.8.9] Change recipe output based on day/night
		
		Still haven't figured it out but when I change the crafting manager from my custom one to the vanilla one the recipes come out correctly. So I assume the issue must becoming from my custom crafting manager but I am not 100% sure.
 - 
	
		
		[1.8.9] Change recipe output based on day/night
		
		I think I have found the problem. Its a !world.isRemote check. If I remove it the recipes no longer function correctly, only the daytime recipes work regardless of the time. Edit: If I remove the check the wrong item is shown but you still get the correct output.
 - 
	
		
		[1.8.9] Change recipe output based on day/night
		
		Here you go: https://github.com/LogicTechCorp/SoulMagic/tree/master/src/main/java/soulmagic/inventory https://github.com/LogicTechCorp/SoulMagic/tree/master/src/main/java/soulmagic/item/crafting
 - 
	
		
		[1.8.9] Change recipe output based on day/night
		
		It works but with one problem, the output of the recipe does not visually appear but you can still click on the slot to get the output.
 - 
	
		
		[1.8.9] Change recipe output based on day/night
		
		How would I change a recipe output based on whether it is day or night? I am using a custom crafting table and I state whether the recipe requires day or night based on a boolean in the add recipe parameters.
 - 
	
		
		[1.8.9] Search around block for pattern
		
		I am in the process of implementing multi-block structures into my mod. While looking for tutorials on multi-block structures I stumbled upon the Shad Multicore System by Jezzadabomb338. It is 1.7 only at the moment and I decided to port it to 1.8.9. In the 1.7 version the "master" block searches for the pattern from -Z and -X to +Z and +X and would require multiple patterns for each (NESW) direction if the pattern was not symmetrical. I want to make it so that the "master" block can search for the pattern within a set diameter no matter the orientation of the pattern. Which is the best way you recommend of doing so? https://gist.github.com/LogicTechCorp/612cbbace222a3b41223
 - 
	
		
		[1.8] WorldSavedData Not Saving
		
		I was originally using the players name but I decided to use their UUID in case the player changed their name. I use the currently use the WorldSavedData here: https://github.com/LogicTechCorp/SoulMagic/blob/master/src/main/java/soulmagic/item/ItemAmulet.java#L84 https://github.com/LogicTechCorp/SoulMagic/blob/master/src/main/java/soulmagic/item/ItemScythe.java#L109 https://github.com/LogicTechCorp/SoulMagic/blob/master/src/main/java/soulmagic/tile/TileEntityAltar.java#L179
 - 
	
		
		[1.8] WorldSavedData Not Saving
		
		I am implementing a soul nexus(network) into my mod and am using WorldSavedData to do so. It appears the the data is not being saved, what am I doing wrong? SoulNexus: https://github.com/LogicTechCorp/SoulMagic/blob/master/src/main/java/soulmagic/api/nexus/SoulNexus.java NexusHelper: https://github.com/LogicTechCorp/SoulMagic/blob/master/src/main/java/soulmagic/api/nexus/NexusHelper.java
 - 
	
		
		[1.8] OBJ Item Mistextured
		
		How do I mirror the texture?
 - 
	
		
		[1.8] OBJ Item Mistextured
		
		I have a scythe that is rendered as an OBJ. It is textured correctly in blender but in game it is not textured correctly. Blockstate: { "forge_marker": 1, "defaults": { "textures": { }, "model": "soulmagic:scythe.obj" }, "variants": { "inventory": [{ "transform": "forge:default-tool" }] } } Model: https://github.com/LogicTechCorp/SoulMagic/blob/master/src/main/resources/assets/soulmagic/models/item/scythe.obj MTL: # Blender MTL File: 'scythe.blend' # Material Count: 1 newmtl Material Ns 96.078431 Ka 1.000000 1.000000 1.000000 Kd 0.640000 0.640000 0.640000 Ks 0.500000 0.500000 0.500000 Ke 0.000000 0.000000 0.000000 Ni 1.000000 d 1.000000 illum 2 map_Kd soulmagic:models/scythe Why is it not textured correctly, is it something I did wrong?
 
IPS spam blocked by CleanTalk.