Jump to content
  • Home
  • Files
  • Docs
  • Merch
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Taskkill

Taskkill

Members
 View Profile  See their activity
  • Content Count

    43
  • Joined

    January 19, 2017
  • Last visited

    July 30

 Content Type 

  • All Activity

Profiles

  • Status Updates
  • Status Replies

Forums

  • Topics
  • Posts

Calendar

  • Events
  • Event Comments

Everything posted by Taskkill

  • Prev
  • 1
  • 2
  • Next
  • Page 1 of 2  
  1. Taskkill

    [1.13+] How to move item's slot at client side

    Taskkill replied to Taskkill's topic in Modder Support

    If I found, I won't be here
    • July 12
    • 12 replies
  2. Taskkill

    [1.13+] How to move item's slot at client side

    Taskkill replied to Taskkill's topic in Modder Support

    Is there a method to move the items? Inv Tweaks says that it is a client mod and can do that. Ummmm.
    • July 12
    • 12 replies
  3. Taskkill

    [1.13+] How to move item's slot at client side

    Taskkill replied to Taskkill's topic in Modder Support

    I mean what kind of method to do that?
    • July 12
    • 12 replies
  4. Taskkill

    [1.13+] How to move item's slot at client side

    Taskkill replied to Taskkill's topic in Modder Support

    How to do at the server ?
    • July 12
    • 12 replies
  5. Taskkill

    [1.13+] How to move item's slot at client side

    Taskkill replied to Taskkill's topic in Modder Support

    But the operation is at the client side, is there any way to let the server know that I move the item by doing something like sending a packet?
    • July 12
    • 12 replies
  6. Taskkill

    [1.13+] How to move item's slot at client side

    Taskkill replied to Taskkill's topic in Modder Support

    Press a key, then get the correct tool to harvest the block you looking at
    • July 12
    • 12 replies
  7. Taskkill

    [1.13+] How to move item's slot at client side

    Taskkill posted a topic in Modder Support

    How to move item's slot at the client-side? For example, I have a stone in slot 1, and how to move it to the hotbar?
    • July 12
    • 12 replies
  8. Taskkill

    Is there a event fired when player mid-click?

    Taskkill posted a topic in Modder Support

    Is there a event fired when player mid-click?
    • June 27
    • 1 reply
  9. Taskkill

    Some Problem on IModGuiFactory

    Taskkill posted a topic in Modder Support

    I have two config class with @Config, same modid, but different category. How to create an IModGuiFactory that contains all the things in 2 configs?
    • June 22
    • 1 reply
  10. Taskkill

    ObjectHolder registered twice for the same name

    Taskkill replied to Taskkill's topic in Modder Support

    Ummm, I know what's wrong. /w/ Thanks.
    • June 17
    • 7 replies
  11. Taskkill

    ObjectHolder registered twice for the same name

    Taskkill replied to Taskkill's topic in Modder Support

    @ObjectHolder(Doge.MODID) public class ModObjects { public static final Item doge = null; public static final Block fishless_ice = null; public static final ItemSpell inf_food_bag = null; public static final ItemSpell double_death = null; public static final ItemSpell expelliarmus = null; public static final ItemSpell modearkar = null; public static final ItemSpell alohomora = null; public static final ItemSpell polymorph = null; } import static cn.glycol.doge.ModObjects.*; @Mod.EventBusSubscriber public class RegistrationEvent { private static RegistryEvent.Register<Item> itemEvent; private static RegistryEvent.Register<Block> blockEvent; @SubscribeEvent public static void onItemRegistration(RegistryEvent.Register<Item> evt) { itemEvent = evt; registerItem(new ItemDoge()); registerBlockItem(fishless_ice); registerSpell("inf_food_bag", new SpellInfFoodBag()); registerSpell("double_death", new SpellDoubleDeath()); registerSpell("expelliarmus", new SpellExpelliarmus()); registerSpell("modearkar" , new SpellModearkar()); registerSpell("alohomora" , new SpellAlohomora()); registerSpell("polymorph" , new SpellPolymorph()); } @SubscribeEvent public static void onBlockRegistration(RegistryEvent.Register<Block> evt) { blockEvent = evt; registerBlock(new BlockFishlessIce()); } @SubscribeEvent public static void onModelRegistration(ModelRegistryEvent evt) { registerModel(doge); registerModel(fishless_ice); registerModel(inf_food_bag); registerModel(double_death); registerModel(expelliarmus); registerModel(modearkar); registerModel(alohomora); registerModel(polymorph); } private static void registerItem(Item item) { if(itemEvent != null) itemEvent.getRegistry().register(item); } private static void registerSpell(String registry, IModSpell spell) { registerItem(new ItemSpell(registry, spell)); } private static void registerBlock(Block block) { if(blockEvent != null) blockEvent.getRegistry().register(block); } private static void registerBlockItem(Block block) { registerItem(new ItemBlock(block).setRegistryName(block.getRegistryName())); } private static void registerModel(Item item) { registerModel(item, 0); } private static void registerModel(Item item, int metadata) { LogManager.getLogger().info("注册模型 {} {}", item.getRegistryName(), metadata); ModelLoader.setCustomModelResourceLocation(item, metadata, new ModelResourceLocation(item.getRegistryName(), "inventory")); } private static void registerModel(Block block) { registerBlock(block); } private static void registerModel(Block block, int metadata) { registerModel(Item.getItemFromBlock(block), metadata); } }
    • June 17
    • 7 replies
  12. Taskkill

    ObjectHolder registered twice for the same name

    Taskkill posted a topic in Modder Support

    [21:24:54] [Client thread/WARN] [FML]: **************************************** [21:24:54] [Client thread/WARN] [FML]: * Registry Block: The object Block{doge:fishless_ice} has been registered twice for the same name doge:fishless_ice. [21:24:54] [Client thread/WARN] [FML]: * at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:307) [21:24:54] [Client thread/WARN] [FML]: * at net.minecraftforge.registries.ForgeRegistry.add(ForgeRegistry.java:288) [21:24:54] [Client thread/WARN] [FML]: * at net.minecraftforge.registries.ForgeRegistry.register(ForgeRegistry.java:120) [21:24:54] [Client thread/WARN] [FML]: * at cn.glycol.doge.event.RegistrationEvent.registerBlock(RegistrationEvent.java:76) [21:24:54] [Client thread/WARN] [FML]: * at cn.glycol.doge.event.RegistrationEvent.registerModel(RegistrationEvent.java:93) [21:24:54] [Client thread/WARN] [FML]: * at cn.glycol.doge.event.RegistrationEvent.onModelRegistration(RegistrationEvent.java:57)... [21:24:54] [Client thread/WARN] [FML]: **************************************** What's the right way to register a Block with ItemBlock, and register its model. The document is... ummm
    • June 17
    • 7 replies
  13. Taskkill

    About I18n

    Taskkill replied to Taskkill's topic in Modder Support

    Okay...
    • March 25
    • 14 replies
  14. Taskkill

    About I18n

    Taskkill replied to Taskkill's topic in Modder Support

    I know. You don't understand what I mean. Maybe It's because of my poor English. The book, just when I open it, it'll read the I18n keys and automatically translate to the content.
    • March 25
    • 14 replies
  15. Taskkill

    About I18n

    Taskkill replied to Taskkill's topic in Modder Support

    Ummm, I wanna a book that can auto get the content from I18n from the key given by ItemStack(or NBT).
    • March 25
    • 14 replies
  16. Taskkill

    About I18n

    Taskkill replied to Taskkill's topic in Modder Support

    A book which can translate from I18n...
    • March 25
    • 14 replies
  17. Taskkill

    About I18n

    Taskkill replied to Taskkill's topic in Modder Support

    Is there an API for it, or example?
    • March 25
    • 14 replies
  18. Taskkill

    About I18n

    Taskkill posted a topic in Modder Support

    How can I let a book use a translation from I18n? or How can get I18n translation from local when it's a server? I use it for books. And please excuse my poor English.
    • March 25
    • 14 replies
  19. Taskkill

    NBT Missing Text

    Taskkill replied to Taskkill's topic in Modder Support

    You're right, thanks! (看啊,交个朋友?)
    • March 24
    • 2 replies
      • 1
      • Haha
  20. Taskkill

    NBT Missing Text

    Taskkill posted a topic in Modder Support

    The problem happens when I create my custom Written Book. This is my book builder. public static class BookBuilder { NBTTagList pages = new NBTTagList(); NBTTagCompound nbt = new NBTTagCompound(); public BookBuilder(String title) { this.setTitle(title); } public BookBuilder addPage(String content) { pages.appendTag(new NBTTagString(content)); return this; } public BookBuilder setTitle(String title) { nbt.setString("title", title); return this; } public BookBuilder setAuthor(String author) { nbt.setString("author", author); return this; } public ItemStack toBook() { ItemStack book = new ItemStack(Items.WRITTEN_BOOK); nbt.setTag("pages", pages); book.setTagCompound(nbt); return book; } } And use it to create a ItemStack. ItemStack book = new WrittenBookHelper.BookBuilder(I18n.format("item.LeeroyJenkins.meme.title")) .setAuthor("Taskeren") .addPage(I18n.format("item.LeeroyJenkins.meme.0")) .addPage(I18n.format("item.LeeroyJenkins.meme.1")) .toBook(); Result is that I got a book with only the text before the first space. For example, item.LeeroyJenkins.meme.1=在炉石传说中,卡牌描述的内容为“At least we got Angry Chicken(至少我们还有愤怒的小鸡)”以及繁体中文中的火车王叫做“炸鸡勇者”。 The book can only have 在炉石传说中,卡牌描述的内容为“At Missing the text after the first space. Is there a better BookBuilder? Or how can I let it works as I expect? Finally, please excuse my poor English.
    • March 24
    • 2 replies
  21. Taskkill

    [1.12] How to add/change ItemStack's Lore

    Taskkill replied to Taskkill's topic in Modder Support

    Nope, I mean that I wanna create an ItemStack with the lore in forge mod, not using the command. But I find the way just now, thank you!
    • February 28
    • 3 replies
  22. Taskkill

    [1.12] How to add/change ItemStack's Lore

    Taskkill posted a topic in Modder Support

    I have no idea about setting item's lore with NBT. I just wanna add some lore to the item.
    • February 28
    • 3 replies
  23. Taskkill

    How to dev 2 mods with 1 pc

    Taskkill replied to Taskkill's topic in Modder Support

    So please tell me what I should do?
    • February 7
    • 3 replies
  24. Taskkill

    How to dev 2 mods with 1 pc

    Taskkill posted a topic in Modder Support

    Please excuse my poor English. I had a project. And I wanna dev another. But when I copy the first and start my eclipse, the project is still the old one. What can I do?
    • February 7
    • 3 replies
  25. Taskkill

    [1.12.2] How to get looting table and generate an itemstack from it

    Taskkill replied to Taskkill's topic in Modder Support

    I've seen that. But I cannot understand it. Can you please give an example? Thanks a lot!
    • January 13
    • 5 replies
  • Prev
  • 1
  • 2
  • Next
  • Page 1 of 2  
  • All Activity
  • Home
  • Taskkill
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community