Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

The version you are using is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS).

Guest
This topic is now closed to further replies.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.