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.

Fennx1000

Members
  • Joined

  • Last visited

Everything posted by Fennx1000

  1. Fennx1000 posted a topic in Modder Support
    Is there a 1.19.2 event for when the arrow hits anything. If so, how would I make it summon a cave spider once hit.
  2. I was wondering if there was a 1.19.2 Tutorial on making potion effects. If not, how do I learn this...
  3. So hi but I have a item that summons particles around the nearest entity but deals damage to but it seems to be not dealing the damage. here is my code... https://pastebin.com/bNrD7iK7
  4. I found how I can use TimeCommand.setTime() but IDK What the parameters are besides there being 3 and the last one is the time
  5. So im making an item and when you right click I want the time to be set to day anyone know if there is like a level.setTime for 1.19.2 though I did check and could not find...
  6. Just to make you aware I have being trying to find this out since 3 hours ago...
  7. So I am creating a mod and in that mod I'm creating a wand which strikes entities with lightning and if there is no entity it just strikes where you aim. now I need to spawn lightning for this but level.spawnLightning no longer works since it is in 1.19.2 any suggestions to replace... https://prnt.sc/KMGMC3wGkssk <<< Image for reference...
  8. since this is 1.19.2
  9. Shouldn't I just put success...
  10. So I am working on a wand in 1.19.2 forge and for the event it is the InteractionResultHolder<> event... I created a particle beam but it is not showing up here is my code public ElementalWand(Properties properties) { super(properties); } @Override public InteractionResultHolder<ItemStack> use(Level level, Player player, InteractionHand hand) { if (!level.isClientSide()) { // only execute on server side // get player's position and facing direction Vec3 pos = player.getEyePosition(1.0f); Vec3 dir = player.getLookAngle(); // get the block in front of the player BlockPos blockPos = new BlockPos(pos.add(dir.scale(2.0))); BlockState blockState = level.getBlockState(blockPos); // create particle beam for (int i = 0; i < 40; i++) { // spawn 40 particles along beam Vec3 particlePos = pos.add(dir.scale(i * 0.2)); // spawn particles every 0.2 blocks level.addParticle(ParticleTypes.DRAGON_BREATH, particlePos.x(), particlePos.y(), particlePos.z(), 0.0, 0.0, 0.0); } // schedule particle beam to dissipate after 2 seconds int particleCount = 40; double x = pos.x(); double y = pos.y(); double z = pos.z(); ClientboundLevelParticlesPacket particlePacket = new ClientboundLevelParticlesPacket( ParticleTypes.DRAGON_BREATH, true, (float) x, (float) y, (float) z, 0.0f, 0.0f, 0.0f, 0.0f, particleCount ); ((ServerPlayer) player).connection.send(particlePacket); // return success return new InteractionResultHolder<>(InteractionResult.SUCCESS, player.getItemInHand(hand)); } // return pass if executed on client side return new InteractionResultHolder<>(InteractionResult.PASS, player.getItemInHand(hand)); }
  11. i have not launched it due to there being a clear error in front of me (this) Vector3d direction = new Vector3d(xDir, yDir, zDir).normalize().mul(strength);
  12. So I have as the title says 4 errors but it is all connected to one variable. So i am making a 1.19.2 mod and in an event I am trying to make the player get flanged into the air but I got an error here which is causing other errors... Vector3d direction = new Vector3d(xDir, yDir, zDir).normalize().mul(strength); That is the code causing the problem (the normalize is the problem)
  13. no because its asking about blockstate which is to do with minecraft modding not damn java
  14. I literally sat there for like 20 days learning java so yea I would say I do.
  15. The target bit is not working idk why here is the entire class: https://www.toptal.com/developers/hastebin/anexuzowuh.java just in that link This is the error: D:\Minecraft Mods\Forge\1.17\Metal\src\main\java\me\fennx\metal\core\world\OreGeneration.java:23: error: incompatible types: RegistryObject<Block> cannot be converted to BlockState Blockinit.STARLIGHT_ORE), ^ D:\Minecraft Mods\Forge\1.17\Metal\src\main\java\me\fennx\metal\core\world\OreGeneration.java:25: error: incompatible types: RegistryObject<Block> cannot be converted to BlockState Blockinit.STARLIGHT_ORE)), ^
  16. please can you not tell me that and tell me what is wrong.
  17. wat I have no log for some reason
  18. So I was coding but the item texture for my item is weird so yea its null, purple and black idk why it has the right file path.

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.