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

NullDev

Members
  • Content Count

    49
  • Joined

  • Last visited

Everything posted by NullDev

  1. 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\
  2. There is no actual crash log. Minecraft cannot even launch from IntelliJ, this just happens every time I try to runClient.
  3. 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
  4. 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() {
  5. I cannot find that event anywhere. Is it in the entity itself, or is it a SubscribeEvent event?
  6. 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.
  7. 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?
  8. 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
  9. 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.
  10. @Override public IPacket<?> createSpawnPacket() { return NetworkHooks.getEntitySpawningPacket(this); } That crashed the game when I threw it.
  11. I have done that, but now the entity is just invisible... I uploaded the new code to the repository.
  12. https://github.com/AyliasTheCoder/TheSecretsOfRetexturedMC
  13. 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
  14. 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(); }
  15. 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
  16. 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
  17. 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); }
  18. 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.
  19. 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
  20. So I am creating an entity that functions like an ender pearl, and I have created the entity and registered a renderer, but I cannot find anywhere to register the model. Here is my code: https://github.com/AyliasTheCoder/TheSecretsOfRetexturedMC
  21. For anyone else with this issue, I figured it out. Do this for each new StringTextComponent: toReturn.func_230529_a_( new StringTextComponent("New Text With New Color").func_240701_a_(TextFormatting.WHITE) ) I call the mergestyle on the new StringTextComponent that I am adding with the appendText function.
  22. Sorry it took me so long, but here you go. I am trying to build it block by block from a tileentity. The code for the building is in the OneBlockBuilderTileEntityAbstract class. I currently have my own system implemented, but I'd prefer to use schematics, because those will be easier for complex structures. https://github.com/AyliasTheCoder/OneBlockADayForge
  23. So how would I do it without overriding it?
  24. I changed it to this and it is still all black: StringTextComponent toSend = new StringTextComponent("Info: "); player.sendStatusMessage(toSend.func_240701_a_(TextFormatting.WHITE) .func_230529_a_(new StringTextComponent(ticksRemaining/20 + " | ")) .func_240701_a_(TextFormatting.RED) .func_230529_a_(new StringTextComponent(Integer.toString(redstoneAdded))) .func_240701_a_(TextFormatting.WHITE) .func_230529_a_(new StringTextComponent(" | ")) .func_240701_a_(TextFormatting.GREEN)
  25. I've done that like this, but now it just appears all black IFormattableTextComponent toSend = new StringTextComponent("Info: "); toSend.func_240701_a_(TextFormatting.WHITE) .func_230529_a_(new StringTextComponent(ticksRemaining/20 + " | ")) .func_240701_a_(TextFormatting.RED) .func_230529_a_(new StringTextComponent(Integer.toString(redstoneAdded))) .func_240701_a_(TextFormatting.WHITE) .func_230529_a_(new StringTextComponent(" | ")) .func_240701_a_(TextFormatting.GREEN)
×
×
  • Create New...

Important Information

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