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

tal124

Members
  • Content Count

    48
  • Joined

  • Last visited

Community Reputation

0 Neutral

About tal124

  • Rank
    Tree Puncher

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I am trying to make a Biome(and plan to make multiple more) But I can't figure out what's wrong with my registry, It gives me a red line for this code BIOMES.register("chocolate_forest", ChocolateForest::new); it tells me that "no instance(s) of type variable(s) exist so that ChocolateForest conforms to Biome inference variable I has incompatible bounds: equality constraints: Biome lower bounds: ChocolateForest" here's the full code public class ModBiomes { public static final DeferredRegister<Biome> BIOMES = DeferredRegister.create(ForgeRegistries.BIOMES, chocolate.M
  2. I meant that I was trying to register my rendering handler with DeferredRegistry, and I knew that wouldn't work cause there isn't any code referring to rendering so I tried finding a Registry for rendering, and I guess I skimmed over RenderingRegistry. And other than that, they pretty much look like this public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, chocolate.MODID); public static void init() { BLOCKS.register(FMLJavaModLoadingContext.get().getModEventBus()); }
  3. All I have are basic blocks, Items, and fluids, so I haven't needed anything else as of yet. And thank you, That actually let me Mob spawn into existence.
  4. And how would I register it? All I really understand is the deferred register method, and that wasn't working with whatever I put into it.
  5. I have gotten my entity to register and got its attributes to also register, but now I am having issues with the rendering of it. Time: 4/3/21, 4:18 AM Description: Unexpected error java.lang.NullPointerException: Cannot invoke "net.minecraft.client.renderer.entity.EntityRenderer.shouldRender(net.minecraft.entity.Entity, net.minecraft.client.renderer.culling.ClippingHelper, double, double, double)" because "entityrenderer" is null at net.minecraft.client.renderer.entity.EntityRendererManager.shouldRender(EntityRendererManager.java:239) ~[forge-1.16.5-36.1.3_mapped_snapshot_20210309-1.16.
  6. I didn't realize I was forcing the tags when I had it in my ModFluids class, and to be honest, completely forgot about them. Its fixed now, thank you
  7. Caused by: java.lang.IllegalStateException: Missing required tags: minecraft:fluid:minecraft:chocolate,minecraft:fluid:minecraft:dark_chocolate,minecraft:fluid:minecraft:milk_chocolate I am having an issue where it won't load into a world because I am missing these tags, I have commented out any code that adds tags to my fluids and I wasn't getting these issues beforehand. Just in case I will go ahead and post my FluidTagsProvider code, my ModTags code as well as my DataGenerator code public class ModFluidTagsProvider extends FluidTagsProvider { public ModFluidTagsProvider(Data
  8. I apologize the previous two comments had me a little confused about what to do, and I called it MutableAttribute because any other attribute would say it needs to be called that, but I realize that its probably because I had muteableAttribute being called inside it.
  9. I'm still a little confused, so I have to register it in my ModEntities like so public static void EntityAttributeCreationEvent() { GlobalEntityTypeAttributes.getAttributesForEntity(ModEntities.CHOCOLATE_SLIME.get()); } and then also put it into my setup like this private void setup(final FMLCommonSetupEvent event) { // some preinit code LOGGER.info("The Pre-Chocoinator"); LOGGER.info("DIRT BLOCK >> {}", Blocks.DIRT.getRegistryName()); ModEntities.EntityAttributeCreationEvent(); } And then also have some attri
  10. I went ahead and put Dummy files with the same name into the block models and item models area and it proceeded to generate both the block/item models and the blockstate which I don't understand because I shouldn't have to have put a dummy file with the same name just for it to generate the .json files that I wanted.
  11. 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' group = 'Tyrannis' version = '1.0-SNAPSHOT' archivesBaseName = 'Chocolate' sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' minecraft { // The mappings can be changed at any time, and must be in the foll
  12. I have restarted Intellij and also I do have a file in my textures/block folder, I was using a vanilla asset renamed as a placeholder, I have also done the other blocks without the texture there and it still created the blockstate and block model files just with a missing texture when loaded in. However I am still getting the same error code.
  13. All of my BlockStateProviders have worked so far all for the exception of my new trapdoorBlock. { ResourceLocation block = modLoc("block/chocolate_trapdoor"); trapdoorBlock(ModBlocks.CHOCOLATE_TRAPDOOR.get(), block, true); } What I'm confused about is the error its giving me when I try to runData. it throws a "Texture chocolate:block/chocolate_trapdoor does not exist in any known resource pack" at me. which doesn't make sense since I'm trying to make that location with this data generator. [00:51:02] [main/INFO] [minecraft/DataGenerator]:
  14. public class EntityChocolateSlime extends SlimeEntity { public EntityChocolateSlime(EntityType<? extends EntityChocolateSlime> type, World worldIn) { super(type, worldIn); } public static AttributeModifierMap.MutableAttribute func_234294_m_() { return MonsterEntity.func_234295_eP_().createMutableAttribute(Attributes.MOVEMENT_SPEED, (double)0.2F); } public static boolean func_223367_b(EntityType<EntityChocolateSlime> p_223367_0_, IWorld p_223367_1_, SpawnReason p_223367_2_, BlockPos p_223367_3_, Random p_223367_4_) { return p_223367_1_.g
  15. They've replaced .put for something idk what but its deprecated now, and now my entity registers but it won't summon
×
×
  • Create New...

Important Information

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