Everything posted by Fennx1000
-
On Hit
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.
-
Where do I find it.
I was wondering if there was a 1.19.2 Tutorial on making potion effects. If not, how do I learn this...
-
Damage Item No Work
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
-
Time Change ????
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
-
Time Change ????
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...
-
Spawn lightning
Just to make you aware I have being trying to find this out since 3 hours ago...
-
Spawn lightning
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...
-
Particle Beam???
since this is 1.19.2
-
Particle Beam???
Shouldn't I just put success...
-
Particle Beam???
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)); }
-
4 ERRORS HOW
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);
-
4 ERRORS HOW
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)
-
Ore Generation Not Working
no because its asking about blockstate which is to do with minecraft modding not damn java
-
Ore Generation Not Working
I literally sat there for like 20 days learning java so yea I would say I do.
-
Ore Generation Not Working
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)), ^
-
Why are my textures funky.
please can you not tell me that and tell me what is wrong.
-
Why are my textures funky.
wat I have no log for some reason
-
Why are my textures funky.
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.