• 0

    posted a message on Error Saying that it cannot detect a symbol

    Can anyone help?

    Posted in: Mod Development
  • 0

    posted a message on Error Saying that it cannot detect a symbol

    In my mod, I have a range of errors, but I'm going to take it one step at a time. I've inspected someone's code, which is a little bit of my fault, since I don't quite know what I'm doing, but regardless, I keep getting an error for the second file of my code, which is a block, saying:


    animeshowdownmod\block\BlockGravityControl.java:32: error: cannot find symbol

    import net.minecraft.state.IProperty;


    symbol: class IProperty

    location: package net.minecraft.state


    Basically that carat symbol (^) is pointing to the period between "State" and "Iproperty" in the console error generator. It says something about the symbol: class Iproperty, which I don't quite understand. Do I need to add "class" in there or something? Nevertheless, you probably would like to see the actual code I'm working with. Since the actual file is pretty large, I'll just show the imports for it.


    package net.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.animeshowdownmod.common.GamePlayer;

    import java.util.Iterator; import net.minecraft.potion.EffectInstance;

    import net.minecraft.potion.Effects;

    import net.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;


    There's the code. You can see the import net.minecraft.state.Iproperty there close to the end. I don't know why it's giving this error, what would I need to add or take out?


    Posted in: Mod Development
  • 0

    posted a message on How would I render a player?

     Uhm... okay thanks. Anyone who can help me on this?

    Posted in: Mod Discussion
  • 0.962724591043175

    posted a message on How would I render a player?

    So, I'm making a mod, similar to Dragon Block C, where it renders hair onto the player. Would anyone happen to know how to do this? I was directed here because they said people often know how to do it. They also said it's pretty simple if you know Java, which I don't really believe since I've been looking for a tutorial forever and never could find one, but if you're good at explaining how to do this, by all means. As in: what imports do I put in, where do I put in where my model will go? How do I actually render it onto the player with all of the pivot points and etc? Thanks so very much!

    Posted in: Mod Discussion
  • To post a comment, please or register a new account.