Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

jmylifecolor

Members
  • Joined

  • Last visited

Everything posted by jmylifecolor

  1. ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ * Do you need players to have ADDITIONAL inventory (on top of vanilla's), meaning they have their normal one (9x "hotbar" + 27x "inventory" +4x "armour") + yours (additional 9 slots)? -- i need only 9 hotbar, 4x'armor' slot. * Do you want (as looking at screen you posted) to LOCK other slots (make 27 of them unusable) and leave only those 9x "hotbar" + 4x "armour"? -- yeah. i need other 27 slot remove. i only need 9 hotbar slot. * Or maybe you don't want any new inventory, and you just want to make different display that shows hotbar slots and armour slots from standard player's inventory? --yeah! If possible, I want to use standard inventory. I don't care all way. Just, I want to make like a my post photo Thank you so much. for your answers
  2. Hi. I can't english very well. sorry my english write skill.. T__T I want to my 'custom player class' make new inventory. so I try copying my 'Inventory Player Class' to create my Custom class but It can't write code that is detail. I want to Results Photo. Please Give me Tutorial , advice T__T
  3. Oh, Thanks! I want to get the tick per second for object (example) I want to make die after 30 seconds. (poison effect) Do you know how?
  4. public class DeadNPC extends EntityZombie { public DeadNPC(World par1World) { super(par1World); } @Override public void onEntityUpdate() { System.out.println("Update Test"); } Sorry. i can't english very well. When Called function "OnEntityUpdate" Animaation Problem In my custom zombie class. <- Problem video
  5. Oh! Good Answer. This was perfectly understood. Thanks bro. solve as next: //param is Server World. EntityZombie zombie = new EntityZombie( MinecraftServer.getServer().getEntityWorld()); //First server MinecraftServer.getServer().getEntityWorld().spawnEntityInWorld(zombie); //Last Client Create. e.entityPlayer.getEntityWorld().spawnEntityInWorld(zombie);
  6. @SubscribeEvent//오른쪽 클릭했을때 이벤트 public void onEntityRightClicked(EntityInteractEvent e) { EntityCow dead; if (e.target instanceof EntityPig) { EntityPig pig = (EntityPig) e.target; double x = pig.posX; double y = pig.posY; double z = pig.posZ; dead = new EntityCow(e.target.worldObj); dead.copyLocationAndAnglesFrom(pig); // dead.setPosition(x,y,z); System.out.println(dead.getCommandSenderName() + dead.posX + ","+ dead.posY + "," + dead.posZ); pig.setDead(); } } why not working my code..? pig delete working. buy, not create cow entity..
  7. ////////Getting All Player ////////////// ArrayList<EntityPlayerMP> AllPlayer = new ArrayList<EntityPlayerMP>(); ListIterator itl; for(int i = 0; i<MinecraftServer.getServer().worldServers.length; i++) { itl = MinecraftServer.getServer().worldServers[i].playerEntities.listIterator(); while(itl.hasNext()) AllPlayer.add((EntityPlayerMP)itl.next()); } ////////////////////////////////////////// //// IgameInfo.Player is Custom EntityPlayerMP Array List. /////// IGameInfo.Player.clear(); // Cleary for(int i=0; i<AllPlayer.size(); i++) { //↓This code Error.. CustomPlayer player = new CustomPlayer(MinecraftServer.getServer().worldServers[i], AllPlayer.get(i).getGameProfile()); IGameInfo.Player.add(player); } CustomPlayer Code. public class CustomPlayer extends EntityPlayerMP { public enum JOB { Detective,JoblessPerson,Police,Cleaner,Army,Programmer,secretary } //직업을 설정한다. public JOB job; // 살인마인지 아닌지를 체크한다. public boolean isKiller; public CustomPlayer(WorldServer world, GameProfile name) { super(FMLCommonHandler.instance().getMinecraftServerInstance(), world, name, new ItemInWorldManager(world)); } } Error message at IGame.Command.IGameStart.SetIGamePlayerList(IGameStart.java:103) ~[iGameStart.class:?] at IGame.Command.IGameStart.processCommand(IGameStart.java:124) ~[iGameStart.class:?] at net.minecraft.command.CommandHandler.executeCommand(CommandHandler.java:96) [CommandHandler.class:?] at net.minecraft.network.NetHandlerPlayServer.handleSlashCommand(NetHandlerPlayServer.java:788) [NetHandlerPlayServer.class:?] at net.minecraft.network.NetHandlerPlayServer.processChatMessage(NetHandlerPlayServer.java:764) [NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.C01PacketChatMessage.processPacket(C01PacketChatMessage.java:47) [C01PacketChatMessage.class:?] at net.minecraft.network.play.client.C01PacketChatMessage.processPacket(C01PacketChatMessage.java:68) [C01PacketChatMessage.class:?] at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?] at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?] sorry i can't english very well.. This code working 3 or less player... but, If my server players 4 or more player than print error message what problem.. ?
  8. Oh, Thanks Your Answer. I can't english very well.. sorry I tried my custom class extends EntityPlayerMP. But that is the problem then. I don't know. public CustomPlayer(MinecraftServer server WorldServer problem_1, GameProfile uuid, ItemInWorldManager problem_2) i don't know input problem_1, problme_2...
  9. I can make Custom EntityPlayerMP? Please Help me..
  10. MyCode: @SubscribeEvent public void onEntityRightClicked(EntityInteractEvent e) { if (e.target instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer)e.target; e.entityPlayer.addChatMessage(new ChatComponentText(player.getDisplayName() +"을 선택했습니다.")); InventoryPlayer inv = player.inventory; e.entityPlayer.displayGUIChest(inv); } } I Want to Read-Only InventoryPlayer.. How to?
  11. oh, thanks. The best answer I wanted.
  12. Oh oh!!! Thanks. I Find Create LAN-SERVER System. Thanks
  13. I want to player close to me. how to?
  14. my code : @SubscribeEvent public void onJoin(ClientConnectedToServerEvent event) { mc.getSoundHandler().playSound(PositionedSoundRecord.func_147673_a(new ResourceLocation(IGamePlugin.MODID, "sounds/bgm/sound"))); } sound file position : C:\Users\JSH\Desktop\forge\src\main\resources\assets\igame\sounds\bgm\sound.ogg this code error :Unable to play unknown soundEvent: igame:sounds/bgm/sound What Problem T__T?
  15. first sorry. i can't english very well ------------------------------------------- I'm Modding MultiPlayer Game. But I alone cannot be tested. so, i think make virtual player.(AI) virtual client create is possible?
  16. Oh! i have Object-Oriented Programming(JAVA,C#) Skill. but, i think my english expression is problem. I understand the event. just i want to get target's classes(EntityPlayerMP) when i click right button to other user(target).. today first time I tried Forge-Programming. sorry. Thanks to everyone Answer.
  17. sorry, i can't english very well.. When Right Click Other Player, I want to Get that this Player Object class.. or, if right click Zombie, I want to Get Zombie Object class
  18. sorry i can't english very well.. When Right Click Other Player, I want to Get that player class..T__T
  19. sorry i'm korean i can't write english very well.. i want to on Right-click event get aiming target class. (Player or Monster All..) How to? Please Answer me T__T

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.