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.

warjort

Members
  • Joined

  • Last visited

Everything posted by warjort

  1. Your link is broken. Instead of fixing it, post the log instead.
  2. You have an issue where the server has an item called "thermal:steel_block" but the client does not. Check you have the same versions of the thermal mod and the modpack in general on the client and server. Then contact the mod author or mod pack author.
  3. EnchantmentCategory implements IExtensibleEnum Here's a simple example I found using a github search: https://github.com/search?q=EnchantmentCategory&type=code https://github.com/vemerion/Runeworld/blob/7865c63faf41e47885113f73ab125efdad4b0fa8/src/main/java/mod/vemerion/runeworld/enchantment/ModEnchantmentCategories.java
  4. Issue with the obfuscate mod. Almost certainly because it is not a mod for 1.19.2 https://www.curseforge.com/minecraft/mc-mods/obfuscate
  5. Normally you wouldn't override that method. You pick an EnchantmentCategory and that decides which items it applies to, see that class. You can use your IDE to search for vanilla enchantments that do override it. e.g. the DiggerEnchantment overrides it to also allow it to be applied to shears which isn't a DiggerItem
  6. Looks like forge doesn't like the version format of the advancement trophies mod? Contact the mod author.
  7. Just look at what AbstractContainerScreen.renderLabels() does. It draws the title and the "Inventory" text.
  8. Your pastebin is private.
  9. https://github.com/Asek3/Oculus/issues/257
  10. Issue with the infernal expansion mod. Probably because the version you have is not compatible with 1.19.2?
  11. You are missing the mrcrayfish framework mod.
  12. Can you please stop posting snippets and show all the relevant code (preferably on github), so I don't have to guess what you are doing and waste my time like I did above. e.g. (and it is only one example) what does this do: Without seeing all the code, I can't tell why your xmap solution doesn't work, you don't show where/how it is referenced/used.
  13. I don't really follow what you are trying to do from that description. 🙂 But if you want to change the codec based on a "type" field, look at Codec.partialDispatch() or one of its simplified helpers that call it. The basic idea is you tell it the name of type field, and then some functions that tell it how to map type -> Codec<value> and value -> type Here's a "simple" example I knocked up. I obviously don't recommend using the class name in a real world example as the type discriminator. You can use any "primitive" type as the typeCodec, e.g. a ResourceLocation public class TypedCodecRegistry<TYPE, VALUE> { // The codec for the type field private final Codec<TYPE> typeCodec; // The mapping of value -> type private final Function<VALUE, TYPE> typeFunction; // type -> real codec private final Map<TYPE, Codec<? extends VALUE>> CODECS = new HashMap<>(); public TypedCodecRegistry(Codec<TYPE> typeCodec, Function<VALUE, TYPE> typeFunction) { this.typeCodec = typeCodec; this.typeFunction = typeFunction; } public Codec<VALUE> codec() { return this.typeCodec.partialDispatch( "type", // The name of the type field // given a value what is its type? value -> DataResult.success(this.typeFunction.apply(value)), // look up the codec for a type or its an error type -> Optional.ofNullable(this.CODECS.get(type)).map(DataResult::success).orElse(DataResult.error("Unknown type " + type))); } public void register(TYPE type, Codec<? extends VALUE> codec) { this.CODECS.put(type, codec); } public static void main(String[] args) { // type is the class's simple name var registry = new TypedCodecRegistry<>(Codec.STRING, value -> value.getClass().getSimpleName()); var codec = registry.codec(); registry.register(Integer.class.getSimpleName(), Codec.INT); registry.register(String.class.getSimpleName(), Codec.STRING); registry.register(ResourceLocation.class.getSimpleName(), ResourceLocation.CODEC); System.out.println(encode(codec, "hello world")); System.out.println(encode(codec, 42)); System.out.println(encode(codec, new ResourceLocation("minecraft:dirt"))); } public static String encode(Codec<Object> codec, Object value) { return codec.encodeStart(JsonOps.INSTANCE, value).getOrThrow(false, System.err::println).toString(); } } It outputs
  14. I've never seen anything like that. I would suggest backing up your worlds and then doing a full clean reinstall. Something is obviously very broken, but trying to track it down with no information is going to be a lot slower.
  15. https://forums.minecraftforge.net/topic/119038-1192-failed-to-run-example-mod-on-fresh-setup/#comment-522788
  16. You have 5 mods that want a different version of forge. You have an issue with the t_and_t mod injecting a mixin that tries to load a class that doesn't exist. Contact the mod author.
  17. This error means the server is trying to send block information to the client, but the client can't find the block. There are other errors before the one that causes the crash. Some have a different error that says the palette is the wrong length. I can see you don't have the correct/latest preview release of optifine so try that. Or try without optifine. Optifine and other "optimisation" mods are always a good candidate to remove when you get weird errors.
  18. Issue with oculus, contact the mod author.
  19. Looks like there is something broken in your gui configuration? All I could find searching google is this old bug: https://www.rarst.net/software/cleartype-install4j-java-bug/ where an application had set the font size to an non-integer number. You would likely get more help contacting your java vendor.
  20. EntityAttributeModificationEvent https://forge.gemwire.uk/wiki/Making_Entities#Entity_Attributes
  21. Install the latest preview release of optifine for 1.18.2
  22. Use java 17, mixin does not support java 19

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.