Jump to content

FuzeIII

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by FuzeIII

  1. Wow, way more complicated than in 1.7 ^^" I'll try that Could you just explain what do you mean by unlisted properties ?
  2. Hi, I'm fairly new to modding in 1.10 and especially with Block States. I would like to copy the texture of a block contained in a tile entity to my block. For example if I put a stone block into my tile entity, I would like my block to change its texture to match the stone texture. Is there any way to do that ? Thanks
  3. Hi, I was trying to add differents values to players using capabilities, but I noticed that the data that I had saved under a different player was kept for every player that was logging into this world. I did a bit of reasearch and I found that my capabilities was saved and loaded both to the player and to the level.dat. I don't know if I did anything wrong or if it's normal, and I would like some help to make my capabilities different for every player.
  4. Hi, I'm looking for a way to display actionbars from server to client. I know that minecraft only added actionbars to the title command in 1.11 but I'm pretty sure actionbars are usable in 1.10 since spigot and bukkit support them. Thanks -Fuze
  5. Hi, So I've created 2 mods, one is server side only and retreive some information from a database, and the other is an usual client/server side mod. On the server side mod I have an HashMap containing information I want to display to the player. I've created this method : public static Account getAccount(UUID uuid) { if (!accounts.containsKey(uuid)) return null; return accounts.get(uuid); } I then try to call my getAccount() method from the server side of my main mod (I try to load the informations in the constructor of a container) and I send the information to the client using packets. The problem is that when I open the GUI, the game freezes and leaves no crash report. Have you got any idea on how to resolve this problem ? PS: In order to test my setup I've included the server side mod into the build path of the main mod Thanks, -Fuze
  6. Hi, Here http://wiki.vg/Mojang_API they say that Mojang's API limit is 600 request every 10 minutes for requesting UUID. I was wondering if everytime that a person connected to a server, a request was made from the server to the API to figure out the UUID of the Player. If so, what would happend if more than 600 players connected to a server in less than 10 minutes ? Is there a built in cache inside forge/minecraft server ? Thanks, -Fuze
  7. Hi, I would like to know how one would recreate lines such as the one present in the thaumonomicon of Thaumcraft (https://gyazo.com/0b6f5cf9effcbd822d9974251a541480). Theses are not straight lines and I honestly don't know where to start. In addition, I did a bit of research to find if there was a pre-made function that would draw a straight line between 2 points. I found nothing except drawHorizontalLine and drawVerticalLine, which is not really what I'm interested in. I'm a beginer with OpenGL, so I assume I would have to define 2 vertices and draw a line in between them, but how would I define the thickness of the line ? I tried a few things but noithing would really render. I would be very grateful if someone could provide an example. Thanks. -Fuze
  8. Hi ! I'm making a hat mod pretty much like iChun's hats mod, but I have trouble figuring how to render properly a hat on the player's head. I want the player to pick a hat and display it on his head. Here's what I tried and the problems I've encountered: Directly render hat's model on player during RenderPlayerEvent, it works but I've trouble syncing what hat the player picked with all the players on the map, I've considered sending packets, but I wonder how I could do that effectively. Plus the hat would render strangely when in multiplayer. Spawning an entity on the player and rendering the hat model on this entity. The problem here is that when the player disconnects, the Entity may not despawn. The other problem I have is simply that the Entity won't render and I don't know why (I've correctly setup a renderer for my entity). Plus I'm afraid spawning an entity for every hat could cause some lag issues, . I took a look at iChun's code on github, it seems like it spawns entities on the player, but I can't figure out how to do that correctly. If anyone has any idea
  9. Thanks (but I wanted to run Minecraft.getMinecraft on the GuiContainer). But how am I supposed to change the displayed gui in the GuiContainer ?
  10. Hey ! I'm trying to make a block with multiple tabs in it. Each tab is going to have his own inventory and I was wondering if it was (or wasn't) recommended to use multiple GUIContainers and Containers with a same TileEntity ? If so, can I switch between the two using Minecraft.getMinecraft().thePlayer.openGui(Mod.instance, ID_CUSTOM_GU, Minecraft.getMinecraft().theWorld, tile.xCoord, tile.yCoord, tile.zCoord); Thanks
  11. Hey ! I'm looking for a way to find out if the player is using an x-ray resourcepack. I've tried to retrieve stone texture in order to check whether it has transparency in it, but it didn't work. Any idea ?
  12. Hi, So I was trying to display an image on the overlay, I followed the wiki tutorial but the image won't display Can anyone give me an explanation ? public class GuiRadar extends Gui { private Minecraft mc; final ResourceLocation bg = new ResourceLocation("palatest:textures/items/radar.png"); public GuiRadar(Minecraft mc) { this.mc = mc; } @SubscribeEvent(priority = EventPriority.NORMAL) public void onRender(RenderGameOverlayEvent event) { mc.renderEngine.bindTexture(bg); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); GL11.glDisable(GL11.GL_LIGHTING); this.drawTexturedModalRect(10, 10, 0, 0, 16, 16); } }
  13. I'm looking for a way to find hidden chests. If there's no other way of finding how many tiles are around the player without lag, I will search for other alternatives. Concerning the range, a range of one chunk would be fine but it needs to go from the bedrock to the top of the map, so it's going to be a lot of blocs to check.
  14. Well, it means that i would have to check more than 60k blocs just for 1 chunk. I'm pretty sure it could cause a little bit of lag.
  15. Hey ! I'm a new moder and I wanted to know if there was a way to get the amount of TileEntitys that are in a certain radius of the player. I know that i could use world.loadedTileEntityList but my mod is meant for a server with thousands and thousands of TileEntitys, and if I just want to recover the Tiles around the player, it will create a lot of lags to get through all of those tiles. Any idea ? :3
×
×
  • Create New...

Important Information

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