Jump to content

pinkyboy9102

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

pinkyboy9102's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hi all, I've been coding my mod for a while now and decided it was time to try and change how you obtain one of my items: Raw Obsidian. Before you just smelted obsidian, but now I want to make it so that when you break Obsidian with a new 'pickaxe' i added called the Hammer, it drops 4 Raw Obsidian and NOTHING else. I am currently trying to do this through an event handler, but it drops the Obsidian Chunks AND the Obsidian block. Does anyone know how to fix this? My Event Handler: package com.pinkyboy910.craftablespawners.event; *IMPORTS* public class events { @SubscribeEvent public void onDrops(BlockEvent.HarvestDropsEvent event) { if (event.block == Blocks.obsidian && event.harvester.getHeldItem() != null && event.harvester.getHeldItem().getItem() == MainClass.diamondHammer){ event.drops.remove(Blocks.obsidian);} if (event.block == Blocks.obsidian && event.harvester.getHeldItem() !=null && event.harvester.getHeldItem().getItem() == MainClass.diamondHammer){ event.drops.add(new ItemStack(MainClass.rawObsidian, 4));} } } If anyone knows how to fix this, please help -pinkyboy
  2. Hi all, Before 1.7.10 forge was released, I used the older, non-gradle version of forge to code. Recently I decided to update my mods but then decided it would be better to start from scratch instead of all the effort, so I followed some basic tutorials on setting up forge gradle. I have run all the commands correctly and the builds were all successful, but when I attempt to link my Eclipse to the 'eclipse' folder in the forge source folder, it just has minecraft as a package with no drop down and says: 'The project description file (.project) for 'Minecraft' is missing. This file contains important information about the project. The project will not function properly until this file is restored.' I have looked around but can't find solutions anywhere. Help would be GREATLY appreciated! Many thanks, pinkyboy9102 EDIT: Nevermind, I just re-ran 'gradlew setupDecompWorkspace eclipse' then double-clicked the empty package and it...un-emptied
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.