Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. do you have a link that github repo.
  2. LightningBoltEntity lightning = new LightningBoltEntity(EntityType.LIGHTNING_BOLT, this.getWorld()); lightning.setLocationAndAngles(this.getPos().getX(), this.getPos().getY(), this.getPos().getZ(), rng.nextFloat() * 360, 0); if (this.getWorld().isThundering()) { if (this.getWorld().getGameTime() % (350 - rng.nextInt(200)) == 0) { this.getWorld().addEntity(lightning); } } you first create a new LightningBoltEntity and after that you check if you need to, dont do that
  3. Leronus what version are you modding ?
  4. https://github.com/MinecraftForge/MinecraftForge/blob/1.16.x/src/main/java/net/minecraftforge/common/extensions/IForgeItem.java#L290-L305
  5. https://docs.gradle.org/current/userguide/plugins.html#sec:old_plugin_application you add it the the buildscript repositories but you need to add your maven the the normal repositories https://docs.gradle.org/current/userguide/declaring_repositories.html
  6. if the mod is is on curseforge you can put it in a modpack that you distribute on curseforge good job you made a mod pack that is full of conflicts making a modpack like rlcraft can take days/weeks
  7. the discord for curseforge they can help you w/ the upload part https://discord.gg/CBUJv5a beware that making a good modpack is not easy its more then dragging a bunch of mods in a folder and you are not allowed to use parts of rlcraft
  8. what does not work do you have the block in game? does it not have the correct shape? does it not have a texture?
  9. if only there was a redstone lamp in minecraft that i can look at
  10. you are using a unsupported version learn how gradle works
  11. https://github.com/MinecraftForge/MinecraftForge/pull/6668 is this what you want ?
  12. ServerPlayerEntity player = (ServerPlayerEntity) event.player; // you first cast player to ServerPlayerEntity World world = player.getEntityWorld(); BlockPos pos = new BlockPos(player.getPosX(), player.getPosY() - 1, player.getPosZ()); if (player instanceof ServerPlayerEntity) // and here check if the player is a instance of ServerPlayerEntity thats wrong
  13. thats not true it can be static but you register you eventhander different for static you register eventhander class for non static you register a instance of eventhander
×
×
  • Create New...

Important Information

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