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.

berserker793

Members
  • Joined

  • Last visited

  1. I want my entity to spawn a few seconds after the sound plays player.playSound(SoundInit.HORN_DISC.get(), SoundCategory.AMBIENT, 5.0f, 1.0f); if(entitytype.spawn((ServerWorld)world, itemstack, context.getPlayer(), blockpos1, SpawnReason.SPAWN_EGG, true, !Objects.equals(blockpos, blockpos1) && direction == Direction.UP) != null) { if(!player.abilities.isCreativeMode) { itemstack.setDamage(1); } }
  2. Hello. I want to delay the execution of code, so therefore I need a manual tick counter. Problem is I don't know how to make a manual tick counter. Can someone send me an example of one or simply explain what I have to do? Please understand that I am new modding and coding in general so I'd appreciate it if you were to give a more detailed explanation. Thanks in advance.
  3. I want to make an object of ServerWorld inside the Item#onItemUse method. I am very new to java and modding and I need help. I tried doing ServerWorld world = new Serverworld(...); but it has a lot of parameters. So how should I do this?
  4. So I am new to modding and I was wondering how I can like my 2 (and more in the future) mods using dependencies (I have my main mod and a side mod). I tried putting the dependency in the mods.toml file and include the .jar file of my main mod in run>mods but it shows an error (shown below). https://github.com/congueror/CTools https://github.com/congueror/CLib EDIT: congueror's lib is my main mod
  5. berserker793 joined the community
  6. When ever I try killing the ender dragon it crashes my game and sends me this: Colliding entity with block java.lang.NullPointerException: Colliding entity with block I have 5GB Allocated and I tried this with no mods and it still crashed. Please fix this and keep up the good work.

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.