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.

Leaderboard

Popular Content

Showing content with the highest reputation on 09/16/19 in all areas

  1. ...and you have 64 characters of length to play with.
  2. I found the solution, you need a music in MONO not in STEREO ... @kaydogz
  3. Its part of the Event parent class.
  4. You'll need a custom recipe for this. For example, I have something similar for crafting: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/hardlib/api/recipe/RecipeTagOutput.java Furnace (blasting, smelting, cooking) recipes use a similar system, I believe the class to look at is AbstractFurnaceRecipe and its subclasses.
  5. I don't think so. I also don't see the texture being bound. @nekosune Passes a TextureAtlasSprite(RenderEvents.MARK_SPRITE) to his drawTexturedOutline, but never binds that texture.
  6. Not sure if this is the cause, but you enabled texture 2D, then immediately disabled it here.
  7. No. The @SideOnly is used if the associated object should not exist on sides not specified in the parameters. This means classes annotated with @SideOnly(Side.Client) will not exist on the server side. It does nothing in loading something only on one side. Annotating an event subscriber with @SideOnly might work, but only due to the absence of the annotated object on the other side (which is considered hacky). One should use a side-specific event bus subscriber instead. GasMaskBar is client only. Assuming your event handler is triggered on both sides, this will cause a crash on the server. Either register your GUI in a client proxy or create a client-side event subscriber and register it there.
  8. This is an event. Instead use WorldEvent.PotentialSpawns until addSpawn is no longer protected I though I don't think that will happen.
  9. Again, that's not what side only does. If you want an event to only be registered on one side, you use the value=Dist.CLIENT parameter in the @EventBusSubscriber annotation. Also, its not called SideOnly any more. Its OnlyIn now. .
  10. Uh... public abstract class MobEntity extends LivingEntity { //... public final GoalSelector goalSelector; and protected void addSpawn(EntityClassification type, Biome.SpawnListEntry spawnListEntry) { //... } Forge build 1.14.4-28.0.45
  11. It doesn't help you. It's meant to help you be compatible with other mods. The best way to do what you are trying to do I think would be to cast the player to ServerPlayerEntity then get the PlayerInteractionManager field(interactionManager) and call PlayerInteractionManager#tryHarvestBlock(BlockPos)

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.