Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

loordgek

Members
  • Content Count

    1845
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by loordgek

  1. use lambdas https://www.w3schools.com/java/java_lambda.asp for getSickness use LazyOptional::map
  2. is this what you want ? https://www.planetminecraft.com/mod/lucky-block-command-creator---thvardhan-minecraft-19/
  3. you want https://github.com/amadornes/MCMultiPart
  4. maybe it is time to buy a new/used one
  5. in build.gradle you need to change the maven url in the build buildscript from https://files.minecraftforge.net/maven to https://maven.minecraftforge.net/ and
  6. put this somewhere in the build.gradle repositories { maven { url = 'https://libraries.minecraft.net/' } mavenCentral() maven { url = 'https://maven.minecraftforge.net/' } } if you already have a repositories block put it in there
  7. you need to change the maven url in the build buildscript from https://files.minecraftforge.net/maven to https://maven.minecraftforge.net/
  8. dont create a new stack to check, check the item it self
  9. yes you can make a server side only mod
  10. save the old oldBackpack to nbt and load it in the new one
  11. https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/api/event/ModEventFactory.java you never post the event
  12. forge bus is for when the game starts
  13. https://github.com/MinecraftForge/MinecraftForge/blob/1.16.x/src/main/java/net/minecraftforge/event/entity/player/PlayerEvent.java#L93 https://github.com/MinecraftForge/MinecraftForge/blob/1.16.x/src/main/java/net/minecraftforge/event/entity/player/PlayerEvent.java#L135
  14. go and look what assertInventorySize does and A: replicate it using IItemHandler or B: remove it
  15. private LazyOptional<CombinedInvWrapper> optional = LazyOptional.of(() -> this will lazy initialized); EnderChestInventory enderChestInventory = player.getInventoryEnderChest(); IItemHandlerModifiable enderChestModifiable = new InvWrapper(enderChestInventory); invWrapper = new CombinedInvWrapper(enderChestModifiable, inventory); return invWrapper; that can be reduced to 1 line
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.