Jump to content

[1.16.5] Error saying that gradle cannot find symbol.


TheGamerCailo

Recommended Posts

I know 1.16.5 is not fully supported, but I am working on a mod and am too scared to start coding for 1.18 or 19. Besides, I am not good at coding, so I have just been inspecting someone's code and using the parts that I like for it. Regardless, I've made a certain block, with imports and all, and I get this strange error. I don't know what it means. How can I fix it? Do I have to add another import? (Also Do not pay attention to the Mcreator, I'm simply using it as a basis for editing my mods since I do not want to go through the lengthy process of installing Eclipse.)

package net.mcreator.animeshowdownmod.block;

import net.minecraft.state.properties.BlockStateProperties;
import java.util.TimerTask;
import java.util.Timer;
import net.minecraft.world.IWorldReader;
import net.minecraft.world.IWorld;
import net.minecraft.util.Direction;
import net.mcreator.animeshowdownmod.common.GamePlayer;
import java.util.Iterator;
import net.minecraft.potion.EffectInstance;
import net.minecraft.potion.Effects;
import net.mcreator.animeshowdownmod.common.PlayerManager;
import net.minecraft.entity.player.ServerPlayerEntity;
import java.util.Random;
import net.minecraft.world.server.ServerWorld;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.SoundEvents;
import net.minecraft.util.ActionResultType;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.util.Hand;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraft.util.text.StringTextComponent;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.state.StateContainer;
import net.minecraft.state.IProperty;
import net.minecraft.block.BlockState;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.material.MaterialColor;
import net.minecraft.state.BooleanProperty;
import net.minecraft.block.Block;

And here is the error:

\animeshowdownmod\block\BlockGravityControl.java:32: error: cannot find symbol 
import net.minecraft.state.IProperty; 
                          ^ 
  symbol:   class IProperty 
  location: package net.minecraft.state
Edited by TheGamerCailo
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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