Everything posted by Vulcandium
-
Is there any way to animate textures by using separate texture.png files?
Im having trouble with blockbench and creating animated textures and Im wondering if this is an alternative solution and how I could do this.
-
Entity will not spawn. Please help
https://gist.github.com/Vulcandium/16080983071c06515cf8512accbe4764 The problem is with the attribute supplier. It says that this.supplier is null???
-
Entity will not spawn. Please help
[Server thread/WARN] [minecraft/EntityType]: Exception loading entity: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.ai.attributes.AttributeSupplier.getValue(net.minecraft.world.entity.ai.attributes.Attribute)" because "this.supplier" is null at net.minecraft.world.entity.ai.attributes.AttributeMap.getValue(AttributeMap.java:76) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading} at net.minecraft.world.entity.LivingEntity.getAttributeValue(LivingEntity.java:1835) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading} at net.minecraft.world.entity.LivingEntity.getMaxHealth(LivingEntity.java:1656) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading} at net.minecraft.world.entity.LivingEntity.<init>(LivingEntity.java:235) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading} at net.minecraft.world.entity.Mob.<init>(Mob.java:123) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.world.entity.PathfinderMob.<init>(PathfinderMob.java:14) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading} at net.minecraft.world.entity.AgeableMob.<init>(AgeableMob.java:29) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading} at net.minecraft.world.entity.animal.Animal.<init>(Animal.java:40) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading} at net.vulcandium.oceanicexpansion.entity.custom.TiamatEntity.<init>(TiamatEntity.java:24) ~[%23196!/:?] {re:classloading} at net.minecraft.world.entity.EntityType.create(EntityType.java:525) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,xf:fml:forge:forge_method_redirector} at net.minecraft.world.entity.EntityType.lambda$create$4(EntityType.java:530) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,xf:fml:forge:forge_method_redirector} at java.util.Optional.map(Optional.java:260) ~[?:?] {} at net.minecraft.world.entity.EntityType.create(EntityType.java:529) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,xf:fml:forge:forge_method_redirector} at net.minecraft.world.entity.EntityType.loadStaticEntity(EntityType.java:607) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,xf:fml:forge:forge_method_redirector} at net.minecraft.world.entity.EntityType.loadEntityRecursive(EntityType.java:563) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,xf:fml:forge:forge_method_redirector} at net.minecraft.server.commands.SummonCommand.createEntity(SummonCommand.java:67) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,xf:fml:forge:forge_method_redirector} at net.minecraft.server.commands.SummonCommand.spawnEntity(SummonCommand.java:86) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,xf:fml:forge:forge_method_redirector} at net.minecraft.server.commands.SummonCommand.lambda$register$1(SummonCommand.java:44) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,xf:fml:forge:forge_method_redirector} at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:264) ~[brigadier-1.1.8.jar%23135!/:?] {} at net.minecraft.commands.Commands.performCommand(Commands.java:257) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading} at net.minecraft.server.network.ServerGamePacketListenerImpl.performChatCommand(ServerGamePacketListenerImpl.java:1246) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$11(ServerGamePacketListenerImpl.java:1223) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(BlockableEventLoop.java:67) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] {} at net.minecraft.server.TickTask.run(TickTask.java:18) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading} at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:156) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading} at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:770) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:161) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:130) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:753) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:747) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:139) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:733) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:665) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:251) ~[forge-1.20.1-47.2.19_mapped_parchment_2023.09.03-1.20.1.jar%23191!/:?] {re:classloading,pl:accesstransformer:B} at java.lang.Thread.run(Thread.java:840) ~[?:?] {} [22:09:44] [Render thread/INFO] [minecraft/ChatComponent]: [System] [CHAT] Unable to summon entity
-
My entity will not move, and I have no idea why it isn't. It's an underwater entity btw.
I don't think its an error with geckolib, i think its something to do with my code
-
My entity will not move, and I have no idea why it isn't. It's an underwater entity btw.
public class Tiamat extends WaterAnimal implements GeoEntity { private AnimatableInstanceCache cache = new SingletonAnimatableInstanceCache(this); public Tiamat(EntityType<? extends Tiamat> pEntityType, Level pLevel) { super(pEntityType, pLevel); this.moveControl = new SmoothSwimmingMoveControl(this, 85, 10, 0.03F, 0.1F, true); this.lookControl = new SmoothSwimmingLookControl(this, 10); } public static AttributeSupplier setAttributes() { return WaterAnimal.createMobAttributes() .add(Attributes.MAX_HEALTH,1) .add(Attributes.ATTACK_DAMAGE,3.0f) .add(Attributes.ATTACK_SPEED,1.0f) .add(Attributes.MOVEMENT_SPEED,5.0f) .add(Attributes.KNOCKBACK_RESISTANCE,2) .add(Attributes.ARMOR_TOUGHNESS,0.4).build(); } @Override protected void registerGoals() { this.goalSelector.addGoal(0, new TryFindWaterGoal(this)); this.goalSelector.addGoal(0, new RandomSwimmingGoal(this, 1.0, 10)); this.goalSelector.addGoal(2,new MeleeAttackGoal(this,1.20,false)); this.goalSelector.addGoal(4,new RandomLookAroundGoal(this)); this.targetSelector.addGoal(1,new NearestAttackableTargetGoal<>( this, Turtle.class,true)); this.targetSelector.addGoal(2,new NearestAttackableTargetGoal<>( this, Dolphin.class,true)); this.targetSelector.addGoal(3,new NearestAttackableTargetGoal<>( this, Player.class,true)); this.targetSelector.addGoal(4,new NearestAttackableTargetGoal<>( this, Tiamat.class,true)); this.targetSelector.addGoal(5,new NearestAttackableTargetGoal<>( this, TropicalFish.class,true)); this.targetSelector.addGoal(6,new NearestAttackableTargetGoal<>( this, Guardian.class,true)); super.registerGoals(); } public Tiamat getBreedOffspring(ServerLevel level, AgeableMob ageableMob) { return ModEntities.TIAMAT.get().create(level); } @Override public void registerControllers(AnimatableManager.ControllerRegistrar controllerRegistrar) { controllerRegistrar.add(new AnimationController<>(this,"controller",0,this::predicate)); } private <T extends GeoAnimatable> PlayState predicate(AnimationState<T> tAnimationState) { if (tAnimationState.isMoving()) { tAnimationState.getController().setAnimation(RawAnimation.begin().then("swimming.anim", Animation.LoopType.LOOP)); return PlayState.CONTINUE; } tAnimationState.getController().setAnimation(RawAnimation.begin().then("tongue.anim1", Animation.LoopType.PLAY_ONCE)); return PlayState.CONTINUE; } @Override public AnimatableInstanceCache getAnimatableInstanceCache() { return cache; } protected PathNavigation createNavigation(Level pLevel) { return new WaterBoundPathNavigation(this, pLevel); } }
-
How can I make my entity move in the water? I don't know how to do this.
I will post entity file soon
-
I cannot summon my entity in my mod. Please help.
I tried that and it still didn't work- Edit: Resolved this issue Also, what does this error mean? [16:37:08] [Render thread/DEBUG] [os.ut.FileUtil/]: No oshi.architecture.properties file found from ClassLoader cpw.mods.modlauncher.TransformingClassLoader@19e0dffe
-
I cannot summon my entity in my mod. Please help.
Caused by: net.minecraft.ResourceLocationException: Non [a-z0-9/._-] character in path of location: aquaticexpansion:Geo/en_us.json - I tried renaming the geo file but it didn't work
-
I've been trying to create this mod, but every time I summon my entity, tiamat, this error pops up.
Caused by: net.minecraft.ResourceLocationException: Non [a-z0-9/._-] character in path of location: aquaticexpansion:Geo/tiamat.geo.json
-
I've been trying to create this mod, but every time I run my client, this error pops up.
Tysm!! It worked!
-
I've been trying to create this mod, but every time I run my client, this error pops up.
Caused by: net.minecraft.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: AquaticExpansion:sounds.json -I'm aware that AquaticExpansion is capitalized, but in my mod id it isn't. -I never made a sounds.json folder btw.
-
I've been trying to create this mod, but every time I run my client, this error pops up.
Caused by: net.minecraft.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: AquaticExpansion:sounds.json -Yes, I'm aware that AquaticExpansion is in caps, but in the mod-id it isn't in caps, I don't know why its like this -I also tried deleting the build file, but it didn't work because the build file kept reappearing in my project structure -I never made a sounds.json file in my code
IPS spam blocked by CleanTalk.