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

NullDev

Members
  • Content Count

    55
  • Joined

  • Last visited

Everything posted by NullDev

  1. Yes, there was. I forgot a few attributes, namely Attributes.MOVEMENT_SPEED and Attributes.HORSE_JUMP_STRENGTH. Thank you for you help!
  2. I have this in my EntityRegisterEvents class: @SubscribeEvent public static void registerEntityAttributes(EntityAttributeCreationEvent e) { e.put(HAY_HORSE, AttributeModifierMap.createMutableAttribute().createMutableAttribute(Attributes.MAX_HEALTH, 25) .createMutableAttribute(Attributes.FOLLOW_RANGE, 16.0) .createMutableAttribute(Attributes.ARMOR) .create()); } https://github.com/AyliasTheCoder/BlocksRealsBlockCreatures/blob/master/src/main/java/me/aylias/minecraft/mods/modbase/events/EntityRegisterEvents.java Is something missing from it?
  3. I have done that, and stepped through it, but I cannot figure out how to understand most of what it says. I updated the github w/ the MDK's .gitignore. https://github.com/AyliasTheCoder/BlocksRealsBlockCreatures
  4. I ran it in debug mode in intellij but the console still says nothing but "An unexpected error occurred trying to execute that command"
  5. I created an entity, and when I try to summon it I just get "An unexpected error occurred trying to execute that command" with no stack trace or anything. Why is this happening? My code: https://github.com/AyliasTheCoder/BlocksRealsBlockCreatures The Entity Class Itself: https://github.com/AyliasTheCoder/BlocksRealsBlockCreatures/blob/master/src/main/java/me/aylias/minecraft/mods/modbase/entities/HayHorse.java
  6. I am trying to update my mappings, but the MCPBot Exports is only up to 1.15, so how do I update my mappings? Using the official Mojang mappings is a pain, because everything is named differently so my whole mod breaks. My current build.gradle: buildscript { repositories { maven { url = 'https://files.minecraftforge.net/maven' } jcenter() mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true } } apply plugin: 'net.minecraftforge.gradle' // Only edit below this li
  7. Starting Gradle Daemon... Gradle Daemon started in 3 s 327 ms > Configure project : Java: 1.8.0_241 JVM: 25.241-b07(Oracle Corporation) Arch: amd64 New Dep: net.minecraftforge:forge:1.16.5-36.1.6_mapped_snapshot_20210421-1.15.1 Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings BUILD SUCCESSFUL in 20s C:\Users\burnh\OneDrive\Desktop\Cardons Stuffs\Mods\BlocksReal's Block Creatures\
  8. There is no actual crash log. Minecraft cannot even launch from IntelliJ, this just happens every time I try to runClient.
  9. buildscript { repositories { maven { url = 'https://files.minecraftforge.net/maven' } jcenter() mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true } } apply plugin: 'net.minecraftforge.gradle' // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. apply plugin: 'eclipse' apply plugin: 'maven-publish' version = '1.0' group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archi
  10. I have done that, but I still cannot find a "EntityAttributeCreationEvent" event class or method anywhere when using intellij's search feature. Also when I try to run, I now get an error: BlocksReal's Block Creatures\build\tmp\expandedArchives\forge-1.16.5-36.1.6_mapped_snapshot_20210421-1.15.1-sources.jar_a6143e0dca70b177e5cb22179a0cd7b2\net\minecraft\entity\EntityClassification.java:40: error: method getName() is already defined in enum EntityClassification public String getName() {
  11. I cannot find that event anywhere. Is it in the entity itself, or is it a SubscribeEvent event?
  12. I have created a new Horse Entity, and I am trying to spawn it in, with the /summon command, but it is failing saying that it is null. The error: [08:56:26] [Server thread/WARN] [minecraft/EntityType]: Exception loading entity: java.lang.NullPointerException: null at net.minecraft.entity.ai.attributes.AttributeModifierManager.func_233795_c_(AttributeModifierManager.java:67) ~[forge-1.16.4-35.1.37_mapped_snapshot_20200514-1.16-recomp.jar:?] {re:classloading} at net.minecraft.entity.LivingEntity.func_233637_b_(LivingEntity.java:1849) ~[forge-1.16.4-35.1.37_mapped_snapshot_20200514-1.
  13. I am making a block that when right clicked, I wanted to flip the players gravity so they fall upwards, and I also want the camera to properly adjust so that everything looks upside down, how would I begin going about this?
  14. Is is possible to add recipes through code in 1.16? I have a lot of recipes to add, that are all very similar, and it would be very tedious to do that with json, so is it possible to register recipes through code in 1.16? I know it used to be possible, but I can't find anything on doing it in 1.16
  15. So I have created a custom tnt entity, but when it renders, it looks like stone that flashes like tnt does, even though it has a different blockstate (and I have checked and it does in fact have the correct one) The rendering occurs here: https://github.com/AyliasTheCoder/ScatterTNT/blob/main/src/main/java/com/aylias/minecraft/mods/scattertnt/client/ScatterTNTRenderer.java it prints out that it is using the blockstate of "scatter_tnt:small_stone_tnt" and that block has a texture, but the lit tnt has the texture of stone.
  16. @Override public IPacket<?> createSpawnPacket() { return NetworkHooks.getEntitySpawningPacket(this); } That crashed the game when I threw it.
  17. I have done that, but now the entity is just invisible... I uploaded the new code to the repository.
  18. https://github.com/AyliasTheCoder/TheSecretsOfRetexturedMC
  19. Corrupt Pearl Entity package com.aylias.minecraft.mods.modbase.entities; import com.aylias.minecraft.mods.modbase.util.CorruptPearlReboundEvents; import com.aylias.minecraft.mods.modbase.util.EntityRegisters; import com.aylias.minecraft.mods.modbase.util.RegistryHandler; import net.minecraft.client.renderer.ItemModelMesher; import net.minecraft.client.renderer.entity.ArrowRenderer; import net.minecraft.client.renderer.entity.EntityRendererManager; import net.minecraft.client.renderer.entity.model.EntityModel; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityType; impo
  20. I have already done that, but it just assumes the texture of the normal ender pearl not the one attached to the corrupt pearl item, even if I don't register the CorruptPearlRenderer it still just looks like an ender pearl. @Override protected Item getDefaultItem() { return RegistryHandler.CORRUPT_PEARL.get(); }
  21. So I have created this class for rendering a projectile that extends SpriteRenderer, but when I try to override getEntityTexture I get this error: 'getEntityTexture(Entity)' in 'com.aylias.minecraft.mods.modbase.client.renders.CorruptPearlRenderer' clashes with 'getEntityTexture(T)' in 'net.minecraft.client.renderer.entity.EntityRenderer'; both methods have same erasure, yet neither overrides the other How do I override it without getting this error? I have tried googling the error, even as just "both methods have same erasure, yet neither overrides the other" but found nothing that can
  22. I found what vanilla uses but it doesn't seem to do anything: @SubscribeEvent public static void playerDamage(LivingHurtEvent e) { if (e.getEntityLiving() instanceof ServerPlayerEntity) { System.out.println("I AM A SERVER PLAYER"); ServerPlayerEntity serverplayerentity = (ServerPlayerEntity)e.getEntityLiving(); serverplayerentity.addStat(Stats.ITEM_USED.get(RegistryHandler.TOTEM_OF_DYING.get())); CriteriaTriggers.USED_TOTEM.trigger(serverplayerentity, new ItemStack(RegistryHandler.TOTEM_OF_DYING.get())); } } I see "I AM A SERVER PLAYER" in the console, but no animati
  23. I also tried this, because vanilla seems to use matrixStackIn.push() but still nothing: final CorruptPearlModel model = new CorruptPearlModel(); @Override public void render(CorruptPearlEntity entityIn, float entityYaw, float partialTicks, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn) { matrixStackIn.push() model.render(matrixStackIn, bufferIn.getBuffer(RenderType.getEntityTranslucent(getEntityTexture(entityIn))), packedLightIn, 0, 0, 0, 0, 1); }
  24. I am looking for the code that makes Totems of Undying work, because I am trying to make my own version, but the code doesn't exist within the code of the item itself, so where would I find the code for it? I only need to code for the animation it plays, I already know how to detect if an entity is holding the custom totem.
  25. I added this to my code, but it is still appearing untextured: final CorruptPearlModel model = new CorruptPearlModel(); @Override public void render(CorruptPearlEntity entityIn, float entityYaw, float partialTicks, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn) { model.render(matrixStackIn, bufferIn.getBuffer(RenderType.getEntityTranslucent(getEntityTexture(entityIn))), packedLightIn, 0, 0, 0, 0, 1); } I cannot seem to find an entity renderer or model for ender pearls
×
×
  • Create New...

Important Information

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