Jump to content

Fel486

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by Fel486

  1. Hi. I've played some servers and most of them have multiple "worlds", I guess. That means I can teleport to somewhere that seems to be not the same world I spawn initially. So how do I create this world? Is it a WorldServer class or a World class? I'd like to create something like this, as I wish to register it only on the server-side (with a Dimension I'll to register it also on the client-side)
  2. I thought actually it could be, since the topic I saw before about this subject was over 3 years ago. Sadly I'll have to make a mod apart and give to those whom will play on my server.. (what I wanted to avoid since, for while, I won't have any custom items) Thanks
  3. I registered a new dimension on my server's mod (supposed to be server-side only). When I teleport to it, that's ok, works.. But if I disconnect and connect again, I get stuck on "Logging in..." Can't I make it work by registering only on the server side? It doesn't uses any custom blocks, items, biomes, or whatever..
  4. Thank you, now it's a little better to understand. But I'm getting an error while generating chunks. The Code + Exception are on this link: https://pastebin.com/cNuKjyE0 java.lang.NullPointerException: null at net.minecraft.world.Teleporter.placeInExistingPortal(Teleporter.java:136) ~[Teleporter.class:?] at net.minecraft.world.Teleporter.placeInPortal(Teleporter.java:39) ~[Teleporter.class:?] at net.minecraft.world.Teleporter.placeEntity(Teleporter.java:443) ~[Teleporter.class:?] at net.minecraft.server.management.PlayerList.transferEntityToWorld(PlayerList.java:762) ~[PlayerList.class:?] at net.minecraft.server.management.PlayerList.transferPlayerToDimension(PlayerList.java:662) ~[PlayerList.class:?] at net.minecraft.entity.player.EntityPlayerMP.changeDimension(EntityPlayerMP.java:745) ~[EntityPlayerMP.class:?] at net.minecraft.entity.Entity.changeDimension(Entity.java:2911) ~[Entity.class:?] at com.felzend.commands.SwitchWorldCommand.execute(SwitchWorldCommand.java:32) ~[SwitchWorldCommand.class:?] at net.minecraft.command.CommandHandler.tryExecute(CommandHandler.java:126) [CommandHandler.class:?] at net.minecraft.command.CommandHandler.executeCommand(CommandHandler.java:98) [CommandHandler.class:?] at net.minecraft.network.NetHandlerPlayServer.handleSlashCommand(NetHandlerPlayServer.java:1003) [NetHandlerPlayServer.class:?] at net.minecraft.network.NetHandlerPlayServer.processChatMessage(NetHandlerPlayServer.java:979) [NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.CPacketChatMessage.processPacket(CPacketChatMessage.java:47) [CPacketChatMessage.class:?] at net.minecraft.network.play.client.CPacketChatMessage.processPacket(CPacketChatMessage.java:8) [CPacketChatMessage.class:?] at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) [PacketThreadUtil$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_251]
  5. Hello, guys. I've created a new dimension for my server extending from WorldProvider, but no blocks are being generated. So I noticed I need a ChunkGenerator for generate anything I want, such like blocks and structures. I'd like to have a simple example of code that generates a simple map just like SuperFlat World in Minecraft (like on the attachment picture) or some tip on how to start placing blocks or structures. My Dimension and Biome are already registered and works, but most of time I teleported to the dimension it won't load the map, I guess because there's no content. My code: https://pastebin.com/Yt1mEUdL
  6. Finally I got, omg ><''. Followed the sequence and found another example, and got it. Thanks!
  7. And what I put on the constructor of this class that extends Container?
  8. Dude ><... I think yours contains much more than the basic, because it's so hard.. I really can't figure out. Please take a look ---> https://github.com/Fel486/othermine/tree/master
  9. Sure, but I'm lost, I've tried here. Let's go, what really I need? - On the main I register on NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler()); [OK] - I make a new static variable called instance: @Instance("myModID")public static MainClass instance; [OK] - a Block Container (which will be registered in the game and which I can activate with right button) [OK] - a Class that will Extend to GuiContainer, sure? - There I put a STATIC FINAL int to define it's ID. [OK] - On the Block Container's method called onBlockActivated, I do player.openGui(Main.instance, ID_I_DEFINED, world, x, y, z); [OK] - And now, on GuiHandler, what do I do? @Override public Object getServerGuiElement(int arg0, EntityPlayer arg1, World arg2, int arg3, int arg4, int arg5) { if(arg0 == GUI.GUI_ID) { // what now? } return null; }
  10. Thanks, that shows clearly the part about the GuiContainer and BlockContainer, but what about the @SidedProxy? How do I do this? I saw your ClientProxy and CommonProxy, really can't understand what I really need...
  11. Sorry, but that has nothing to do with my problem. The question is about how to create a GUI (open a inventory or text field when right click on a block). Yes, that's related to BlockContainer, but I already used the method onBlockActivated, I just need now how to create a GUI, the one that uses "Player.openGui(...);" to open it.
  12. Hello guys, I'm using Forge 1.7.10, and the problem has to do with GUI. Well, there are a lot of tutorials I found, but most of them are for older versions, and the ones really to 1.7.10 I can't figure out what really I have to do. GuiScreen? GuiContainer? GuiHandler? ClientProxy? ServerProxy? @NetworkMod? TileEntity? Can anyone help me with a example that really works? ><"
  13. Mostly I can figure out, but these with a lot of parameters are a little hard, depending of the context. But well, isn't there a any? Everyone I see has this working, it's really annoying to see lot of Arg0, Arg1....
  14. Well, I set up Forge 1.7.10 on Eclipse by yesterday, and so, most of methods are misunderstood, example: public void onBlockAdded(World p_onBlockAdded_1_, int p_onBlockAdded_2_, int p_onBlockAdded_3_, int p_onBlockAdded_4_) Which means I need Javadoc, sure? Well, I downloaded from the site, put, but it still doesn't changes. Or is there another Javadoc folder I need to download? Or anything else to do after set a Javadoc directory? Thanks.
×
×
  • Create New...

Important Information

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