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.

Orfeu

Members
  • Joined

  • Last visited

  1. Updated forge to 4.0.0.245 (FML 3.0.175.350) and got same result. Here's a small example. package net.minecraft.src; import java.util.Random; public class mod_DispenseTest extends BaseMod { public String getVersion() { return "1.0"; } public void load() {} public int dispenseEntity(World world, ItemStack item, Random rnd, int x, int y, int z, int xVel, int zVel, double entX, double entY, double entZ) { if (item.getItem().shiftedIndex == Block.stone.blockID) { EntityChicken chicken = new EntityChicken(world); chicken.setPosition(entX, entY, entZ); chicken.setVelocity(xVel, 0, zVel); world.spawnEntityInWorld(chicken); return 1; } return 0; } } This works with ModLoader. (chicken pops out) but with Forge, it's not. (just stone will dispensed) --edit-- Confirmed that the problem has been fixed on Forge 4.0.0.246 / FML 3.0.180.354 Thank you cpw
  2. dispenseEntity method in ModLoader-based mod is never called because FML has different method definition. ML: int dispenseEntity(World, ItemStack, Random, int, int, int, int, int, double, double, double) FML: int dispenseEntity(World, ItemStack, Random, double, double, double, int, int, double, double, double)

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.