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.

Ronaldi2001

Members
  • Joined

  • Last visited

Everything posted by Ronaldi2001

  1. That worked. What he was saying made no sense to me at all but now that I see it I get it.
  2. Ya I want to set it for my own tools. I want it so that there is no wait time and 100 damage.
  3. So how would I code it so that way the night vision is on for 220 ticks? I'm so confused...
  4. Is it possible to change attack speed and damage on different tools. I know on the axe it makes you change it. All help is appreciated!
  5. I changed it because you can't do "potion." and name the potion, that is no longer an option in 1.9.
  6. I am porting my mod over to 1.9 and I have night vision on my helmet. In 1.7.10 this is the code I used: player.addPotionEffect(new PotionEffect(Potion.nightVision.getId(), 220, 0)); What I ported over so far is: player.addPotionEffect(new PotionEffect (Potion.getPotionById(16))); but the potion effect doesn't last long, and because of that the screen flashes. All the help will be appropriated.
  7. Diamond Seeds Class: package ronaldi2001.MoreItems.crops; import net.minecraft.block.Block; import net.minecraft.block.BlockBush; import net.minecraft.block.material.Material; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.world.World; import ronaldi2001.MoreItems.init.MoreItemsItems; public class MIDiamondCrop extends BlockBush { public MIDiamondCrop(String name) { this.setUnlocalizedName(name); } public Item getSeed() { return MoreItemsItems.diamond_seeds; } public Item getCrop() { return Items.diamond; } } MIItemSeeds Class: package ronaldi2001.MoreItems.items; import net.minecraft.block.Block; import net.minecraft.item.ItemSeeds; import ronaldi2001.MoreItems.main.MoreItems; public class MIItemSeeds extends ItemSeeds { public MIItemSeeds(Block crops, Block soil, String name) { super(crops, soil); this.setUnlocalizedName(name); this.setCreativeTab(MoreItems.tabMoreItems); } }
  8. I am adding material crops to my mod and when I went to go add lapis(dye, 1, 4) the "1, 4" is highlited with red and I cant figure out how to make it work with lapis. If I make it a "new ItemStack" like I would when I use it in the crafting recipes, the whole line gets highlighted red. package ronaldi2001.MoreItems.crops; import net.minecraft.block.BlockCrops; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import ronaldi2001.MoreItems.init.MoreItemsItems; public class MILapisCrop extends BlockCrops { public MILapisCrop(String name) { this.setUnlocalizedName(name); } public Item getSeed() { return MoreItemsItems.lapis_seeds; } public Item getCrop() { return Items.dye, 1, 4; } }
  9. I am adding on to my mod More Items and i'm adding material crops. I am making my diamond crop right now and I want the seed to plant the crop on a block of diamond. I added the diamond block where farmland should be but it still wont let me plant it on it. Diamond Plant Registry: GameRegistry.registerItem(diamond_seeds = new MIItemSeeds(MoreItemsCrops.diamond_crop, Blocks.diamond_block, "diamond_seeds"), "diamond_seeds");
  10. Main Class: Crops Class: Items Class for seed:
  11. What would I put to override the state of the crop.
  12. I followed the video below to help me, it works for him. Someone in the comments of the video has the same problem. Sorry I just figured out that there is an insert code button for code I will use it next time.
  13. I am adding crops to my mod and when I click with the seed my client crashes. But if I give myself the block with commands I can place the plant on grass and farmland and when I click on the plant with bone meal and it works. I just need help making the seeds plant the crop. Error:

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.