Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Zeher_Monkey

Members
  • Posts

    155
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Zeher_Monkey

  1. .minecraft/logs/debug.log To find .minecraft: Windows key + R -> %appdata% -> roaming -> .minecraft
  2. Okay thank you. I'm now using the path ie "overworld" or "the_nether" and I'm replacing _ with a space and capitalising the first letter of every word.
  3. Im am rendering labels in the world, but the background cuts out part of my block behind it. I have tried tinkering with the variables in the FontRenderer.renderInBatch(); Method, but nothing seems to be working. Image of my problem: My Code: Any help is appreciated!
  4. Hi all, I'm trying to find a localized name for a Dimension. I know that with the registry system, resource locations are used, for example: minecraft:overworld But is there a localized (player friendly) name somewhere?
  5. I have managed to get it working in survival. It's still behaving oddly, but it does work now. Thanks for the help!
  6. I'm using vanilla code to create the Portal Blocks, so when the player is trying to enter the Portal it could be calling the code multiple times, but it works in Creative mode and when travelling across dimensions. Just not the same dimension in survival mode. Here is where I pass the method to my TileEntity: BlockPortal:
  7. I have tried this: playerIn.connection.teleport(targetPos.getX(), targetPos.getY(), targetPos.getZ(), yaw, pitch); And I am still getting the same error: [12:42:47] [Server thread/WARN] [minecraft/ServerPlayNetHandler]: TheCosmicNebula_ moved wrongly!
  8. Here is where I call the teleport: TileEntityPortal Here is my ITeleporter: CosmosTeleportCore As you can see, I have tried many variations on ServerPlayerEntity.teleport() And I cannot just pull the ServerPlayerEntity.changeDimension() method because it uses variables that are private.
  9. I have tried in vain to teleport a player within the same Dimension when they collide with a block with no collision. In creative mode, it works flawlessly, but in singleplayer I keep getting this error: [01:50:38] [Server thread/WARN] [minecraft/ServerPlayNetHandler]: TheCosmicNebula_ moved wrongly! I have tried many methods, from many classes that teleport. I can use ServerPlayerEntity.changeDimension() However it causes massive lag because it is repeating the same code with all of the blocks. Any help would be appreciated, i'm pulling my hair out!
  10. However, the bar does not appear when moving the item, or in the players hotbar when not in a gui.
  11. Okay so this was NOT the way to go about this. I have since discovered they sorta correct way to do this. Using: GuiContainerEvent.DrawForeground event I can overlay my bar correctly.
  12. Hi, I am trying to create a custom ItemStackTileEntityRenderer For an Item, to render a custom durability bar. I have looked through vanilla code and tried to implement this with a ItemStackTileEntityRenderer But so far have had 0 luck. If I try to use ItemRenderer.render() It crashes because it ends up endlessly looping. My custom method to draw the bar is also not working. CosmosEnergyItemItemStackRenderer.java CosmosItemRenderer.java I am really not sure how to handle this. The item does not render in any state currently, it is invisible. I had to use "parent": "builtin/entity" inside the Item.json to allow the ISTER to even work. I know this is probably an atrocious attempt, but I have been toying with this for 3 hours now and still nothing. Any help or advice is appreciated.
  13. Okay so I fixed this issue, turns out I wasn't passing in the values int p_239207_5_, int p_239207_6_ Into the renderer.render(stackIn, transformIn, true, matrixStack, typeBuffer, 0 (Should have been p_239207_5_), 0 (Should have been p_239207_6_), model); Function. The item now correctly renders with the correct colour and scale.
  14. Yeah there are multiple ways, the simplest in my opinion is how the Furnace does it. You are very welcome!
  15. Yes, look into AbstractFurnaceTileEntity and FurnaceScreen to see how vanilla handles values like the Burn Time, and the Cook Progress, ie the white arrow inside the Furnace GUI.
  16. So quick update, The weird scale was caused by the GUI, GROUND, FIXED Inside the dimensional_trident__.json and the dimensional_trident_throwing.json So thats fixed. However the colour is still not correct.
  17. Hi all, I am attempting to add my own custom Trident into my Mod. I have 90% of things working currently, however the GUI, ItemEntity and ItemFrame (I assume from FIXED) rendering is very strange. Below are picures of the Issue, and any related code. dimensional_trident.json: dimensional_trident__.json: dimensional_trident_throwing.json: ItemStackTileEntityRenderer.class: Im not sure what the issue is. Ive looked through vanilla code to see if i could locate the source of the issue, no dice. I have also read a few forum posts on the Modder Support Forum, and others have had other issues but none like this. Any help is appreciated!
  18. Okay, I misunderstood my old code then. Or I was doing things wrong... more likely for me to be honest. Ill have to look into server -> client packets. Its for a Screen that changes Widgets/Buttons depending on the other dimensions block information. Thanks for your help!
  19. So I am adding in features from previous versions of my mod from previous MC versions. One of these features is to access a block that is in another dimension from the players current dimension. Previously I used:SD DimensionManager.getWorld(int dimensionId); This allowed both Client and Server side to access without a problem. In 1.16.3 and forward this DimensionManager class is no longer in Forge so I now use: ServerLifecycleHooks.getCurrentServer().getWorld(RegistryKey<World> dimension); However this only works Server side, which is fine for my uses up till this point. So I'm asking if there is a similar method but for the Client? Something that can retrieve the ClientWorld for a specified RegistryKey<World>? Many thanks in advance.
  20. Okay, that idea is scrapped then. I will have to accept that the standard sound will play when going from Custom -> Vanilla world. Which to be honest is not that bad, I'm not too happy with the Exit sound anyway. Maybe I could ask the Forge devs to see if they can work their magic and allow for custom sounds to be played via theS SPlaySoundEffectPacket(SoundEvent event, SoundCategory category, double x, double y, double x, float volume, float pitch) Instead of hard-coding the sound. Maybe that's a longshot but who knows.
  21. Okay. That seems reasonable. I have thought of an idea, which is to store a Previous Dimension [ResourceLocation] tag into the Players Persisted Data, and change that using PlayerEvent.PlayerChangedDimensionEvent. I can then use this to check when sound events are playing. I'm storing these tags under my MOD_ID so that no other mod can get confused.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.