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


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About nooblong

  • Rank
    Tree Puncher
  1. I storge data in an item's nbt, how can i get these data in the ContainerScreen and storge data into item's nbt again. i have no idea how to communicate between client's screen and container. My purpose is to save different data for different item and show them on gui
  2. I found a very stupid way to save my (Screen) data for each block instead of using (ContainerScreen) public class Mp3Gui extends Screen { ... public class BlockMp3 extends BlockBase { @Override public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit) { if (!worldIn.isRemote){ Mp3TileEntity t = (Mp3TileEntity) worldIn.getTileEntity(pos); System.out.println("server send Gui packet"); MySimpleNetworkHandler.INSTANCE.send(PacketDistributor.PLAYE
  3. ok, i found how to do in SkinManager , thank you so much
  4. one last question, Can I customize the ResourceLocation and Let it point to a folder at the same level as /mods How should I modify the sounds.json? I want to register resources dynamically in the game.
  5. I use SImpleChannel to send message, it works on single player, but when I use server and client, client show internal exception io.netty.handler.codec.decoderException:java.io.IOExcepton: payload may not be larger than 32767 bytes how to send larger files, or how to split it to send
  6. I want to upload some file from client to server, Or you mean I would better to use minecraft's own tool to upload about 10M file?
  7. I make a netty server on mod. @Mod.EventBusSubscriber(modid = MusicRestaurant.MOD_ID, value = Dist.DEDICATED_SERVER) public class ServerEventSubscriber { @SubscribeEvent public static void serverStarted(FMLServerStartedEvent event){ try { System.out.println("nettyStart"); NettyServer.start(); } catch (Exception e) { e.printStackTrace(); } } @OnlyIn(Dist.DEDICATED_SERVER) public class NettyServer { public static final int PORT = 12333; static EventLoopGroup bossGroup = new NioEventLoopGroup(); st
  8. How to get the player to switch to vec3 after getting it, or do you have a tutorial on this, I can hardly find it online
  9. i tried : player.setPositionAndUpdate(player.posX+1, player.posY, player.posZ+1); It just changing the x and y coordinates. Can I make player Move toward the mouse but Do not change orientation? Or force the player to press the w key for a while.what should I do?
  • Create New...

Important Information

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