Skip 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.

warjort

Members
  • Joined

  • Last visited

Everything posted by warjort

  1. And events are explained on that same wiki: https://forge.gemwire.uk/wiki/Main_Page
  2. https://forge.gemwire.uk/wiki/Mob_Effects For an example look at WitherSkeleton.doHurtTarget()
  3. https://forge.gemwire.uk/wiki/Biome_Modifiers
  4. Your question is unanswerable. "It does not work" style statements contain no useful information. Show what you tried. Preferably by posting your code to github where we can see the full context.
  5. Update forge, you have mods that want a later version. e.g. create requires forge 40.1.60 or later.
  6. Use java 17. Mixin doesn't like java 19
  7. Update your java to a recent version.
  8. Jump Boost is a potion effect, it doesn't apply to items. The correct way to do this is to add your own net.minecraft.world.entity.ai.attributes.Attribute for this (unfortunately for you, Jump Boost doesn't use an Attribute). There is one for horse jumping. The quick and dirty alternate is to subscribe to LivingEquipmentChangeEvent and add/remove the mob effect yourself.
  9. mob effects (potion effects) apply to entities, you don't apply them to items. you can add enchantments using the enchant_with_levels loot item function if you want examples just look at the loot tables in the minecraft jar
  10. This command already exists: https://minecraft.fandom.com/wiki/Commands/effect
  11. WolfModel.prepareMobModel() Those data types you mention just mean the data is automagically synched to the client.
  12. Why do you need to use the name? Typically, you only need to do that with commands, e.g. see the GiveCommand and how it uses "targets". For adding effects to entities see WitherSkeleton.doHurtTarget() If you were going to do this outside of the context of commands, it would be something like this untested code: public static void setGlowing(ServerLevel level, String name) { var player = level.getServer().getPlayerList().getPlayerByName(name); if (player != null) { player.addEffect(new MobEffectInstance(MobEffects.GLOWING)); } }
  13. warjort replied to sfxdx's topic in Modder Support
    Your current code responds to every screen event. Look at all its subclasses. Use the one I told you to use.
  14. You can do what you like. But always remember that other mods will do what like as well. ๐Ÿ™‚
  15. Duplicate post also with no useful information.
  16. Not without you showing some relevant information. Never paraphrase errors. Post a link to the full debug.log
  17. See: https://forums.minecraftforge.net/topic/115993-how-to-remove-the-sight-cross-in-the-center-of-the-screen/#comment-512635 Except you want VanillaGuiOverlay.PLAYER_HEALTH and you want to do some replacement rendering.
  18. warjort replied to sfxdx's topic in Modder Support
    That is correct. But that is also not the name mentioned above. You should also try using proper logging or adding a breakpoint in a debugger instead of System.out.println().
  19. FontManager although the details are in the GlyphProvider implementations.
  20. Your error says there is mismatch in types for your inner (anonymous) classes when invoking an event. The event in question is for ClientTickEvent But I don't see you handling any ClientTickEvents in the code you posted? They are all ServerTickEvents. Are you sure you are running that code? BTW: I can see one obvious error but it doesn't really cause a problem because of the way tick events work and it's unrelated to your reported error. MinecraftForge.EVENT_BUS.register(this); // world is null here this.world = world; You should never call out from a constructor into unknown code before your object state is fully initialized.
  21. See: https://forums.minecraftforge.net/topic/115751-119-creating-new-biome/ or one of the many other discussions in this forum that contains more details.
  22. Issue with flywheel, probably a conflict with another mod. Check you have the latest version then contact the mod author.
  23. Looks like a conflict between reliquary and aoa3. Check you have the latest versions then contact the mod authors.
  24. I would guess no. As you say 1.18 is LTS. You can't change the api and break all the mods. ๐Ÿ™‚
  25. Since you don't post any useful information (including the file you modified) it is impossible to say. What makes you think a lack of heap memory is the cause of your problem? You can use a mod like this to analysis server performance https://www.curseforge.com/minecraft/mc-mods/spark see its wiki and docs for how to use it.

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.