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.

Rex_Technology

Members
  • Joined

  • Last visited

  1. Rex_Technology changed their profile photo
  2. I'm trying to make an item that when I right click it a falling block shoots from the position of the player, in the direction where the player is looking but, I tried FallingBlockEntity fallingBlock = FallingBlockEntity.fall(event.getLevel(), event.getPos(), Blocks.DIRT.defaultBlockState()); and setting the delta movement to the look angle of the player but the falling block just falls from the players feet to 2 block and then disappears and reappears near as a full block on a block near the crosshair. I don't know what to do.
  3. I just found a tutorial for events for forge 1.19, Thank you, my problem is solved
  4. but Can I modify a sick in other modloaders?(like fabric or spigot)
  5. And there's no other way?
  6. So, I'm trying to make a harry potter mod where when you shift + right click a stick it transforms into a wand(a custom item). I've created a class for what should the vannila stick do: package com.rextechnology.rexmod.item.custom; import com.rextechnology.rexmod.item.ModItems; import net.minecraft.network.chat.Component; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResultHolder; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.TooltipFlag; import net.minecraft.world.level.Level; import org.jetbrains.annotations.Nullable; import java.util.List; public class StickItem extends Item { public StickItem(Properties pProperties) { super(pProperties); } @Override public void appendHoverText(ItemStack pStack, @Nullable Level pLevel, List<Component> pTooltipComponents, TooltipFlag pIsAdvanced) { pTooltipComponents.add(Component.literal("§6Shift §6+ §6click to convert to a wand")); super.appendHoverText(pStack, pLevel, pTooltipComponents, pIsAdvanced); } @Override public InteractionResultHolder<ItemStack> use(Level pLevel, Player pPlayer, InteractionHand pUsedHand) { if (pPlayer.isShiftKeyDown()) { pPlayer.setItemInHand(pUsedHand, new ItemStack(ModItems.WAND.get())); } return super.use(pLevel, pPlayer, pUsedHand); } } but I dont know how to make this class be used by the vannila stick
  7. I already learned java, I followed a java tutorial made by Kaupenjoe that is made for minecraft modding
  8. In java and in minecraft modding. I've learned java for minecraft modding.
  9. And I should note I am a beginner
  10. Ok, thank you but how do I start the timer?
  11. So I want to create a delay in my method that destroys a block, waits for 20 ticks and then destroys the block below the destroyed one Thank you

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.