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.

Joe L Chasseu

Members
  • Joined

  • Last visited

Everything posted by Joe L Chasseu

  1. package init; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.ChatComponentText; import net.minecraft.util.IChatComponent; import net.minecraft.world.World; public class Des extends Item { public static ItemStack itemdes; public ItemStack useItemRightClick(World world, EntityPlayer player) { IChatComponent jet = new ChatComponentText("/dndroll 2d6"); player.addChatComponentMessage(jet); return player; } } Des = Dice in french itemdes = new Des().setUnlocalizedName("des").setCreativeTab(Heimnor.HeimnorCreativeTabs).setTextureName(Heimnor.MODID + ":des"); Actually i did this. Please tell me if i did something wrong, i have no error but when i do a right click with my item it did nothing.
  2. Hi, I started to code one week ago, so I'm a beginner and i want to create an item Dice for my server. We have a plugin wich can make dice rolls, so i want to link my item to a command (/dndroll 2d6)... I tried to use the "onItemRightClick" in my ItemDice class but I'm a bit lost when i have to create the line to send the command into the chat of Minecraft. I hope someone can help me, thanks.

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.