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.

CurseGame

Members
  • Joined

  • Last visited

Everything posted by CurseGame

  1. Seems fixed in https://github.com/MinecraftForge/MinecraftForge/pull/10171
  2. The server player instance isn't passed to the OnDatapackSyncEvent. It's impossible to sync with the client side using this command. package net.minecraft.server.players; ... public abstract class PlayerList { ... servergamepacketlistenerimpl.send(new ClientboundSetCarriedItemPacket(p_11263_.getInventory().selected)); net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.OnDatapackSyncEvent(this, null)); servergamepacketlistenerimpl.send(new ClientboundUpdateRecipesPacket(this.server.getRecipeManager().getOrderedRecipes())); this.sendPlayerPermissionLevel(p_11263_); previous version passed player correctly servergamepacketlistenerimpl.send(new ClientboundSetCarriedItemPacket(p_11263_.getInventory().selected)); net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.OnDatapackSyncEvent(this, p_11263_)); servergamepacketlistenerimpl.send(new ClientboundUpdateRecipesPacket(this.server.getRecipeManager().getRecipes()));
  3. In the 1.21 the SynchedEntityData object is final and it's unable to add new Player attributes using traditional EntityConstructing. I make sense to fire the event a little earlier and pass SynchedEntityData.Builder object in it. See example below. public Entity(EntityType<?> p_19870_, Level p_19871_) { ... synchedentitydata$builder.define(DATA_TICKS_FROZEN, 0); this.defineSynchedData(synchedentitydata$builder); // suggested injection net.minecraftforge.event.ForgeEventFactory.onEntityConstructing(this, synchedentitydata$builder); this.entityData = synchedentitydata$builder.build(); this.setPos(0.0, 0.0, 0.0); this.eyeHeight = this.dimensions.eyeHeight(); // current injection net.minecraftforge.event.ForgeEventFactory.onEntityConstructing(this); this.gatherCapabilities(); }
  4. Guys, please, fix this bug. Hundreds mods with no images in tooltips.

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.