Jump to content

DevTech

Members
  • Posts

    150
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by DevTech

  1. I can java he says again that it is not valid
  2. what should I do there now?
  3. now they want an IParticleData
  4. which class should you pass when registering?
  5. yes but what class should I retrieve the registration when I enter RegistryEvent.Register <ParticleTypes> it turns red and says that it is not valid
  6. yes, but there is nothing with particles
  7. how can i add a particle effect in registry event ?!
  8. because my browser did not show my old thread! Here is the crash report: crashreport.txt
  9. java.lang.IllegalStateException: The object net.minecraft.particles.BasicParticleType@16dc477f (name fa:footstep) is being added too late. Code: My ParticleTypes.class: https://pastebin.com/8T2kK2D6 Footstep Particle: https://pastebin.com/Zt3m88cr Main: https://pastebin.com/5YaeKaUE
  10. ??
  11. Ey i have added Footstep Particles and when i start comes this message java.lang.IllegalStateException: The object net.minecraft.particles.BasicParticleType@16dc477f (name minecraft:footstep) is being added too late. Code: My ParticleTypes.class: https://pastebin.com/8T2kK2D6 Footstep Particle: https://pastebin.com/Zt3m88cr Main: https://pastebin.com/5YaeKaUE
  12. ok thx
  13. how can you do it that you burn all the time while you have the effect
  14. ok thx
  15. oh its works how to add a image to effect?
  16. package de.krokoyt.spicy; import de.krokoyt.spicy.blocks.spicycoalblock; import net.minecraft.block.Block; import net.minecraft.potion.Effect; import net.minecraft.potion.Potion; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.event.world.BlockEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.ObjectHolder; @EventBusSubscriber(bus = Bus.MOD) @ObjectHolder("spicy") public class Events { public static final Effect cursedflames = null; @SubscribeEvent public static void registerPotion(RegistryEvent.Register<Potion> registry) {} @SubscribeEvent public static void registerEffect(RegistryEvent.Register<Effect> registry) { register("cursedflames", new CursedFlames(745784), cursedflames); } private static <T extends Effect> T register(String name, T effect, Effect e) { effect.setRegistryName(SpicyCoal.RegistryEvents.location(name)); ForgeRegistries.POTIONS.register(effect); e = effect; return effect; } }
  17. I made but somehow my potion effect does not exist
  18. How can i add custom potions all old methods not exist :C
  19. Hello my Mod says always that my Class not found Error Log: https://pastebin.com/ALqXTqvd Main: https://pastebin.com/ikMe0UUp EntityThrowableSlimeTorch: https://pastebin.com/Wm3ETvzZ
  20. Hello I want to change the texture when right-clicking and registerIcons are no longer there
  21. What is the altanative for registerExtendedProperties?
  22. in the 1.5.2 it went
  23. and how can i cast ?
  24. and how do I caste EntityPlayer to EntityLiving
  25. When i cast EntityPlayer to EntityLiving comes are Error I use 1.12.2
×
×
  • Create New...

Important Information

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