Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About sanman00

  • Rank
    Tree Puncher


  • Gender
  • Location
  1. @diesieben07 Thanks, that helped. It turns out that that annotation needed to be added to the entity class: @OnlyIn( value = Dist.CLIENT, _interface = IRendersAsItem.class ) public class EntityExplosivePotion extends ThrowableEntity implements IRendersAsItem { // ... }
  2. I have an entity that implements IRendersAsItem so that it can be used with SpriteRenderer. However, when this entity is registered, it causes the server (but not the client) to crash with a NoClassDefFoundError saying that it cannot find this interface (which makes sense since it is annotated to indicate that it can only be loaded on the client). I could remove the entity's implementation of IRendersAsItem and replace how it is currently rendered with an emulation of SpriteRenderer but I'm not sure if this would the correct way to solve this issue. Current implementati
  3. I have managed to solve the issue. It appears to have been fixed by replacing default values in places like build.gradle and mods.toml (e.g. "examplemod") with the proper values, such as the mod ID.
  4. The TranslationTextComponent version? It's still not translating it for me. It seems that the key is not being registered as I18n.hasKey() returns false for it but not for the other keys defined in the same file. Here is a log containing the value of Locale.properties field which appears to hold the translations of the game and mod: https://pastebin.com/63kmzHDx
  5. I am trying to add lore to my potion items indicating their strength which determines the size of their explosions.This strength value is an integer between 1 and 10. I want this lore to be translatable and so have provided a key for it at the bottom of my en_us.json file: { "item.expotions.potion_explosive" : "Explosive Potion", "item.expotions.potion_explosive_throwable" : "Throwable Explosive Potion", "item.expotions.potion_explosive_spicy" : "Spicy Explosive Potion", "item.expotions.potion_explosive_throwable_spicy" : "Throwable Spicy Explosive Potion",
  6. I am trying to make an entity which works and renders in a similar fashion to a splash potion. It is defined thus: https://pastebin.com/edkgrnYW To render it, I am using the SpriteRenderer class like so: @EventBusSubscriber(modid = Main.MOD_ID, value = {Dist.CLIENT}, bus = EventBusSubscriber.Bus.MOD) public class ClientProxy { @SubscribeEvent public static void init(FMLClientSetupEvent event) { RenderingRegistry.registerEntityRenderingHandler(EntityExplosivePotion.class, m -> new SpriteRenderer<>(m, Minecraft.getInstance().getItemRender
  7. A mod that adds explosive potions to Minecraft! Licence This mod is licensed under the MIT licence. You can freely use it in modpacks. Github https://github.com/sanman00/ExplosivePotions Downloads https://github.com/sanman00/ExplosivePotions/releases
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.