Jump to content

lvcas

Members
  • Posts

    4
  • Joined

  • Last visited

lvcas's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I'm trying to migrate my mod from 1.20 to 1.21. Some packages in the forge api were changed so my mod did have some classes not working. I've changed everything i needed but still is getting me the following error error: cannot access Registry DeferredRegister.create(ForgeRegistries.BLOCKS, FarmMod.MOD_ID); ^ class file for net.minecraft.core.Registry not found The piece of code that is wrong is public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, FarmMod.MOD_ID); And here are my imports import com.lucas.farmmod.FarmMod; import com.lucas.farmmod.block.custom.BaseIrrigatorBlock; import com.lucas.farmmod.item.ModItems; import com.lucas.farmmod.item.custom.BaseIrrigatorBlockItem; import net.minecraft.world.item.BlockItem; import net.minecraft.world.item.Item; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.state.BlockBehaviour; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; The class DeferredRegister is throwing the error in the print below I've tried running rebuilding my project in every way possible, tried refreshing my dependencies but nothing works. What can i do?
  2. Well, ChatGPT actually helped me tbh haha I've looked through the game code and it helped me a lot too and eventually i made it work, with some bugs but it's working. Gonna join forge discord and ask for help there! Thanks!
  3. I making a block that can irrigate an area of 3x3 and this is how is should be like. Once you click to activate the block, the particles are added to the area that will be irrigated. The problem i'm having is that i don't know how to make the farmland wet. I've tried to do so, asked ChatGPT for help but could not get to any result. Full code of the custom block. How can i make the farmland wet? Should i receive any parameters in the moistenFarmland method? If so, what parameters?
  4. I decided to try minecraft modding. When i tried to run the task :runClient this error is generated. https://pastebin.com/007csEx4
×
×
  • Create New...

Important Information

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