Jump to content

Pardeep

Forge Modder
  • Posts

    59
  • Joined

  • Last visited

Everything posted by Pardeep

  1. I've checked the .getItem and .getBlock strings are exactly current, and yet I keep getting the same error (which also causes the game to close on startup). Bear in mind the FPItems class has other recipes in it that work perfectly fine. Thanks in advance. Error log: java.lang.NullPointerException: Initializing game at net.minecraft.item.crafting.CraftingManager.addRecipe(CraftingManager.java:242) at cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe(GameRegistry.java:214) at cpw.mods.fml.common.registry.GameRegistry.addRecipe(GameRegistry.java:209) at freshpower.FPItems.recipes(FPItems.java:65) at freshpower.FPItems.init(FPItems.java:16) at freshpower.FreshPower.preinit(FreshPower.java:44) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:536) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:209) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:188) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at cpw.mods.fml.common.Loader.loadMods(Loader.java:498) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:194) at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) at net.minecraft.client.Minecraft.run(Minecraft.java:931) at net.minecraft.client.main.Main.main(Main.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Line of code it points to: GameRegistry.addRecipe(new ItemStack(FreshPower.getItem("fp_ingotFreshSteel"), 9), new Object[]{"A", 'A',FreshPower.getBlock("fp_storageFreshSteel")});
  2. Thanks. Such helpful. Much appreciated.
  3. Thanks for the help. The issue is fixed but now another one has risen. If I have a full inventory and right-click the air, I lose the item but I don't gain the item I want. I've tried different ways of fixing this but none of them work. Has anyone got any ideas as to what I can do?
  4. Ok. I replaced the code in the main mod class with MinecraftForge.EVENT_BUS.register(new FPEventHandler()); yet, still nothing happens :-(
  5. I'm trying to get it so that if I right-click mid-air with an item, that item will disappear and a new item will appear in the inventory. However, when I run the game and right-click, nothing happens (no item lost or gained). I've got everything registered but I was wondering if anyone knows what the problem is. Thanks in advance. Here's the code: Code in a class called FPEventHandler @SubscribeEvent public void playerInteractEvent(PlayerInteractEvent event) { EntityPlayer player = event.entityPlayer; ItemStack tankEmpty = new ItemStack(FreshPower.getItem("fp_tankEmpty"),1); ItemStack tankAir = new ItemStack(FreshPower.getItem("fp_tankEmpty"),1); if(player.getCurrentEquippedItem() != null && player.getCurrentEquippedItem() == tankEmpty) { if(event.action == Action.RIGHT_CLICK_AIR) { player.inventory.addItemStackToInventory(tankAir); --player.getCurrentEquippedItem().stackSize; } } } This line is in my init constructor of my main mod class FMLCommonHandler.instance().bus().register(new FPEventHandler());
  6. Ok thanks will try that.
  7. How would I use this to damage the item you right click with when a certain block has been clicked?
  8. Isn't this for destruction of a block? I want it so that when I right-click the item, so it doesn't get destroyed.
  9. I have a block and an item. I want it so that when I right-click that block with the item, the item reduces it's damage value by 1 (it has a max damage of 500). I.e. after 500 right clicks of that block, it disappears. I stress that I want it to damage ONLY if that 1 block is destroyed.
  10. One good idea would be to have a scrip that comes with any version of forge src (extracts to the mcp directory once install is done) that can grab pre-decompiled src files from newer versions of forge and copy them to our src directory. This would be useful as, although I only work with recommended builds which are every few weeks and then stop for months or until the next minecraft update), you won't have to keep redownloading forge src and waiting ages for it to re-decompile. This would be useful and easily done for within minecraft versions (different versions of forge for the same minecraft version). However I do understand newer versions of minecraft compile differently so need new workspaces. That is fine, it's just the fact that new builds for the same mc version can only be acquired through another decompile.
  11. I figured it out now. Just passed the class instance as a parameter public EntityPlayerBalances entityplayerbalances; @Override public void onPlayerLogin(EntityPlayer player) { entityplayerbalances = new EntityPlayerBalances(player); player.addChatMessage("§6Currency Mod v0.1 loaded"); player.addChatMessage("Current balance in your wallet is §6" + entityplayerbalances.getMinecoinBalanceWallet() + " §FMinecoins"); player.addChatMessage("Current balance in your bank account is §6" + entityplayerbalances.getMinecoinBalanceBank() + " §FMinecoins"); } THanks for your help though
  12. So how would I go about resolving this? Should I place the method that registers the WelcomeMessage class before the one that registers the balances class?
  13. I placed a breakpoint at that point and the same error log appears. It's something to do with the line I mentioned in the main post: player.addChatMessage("Current balance in your wallet is §6" + entityplayerbalances.getMinecoinBalanceWallet() + " §FMinecoins"); I just don't see what the problem is.
  14. I get this error for java.lang.NullPointerException ---- Minecraft Crash Report ---- // This doesn't make any sense! Time: 04/09/13 17:36 Description: Exception in server tick loop java.lang.NullPointerException at ss97.cm.minecoin.WelcomeMessages.onPlayerLogin(WelcomeMessages.java:15) at cpw.mods.fml.common.registry.GameRegistry.onPlayerLogin(GameRegistry.java:354) at cpw.mods.fml.common.network.FMLNetworkHandler.handlePlayerLogin(FMLNetworkHandler.java:299) at net.minecraft.server.management.ServerConfigurationManager.initializeConnectionToPlayer(ServerConfigurationManager.java:156) at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:97) at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689) at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585) at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482) at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.6.2 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 878602264 bytes (837 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 2 (112 bytes; 0 MB) allocated, 2 (112 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v8.04 FML v6.2.35.804 Minecraft Forge 9.10.0.804 4 mods loaded, 4 mods active mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{6.2.35.804} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{9.10.0.804} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available ss97cm{1.0} [ss97cm] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Player Count: 1 / 8; [EntityPlayerMP['Player508'/2, l='hi`', x=-113.50, y=4.00, z=1126.50]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' The classes this conerns: The WelcomeMessages class that implements IPlayerTracker package ss97.cm.minecoin; import net.minecraft.entity.player.EntityPlayer; import cpw.mods.fml.common.IPlayerTracker; public class WelcomeMessages implements IPlayerTracker { //Instances public EntityPlayerBalances entityplayerbalances; @Override public void onPlayerLogin(EntityPlayer player) { player.addChatMessage("§6Currency Mod v0.1 loaded"); player.addChatMessage("Current balance in your wallet is §6" + entityplayerbalances.getMinecoinBalanceWallet() + " §FMinecoins"); player.addChatMessage("Current balance in your bank account is §6" + entityplayerbalances.getMinecoinBalanceBank() + " §FMinecoins"); } @Override public void onPlayerLogout(EntityPlayer player) { // TODO Auto-generated method stub } @Override public void onPlayerChangedDimension(EntityPlayer player) { // TODO Auto-generated method stub } @Override public void onPlayerRespawn(EntityPlayer player) { // TODO Auto-generated method stub } } The EntityPlayerBalances class that WelcomeMessages gets some integer values from (implements IExtendedEntityProperties) package ss97.cm.minecoin; import net.minecraft.entity.player.*; import net.minecraft.entity.*; import net.minecraft.nbt.*; import net.minecraft.world.*; import net.minecraftforge.common.*; public class EntityPlayerBalances implements IExtendedEntityProperties { public EntityPlayer player; //Dat Variable that holds the amount of coins a player has in the "wallet" public int minecoinBalanceWallet = 0; //Dat Variable that holds the amount of coins a player has in the bank public int minecoinBalanceBank = 0; public final static String EXT_PROP_NAME = "EntityPlayerMinecoinBalances"; public EntityPlayerBalances(EntityPlayer player) { this.player = player; } @Override public void saveNBTData(NBTTagCompound compound) { compound.setInteger("MinecoinBalanceWallet", this.minecoinBalanceWallet); compound.setInteger("MinecoinBalanceBank", this.minecoinBalanceBank); } @Override public void loadNBTData(NBTTagCompound compound) { this.minecoinBalanceWallet = compound.getInteger("MinecoinBalanceWallet"); this.minecoinBalanceBank = compound.getInteger("MinecoinBalanceBank"); } @Override public void init(Entity entity, World world) { } //CUSTOM METHODS //Used to get the player's wallet balance public int getMinecoinBalanceWallet() { return this.minecoinBalanceWallet; } //Used to get the player's bank balance public int getMinecoinBalanceBank() { return this.minecoinBalanceBank; } //Used to add par1 to the player's wallet balance public void addToMinecoinBalanceWallet(int par1) { this.minecoinBalanceWallet += par1; } //Used to add par1 to the player's bank balance public void addToMinecoinBalanceBank(int par1) { this.minecoinBalanceBank += par1; } //Used to reset the player's wallet balance to 0 (main use: when the player dies) public void resetMinecoinBalanceWallet() { this.minecoinBalanceWallet = 0; } } The EventHandler that registers this EntityPlayerBalances class package ss97.cm.minecoin; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import net.minecraftforge.event.ForgeSubscribe; import net.minecraftforge.event.entity.EntityEvent.EntityConstructing; public class EventHandler_PlayerBalances { public Minecraft mc; //Event for registering EntityPlayerBalances @ForgeSubscribe public void onEntityConstructing(EntityConstructing event) { if (event.entity instanceof EntityPlayer && event.entity.getExtendedProperties(EntityPlayerBalances.EXT_PROP_NAME) == null) { event.entity.registerExtendedProperties(EntityPlayerBalances.EXT_PROP_NAME, new EntityPlayerBalances((EntityPlayer)event.entity)); } } } Methods in Init method of the base class that are relevant MinecraftForge.EVENT_BUS.register(new EventHandler_PlayerBalances()); GameRegistry.registerPlayerTracker(new WelcomeMessages()); In the crash report at: java.lang.NullPointerException at ss97.cm.minecoin.WelcomeMessages.onPlayerLogin(WelcomeMessages.java:15) this takes me to this line in the WelcomeMessages class: player.addChatMessage("Current balance in your wallet is §6" + entityplayerbalances.getMinecoinBalanceWallet() + " §FMinecoins"); Hopefully this will help you resolve the error. Thanks in advance.
  15. I'm not sure what to make of this report? ---- Minecraft Crash Report ---- // Don't be sad. I'll do better next time, I promise! Time: 03/09/13 22:58 Description: Unexpected error java.lang.NullPointerException at ss97.cm.minecoin.GuiInGameMinecoinCounter.renderMinecoinCounter(GuiInGameMinecoinCounter.java:50) at net.minecraftforge.event.ASMEventHandler_6_GuiInGameMinecoinCounter_renderMinecoinCounter_Post.invoke(.dynamic) at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39) at net.minecraftforge.event.EventBus.post(EventBus.java:108) at net.minecraftforge.client.GuiIngameForge.post(GuiIngameForge.java:865) at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:176) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1014) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:934) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:826) at net.minecraft.client.main.Main.main(Main.java:93) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:57) at net.minecraft.launchwrapper.Launch.main(Launch.java:18) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at ss97.cm.minecoin.GuiInGameMinecoinCounter.renderMinecoinCounter(GuiInGameMinecoinCounter.java:50) at net.minecraftforge.event.ASMEventHandler_6_GuiInGameMinecoinCounter_renderMinecoinCounter_Post.invoke(.dynamic) at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39) at net.minecraftforge.event.EventBus.post(EventBus.java:108) at net.minecraftforge.client.GuiIngameForge.post(GuiIngameForge.java:865) at net.minecraftforge.client.GuiIngameForge.renderGameOverlay(GuiIngameForge.java:176) -- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Player955'/5, l='MpServer', x=-1051.50, y=5.62, z=740.50]] Chunk stats: MultiplayerChunkCache: 60 Level seed: 0 Level generator: ID 01 - flat, ver 0. Features enabled: false Level generator options: Level spawn location: World: (-1055,4,737), Chunk: (at 1,0,1 in -66,46; contains blocks -1056,0,736 to -1041,255,751), Region: (-3,1; contains chunks -96,32 to -65,63, blocks -1536,0,512 to -1025,255,1023) Level time: 43 game time, 43 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Forced entities: 1 total; [EntityClientPlayerMP['Player955'/5, l='MpServer', x=-1051.50, y=5.62, z=740.50]] Retry entities: 0 total; [] Server brand: fml,forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2298) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:851) at net.minecraft.client.main.Main.main(Main.java:93) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:57) at net.minecraft.launchwrapper.Launch.main(Launch.java:18) -- System Details -- Details: Minecraft Version: 1.6.2 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 776961152 bytes (740 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 21635 (1211560 bytes; 1 MB) allocated, 21635 (1211560 bytes; 1 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v8.04 FML v6.2.35.804 Minecraft Forge 9.10.0.804 4 mods loaded, 4 mods active mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available FML{6.2.35.804} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Forge{9.10.0.804} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available ss97cm{1.0} [ss97cm] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available Launched Version: 1.6 LWJGL: 2.9.0 OpenGL: AMD Radeon HD 7800 Series GL version 4.2.12002 Compatibility Profile Context 9.12.0.0, ATI Technologies Inc. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Pack: Default Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 30 (1680 bytes; 0 MB) allocated, 30 (1680 bytes; 0 MB) used Can anyone tell me what the problem is and also ask if you need any code from any classes mentioned in the report. Thanks in advance.
  16. I've added a counter to the player through IExtendedEntityProperties in NBT It writes correctly because it starts as 0 when i create a world, it increases when I get it to and then when I close the world, exit the game and reopen the game and world, the counter is the same as I left it. However, when I create a world and get the counter to 39, I close the world and create a new world and that world has 39 on the counter instead of 0. Can someone help me Here are the classes this concerns Base class (just the method): MinecraftForge.EVENT_BUS.register(new EventHandler_PlayerBalances()); EntityPlayerBalances (the one that implements IExtendedEntityProperties package ss97.cm.minecoin; import net.minecraft.entity.player.*; import net.minecraft.entity.*; import net.minecraft.nbt.*; import net.minecraft.world.*; import net.minecraftforge.common.*; public class EntityPlayerBalances implements IExtendedEntityProperties { public final EntityPlayer player; //Dat Variable that holds the amount of coins a player has in the "wallet" public static int minecoinBalanceWallet = 0; //Dat Variable that holds the amount of coins a player has in the bank public static int minecoinBalanceBank = 0; public final static String EXT_PROP_NAME = "EntityPlayerMinecoinBalances"; public EntityPlayerBalances(EntityPlayer player) { this.player = player; } @Override public void saveNBTData(NBTTagCompound compound) { compound.setInteger("MinecoinBalanceWallet", this.minecoinBalanceWallet); compound.setInteger("MinecoinBalanceBank", this.minecoinBalanceBank); } @Override public void loadNBTData(NBTTagCompound compound) { this.minecoinBalanceWallet = compound.getInteger("MinecoinBalanceWallet"); this.minecoinBalanceBank = compound.getInteger("MinecoinBalanceBank"); } @Override public void init(Entity entity, World world) { } } EventHandler_PlayerBalances (The EventHandler I registered in the base class) package ss97.cm.minecoin; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import net.minecraftforge.event.ForgeSubscribe; import net.minecraftforge.event.entity.EntityEvent.EntityConstructing; public class EventHandler_PlayerBalances { public Minecraft mc; //Event for registering EntityPlayerBalances @ForgeSubscribe public void onEntityConstructing(EntityConstructing event) { if (event.entity instanceof EntityPlayer && event.entity.getExtendedProperties(EntityPlayerBalances.EXT_PROP_NAME) == null) { event.entity.registerExtendedProperties(EntityPlayerBalances.EXT_PROP_NAME, new EntityPlayerBalances((EntityPlayer)event.entity)); } } } Thanks in advance.
  17. I'm still unsure about update frequency. By update, what does it mean by that And for example a frequency of 5, what does that mean? 5 times a second?
  18. for loops. Okey dokey thank you
  19. I'm unsure of a few of the parameters, what they do and what I should set them as For the method EntityRegistry.registerModEntity, the parameters I'm unsure of are: trackingRange updateFrequency sendsVelocityUpdates What is the definition of each, what they do and how do I know what to set them as? Thanks in advance.
  20. So if I wanted it to drop it 10 times, I'd put the method 10 times?
  21. This is sort of many questions within a question. I want a cow to drop my custom entity I have created (my entity acts like an item but it's not an item). 1) I want to know how to get a mob to drop an entity when it dies without editing base classes 2) I want 3 of this entity to be dropped when the cow dies Is there any way to do this? Thanks in advance.
  22. .registermodentity this causes the game to close and give this error AL lib: (EE) alc_cleanup: 1 device not closed what does this mean? How do I use this method correctly?
  23. I will try doing .registermodentity as a few other topics on the internet said to do that as a solution. I'll get back to you as to if it worked
  24. No i did not but I wouldn't think that's the problem because I know and can prove the entity renders in the world. I just physically cannot see it as it does not render.
  25. I'm making a custom XPOrb which has the same code as EntityXPOrb and RenderXPOrb. I just changed a few things and changed what happens on pick up, then I get them to spawn when I throw an XP Bottle as well as normal XP Orbs. When I throw a bottle, only the vanilla XP Orbs render, not my own XP Orb (with its custom texture and texture location). They don't render, however what happens when I pick them up does happen. This means my custom XP Orb gets registered into the world and it exists in the world, but I physically cannot see it. Is there something I'm doing wrong? I use EntityRegistry.registerGlobalEntityID and RenderingRegistry.registerEntityRenderingHandler as my two main methods in my base mod file.
×
×
  • Create New...

Important Information

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