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.

Taskkill

Members
  • Joined

  • Last visited

  1. If I found, I won't be here
  2. Is there a method to move the items? Inv Tweaks says that it is a client mod and can do that. Ummmm.
  3. I mean what kind of method to do that?
  4. How to do at the server ?
  5. 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?
  6. Press a key, then get the correct tool to harvest the block you looking at
  7. 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?
  8. Is there a event fired when player mid-click?
  9. 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?
  10. Ummm, I know what's wrong. /w/ Thanks.
  11. @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); } }
  12. [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
  13. Taskkill replied to Taskkill's topic in Modder Support
    Okay...
  14. 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.
  15. 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).

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.