Jump to content

Recommended Posts

Posted

Hey guys, im kinda new here, hoping im posting it on the right section:

 

I got this mod with tons of animal mobs from MC 1.12 and im trying to update it to 1.15, but im having a lot of problems with code change,

Im trying to make my mob here climb walls like a Spider, so what i did was copy the Spider climb files, but for some reason it gives error on this line:

 

private static final DataParameter<Byte> CLIMBING = EntityDataManager.createKey(CapuchinBrownEntity.class, DataSerializers.BYTE);

 

the CapuchinBrownEntity part will give the error below, and if i replace it with SpiderEntity the mode wont appear in-game (off course):

 

error: method createKey in class EntityDataManager cannot be applied to given types;
private static final DataParameter<Byte> CLIMBING = EntityDataManager.createKey(CapuchinBrownEntity.class, DataSerializers.BYTE); 
                                                                        ^ 
  required: Class<? extends Entity>,IDataSerializer<T> 
  found: Class<CapuchinBrownEntity>,IDataSerializer<Byte> 
  reason: cannot infer type-variable(s) T 
    (argument mismatch; Class<CapuchinBrownEntity> cannot be converted to Class<? extends Entity>) 
  where T is a type-variable: 
    T extends Object declared in method <T>createKey(Class<? extends Entity>,IDataSerializer<T>) 
1 error 
> Task :compileJava FAILED 
FAILURE: Build failed with an exception.

 

im trying to make my little monkey mobs climb blocks :D

Posted (edited)
58 minutes ago, TheGreyGhost said:

Hi

 

Does your CapuchinBrownEntity extend the vanilla Entity?

 

If you think it does, show your CapuchinBrownEntity class?

 

-TGG

 

Quote

@WizardAnimalsPlusModElements.ModElement.Tag
public class CapuchinBrownEntity extends WizardAnimalsPlusModElements.ModElement {
	
	
	public static EntityType entity = null;

	private static final DataParameter<Byte> CLIMBING = EntityDataManager.createKey(CapuchinBrownEntity.class, DataSerializers.BYTE);
	
	public CapuchinBrownEntity(WizardAnimalsPlusModElements instance) {
		super(instance, 4);
		FMLJavaModLoadingContext.get().getModEventBus().register(this);
	}

 

im very new on java yet, i hope is this part you mention

Edited by ninjawizard
Posted
10 hours ago, ninjawizard said:

WizardAnimalsPlusModElements.ModElement

Stop using MCreator.

  • Confused 1

It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".

Posted (edited)
4 hours ago, Novârch said:

Stop using MCreator.

sorry but i was asking for help only.. i want to learn on my own way.

Edited by ninjawizard
  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I tried do download the essential mod to my mod pack but i didnt work. I paly on 1.21 and it should work. I use neoforge for my modding. The weird things is my friend somehow added the mod to his modpack and many others that I somehow can´t. Is there anything i can do? 
    • Thanks, I've now installed a slightly newer version and the server is at least starting up now.
    • i have the same issue. Found 1 Create mod class dependency(ies) in createdeco-1.3.3-1.19.2.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Found 11 Create mod class dependency(ies) in createaddition-fabric+1.19.2-20230723a.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Detailed walkthrough of mods which rely on missing Create mod classes: Mod: createaddition-fabric+1.19.2-20230723a.jar Missing classes of create: com/simibubi/create/compat/jei/category/sequencedAssembly/JeiSequencedAssemblySubCategory com/simibubi/create/compat/recipeViewerCommon/SequencedAssemblySubCategoryType com/simibubi/create/compat/rei/CreateREI com/simibubi/create/compat/rei/EmptyBackground com/simibubi/create/compat/rei/ItemIcon com/simibubi/create/compat/rei/category/CreateRecipeCategory com/simibubi/create/compat/rei/category/WidgetUtil com/simibubi/create/compat/rei/category/animations/AnimatedBlazeBurner com/simibubi/create/compat/rei/category/animations/AnimatedKinetics com/simibubi/create/compat/rei/category/sequencedAssembly/ReiSequencedAssemblySubCategory com/simibubi/create/compat/rei/display/CreateDisplay Mod: createdeco-1.3.3-1.19.2.jar Missing classes of create: com/simibubi/create/content/kinetics/fan/SplashingRecipe
    • The crash points to moonlight lib - try other builds or make a test without this mod and the mods requiring it
    • Do you have shaders enabled? There is an issue with the mod simpleclouds - remove this mod or disable shaders, if enabled  
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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