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.

Koque

Members
  • Joined

  • Last visited

  1. Hey, Because i couldn't find entry for loot tables in the 1.15.x documentation, so I tried to edit the drop from a sand block with the help from the 1.13.x documentation. But I ran in two problem. After reading the article about editing vanilla loot tables my code looks like the following: @SubscribeEvent public void lootLoad(LootTableLoadEvent event) { if (event.getName().toString().equals("minecraft:blocks/sand")) { LootEntry entry = new LootEntryTable(new ResourceLocation("mymod:inject/sand"), 100, 100, 0, "sand_entry"); LootPool pool = new LootPool(new LootEntry[] {entry}, 0, 1, 0, "sand_pool"); event.getTable().addPool(pool); } } The following errors appear: 1. The documentation says, I need to create a new LootEntry with new LootEntryTable(), but there is not a Class LootEntryTable, which can be imported. 2. When trying to create the pool, the IDE says: private LootPool(@NotNull net.minecraft.world.storage.loot.LootEntry[] p_i51268_1_, @NotNull net.minecraft.world.storage.loot.conditions.ILootCondition[] p_i51268_2_, @NotNull net.minecraft.world.storage.loot.functions.ILootFunction[] p_i51268_3_, net.minecraft.world.storage.loot.IRandomRange p_i51268_4_, net.minecraft.world.storage.loot.RandomValueRange p_i51268_5_, String name) No plan what the IDE wants me to say. Due to I haven't used Java in a while and switched from NetBeans to Intellij, I a noob in this area. I appreciate every kind of help.
  2. Thank you for the tip, didn't know this is possible! The thread is now closed for me.
  3. I used Java over a year ago, but changed to Python, in addition due to better Gradle support I changed from NetBeans to IntelliJ, so my Java knowledge is at the time only bit more than the basics. The IDE tells me, there are 3 arguments missing, but nothing more. I couldn't find the Java Docs of the Forge API. Thank you for the missing arguments.
  4. Hey, I'm trying to write some forge mods. I have experience with the Spigot API, but due , at my opinion, the bad documentation and tutorials, I have some problems. I started with the tutorial by tcode2k16 and the forge documentation. Now I want to create an Custom Shovel having the same stats like the iron shovel, just with other texture, name and recipe. At first, I tried the following, but this didn't work, because I don't know which arguments are missing: public static final RegistryObject<Item> MY_SHOVEL = ITEMS.register("my_shovel", () -> new ShovelItem(new Item.Properties().group(ItemGroup.TOOLS).addToolType(ToolType.SHOVEL, 2)) ); I searched a lot, but didn't find anything beginner friendly helping me (my english is not the best too ). I would appreciate it, if someone could help with this problem or link some guides or a detailed documentation being up to date!

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.