Jump to content

vyroki

Members
  • Posts

    4
  • Joined

  • Last visited

vyroki's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. So I tried this and it is now given me even more errors lol
  2. I don't know what to do but I need to get this working for an assignment. I've never had this error before but I opened up Eclipse today and now all of a sudden it's showing up. I can't find anything online on how to fix it and my last post was not helpful. Do I need to update something? There seems to be a build path issue but I don't know how to fix it. I didn't change anything from the last time I opened this mod, so I don't understand why it's happening. import net.minecraftforge.eventbus.api.SubscribeEvent;
  3. I've been working on this mod for a bit now, but when I opened it today I'm receiving the error "The import net.minecraftforge.eventbus cannot be resolved." I have never had this issue before. I have already tried cleaning the project, but I am very new to coding and am not sure what else I should try. Has something changed with the import that I should be accounting for? import net.minecraftforge.eventbus.api.SubscribeEvent; @Mod.EventBusSubscriber(modid = ModName.MODID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT) public class ModClientEvents { @SubscribeEvent
  4. I'm new to modding and trying to add an item to the player's inventory. I keep getting the error "The constructor ItemStack(Material, int) is undefined" and can't find anything to fix it. public static void Death(PlayerEvent.PlayerRespawnEvent event) { Player p = event.getPlayer(); ItemStack item = new ItemStack(Material.BAMBOO, 64); p.getInventory().add(item); } Does anyone have any suggestions for what I'm doing wrong? (1.17 btw)
×
×
  • Create New...

Important Information

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