Jump to content

gurujive

Forge Modder
  • Posts

    375
  • Joined

  • Last visited

Everything posted by gurujive

  1. @EventHandler public void preInit(FMLPreInitializationEvent event) { ModCreativeTabs.load(); proxy.preInit(); GuruItems.init(); GuruItems.register(); GuruEntities.registerEntities(); initRecipes(); }
  2. I fixed it shortly after. Was finally able to get my account back too! google won't allow you to sign in if you are in a different state... -.- ... which is very helpful itemGroup.TheBasicElements=The Basic Elements
  3. I have put the past 5-6 hours into looking for a way to dispense a throwable entity instead of a throwable entities' item. I have created a class within a new package/folder like so: package guru.tbe.entity.DispenseProjectiles; import net.minecraft.block.BlockDispenser; import net.minecraft.dispenser.BehaviorDefaultDispenseItem; import net.minecraft.dispenser.IBlockSource; import net.minecraft.dispenser.IPosition; import net.minecraft.entity.Entity; import net.minecraft.entity.IProjectile; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumFacing; import net.minecraft.world.World; public abstract class BehaviorDispense extends BehaviorDefaultDispenseItem { /** * Dispense the specified stack, play the dispense sound and spawn particles. */ public ItemStack dispenseStack(IBlockSource source, ItemStack stack) { World world = source.getWorld(); IPosition iposition = BlockDispenser.getDispensePosition(source); EnumFacing enumfacing = (EnumFacing)source.func_189992_e().getValue(BlockDispenser.FACING); IProjectile iprojectile = this.getProjectileEntity(world, iposition, stack); iprojectile.setThrowableHeading((double)enumfacing.getFrontOffsetX(), (double)((float)enumfacing.getFrontOffsetY() + 0.1F), (double)enumfacing.getFrontOffsetZ(), this.getProjectileVelocity(), this.getProjectileInaccuracy()); world.spawnEntityInWorld((Entity)iprojectile); stack.splitStack(1); return stack; } /** * Play the dispense sound from the specified block. */ protected void playDispenseSound(IBlockSource source) { source.getWorld().playEvent(1002, source.getBlockPos(), 0); } /** * Return the projectile entity spawned by this dispense behavior. */ protected abstract IProjectile getProjectileEntity(World worldIn, IPosition position, ItemStack stackIn); protected float getProjectileInaccuracy() { return 6.0F; } protected float getProjectileVelocity() { return 1.1F; } } I have been reading for hours and I still don't know where to go from here, or what to do next. To be honest I've been looking for a way to solve this for months... and I haven't been able to find any info that actually helps with accomplishing this task. Any help is nice.
  4. haha, MEEEE TOOO. i cant stand stuff like this. can't hardly read the stuff.
  5. no black and pink squares and it says guru:AirOrb just what i needed. GameRegistry.register(AirOrb.setRegistryName ("AirOrb"));
  6. then after that you'd do the /gradlew eclipse one, if you are using eclipse*
  7. you can make a text file, name it gradle.properties inside it put: org.gradle.jvmargs=-Xmx1300M and just drag that sucker into your mdk before you run your /gradlew setupDecompWorkspace. /gradlew setupDecompWorkspace also before running setupworkspace I would open up build.gradle and down at the bottom after the last } put: sourceCompatibility = 1.8 targetCompatibility = 1.8 so it targets java 8 and you dont run into any deprecation issues there.
  8. undeprication, updated data on this post removing what was previously on it*: public static void register() { GameRegistry.register(AirOrb.setRegistryName ("AirOrb")); GameRegistry.register(WaterOrb.setRegistryName ("WaterOrb")); GameRegistry.register(EarthOrb.setRegistryName ("EarthOrb")); GameRegistry.register(FireOrb.setRegistryName ("FireOrb")); GameRegistry.register(NetherOrb.setRegistryName ("NetherOrb")); GameRegistry.register(InvisibleOrb.setRegistryName ("InvisibleOrb")); GameRegistry.register(CreativeOrb.setRegistryName ("CreativeOrb")); }
  9. I was able to remove the deprecation like this, but when i got in game my items in game are pink and black squares if i change any of the unlocalized name parts the game crashes when i go to launch it: public class GuruItems { public static Item AirOrb; public static Item WaterOrb; public static Item EarthOrb; public static Item FireOrb; public static Item NetherOrb; public static Item InvisibleOrb; public static Item CreativeOrb; public static void init() { Item item = (new ItemBucket(Blocks.air)).setUnlocalizedName("bucket").setMaxStackSize(16); AirOrb = new ItemAirOrb().setUnlocalizedName("AirOrb").setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); WaterOrb = new ItemWaterOrb().setUnlocalizedName("WaterOrb").setContainerItem(item).setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); EarthOrb = new ItemEarthOrb().setUnlocalizedName("EarthOrb").setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); FireOrb = new ItemFireOrb().setUnlocalizedName("FireOrb").setContainerItem(item).setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); NetherOrb = new ItemNetherOrb().setUnlocalizedName("NetherOrb").setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); InvisibleOrb = new ItemInvisibleOrb().setUnlocalizedName("InvisibleOrb").setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); CreativeOrb = new ItemCreativeOrb(). setUnlocalizedName("CreativeOrb").setMaxStackSize(64).setCreativeTab(CreativeTabs.tabMisc); } public static void register() { GameRegistry.register(AirOrb.setRegistryName("AirOrb")); GameRegistry.register(WaterOrb.setRegistryName("WaterOrb")); GameRegistry.register(EarthOrb.setRegistryName("EarthOrb")); GameRegistry.register(FireOrb.setRegistryName("FireOrb")); GameRegistry.register(NetherOrb.setRegistryName("NetherOrb")); GameRegistry.register(InvisibleOrb.setRegistryName("InvisibleOrb")); GameRegistry.register(CreativeOrb.setRegistryName("CreativeOrb")); } public static void registerRenders() { registerRender(AirOrb); registerRender(WaterOrb); registerRender(EarthOrb); registerRender(FireOrb); registerRender(NetherOrb); registerRender(InvisibleOrb); registerRender(CreativeOrb); } private static void registerRender(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getRegistryName(), "inventory")); } }
  10. I'm still getting crashes ending up with something like this.... public static void register() { ((Impl<Item>) items).setRegistryName("AirOrb"); ((Impl<Item>) items).setRegistryName("WaterOrb"); ((Impl<Item>) items).setRegistryName("EarthOrb"); ((Impl<Item>) items).setRegistryName("FireOrb"); ((Impl<Item>) items).setRegistryName("NetherOrb"); ((Impl<Item>) items).setRegistryName("InvisibleOrb"); ((Impl<Item>) items).setRegistryName("CreativeOrb"); } maybe I'll be able to solve it somehow or another, At least I know the answer is on this page. This is really too much trouble over something small. it sucks.
  11. Alright here is the log, thanks y'all
  12. This isn't coming together for me... I'm ether missing something, not getting something, don't know something, or something. The 2nd code block may be entirely completely wrong! I don't know!
  13. I have been sitting here for over 2 hours crashing minecraft with this new item stuff, and its starting to get at me... I have seen choonster's examples and I can't get them to work. This is what my items look like originally: public class GuruItems { public static Item AirOrb; public static Item WaterOrb; public static Item EarthOrb; public static Item FireOrb; public static Item NetherOrb; public static Item InvisibleOrb; public static Item CreativeOrb; public static void init() { Item item = (new ItemBucket(Blocks.air)).setUnlocalizedName("bucket").setMaxStackSize(16); AirOrb = new ItemAirOrb().setUnlocalizedName("AirOrb").setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); WaterOrb = new ItemWaterOrb().setUnlocalizedName("WaterOrb").setContainerItem(item).setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); EarthOrb = new ItemEarthOrb().setUnlocalizedName("EarthOrb").setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); FireOrb = new ItemFireOrb().setUnlocalizedName("FireOrb").setContainerItem(item).setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); NetherOrb = new ItemNetherOrb().setUnlocalizedName("NetherOrb").setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); InvisibleOrb = new ItemInvisibleOrb().setUnlocalizedName("InvisibleOrb").setMaxStackSize(64).setCreativeTab(CreativeTabs.tabCombat); CreativeOrb = new ItemCreativeOrb(). setUnlocalizedName("CreativeOrb").setMaxStackSize(64).setCreativeTab(CreativeTabs.tabMisc); } public static void register() { GameRegistry.registerItem(AirOrb, AirOrb.getUnlocalizedName().substring(5)); GameRegistry.registerItem(WaterOrb, WaterOrb.getUnlocalizedName().substring(5)); GameRegistry.registerItem(EarthOrb, EarthOrb.getUnlocalizedName().substring(5)); GameRegistry.registerItem(FireOrb, FireOrb.getUnlocalizedName().substring(5)); GameRegistry.registerItem(NetherOrb, NetherOrb.getUnlocalizedName().substring(5)); GameRegistry.registerItem(InvisibleOrb, InvisibleOrb.getUnlocalizedName().substring(5)); GameRegistry.registerItem(CreativeOrb, CreativeOrb.getUnlocalizedName().substring(5)); } public static void registerRenders() { registerRender(AirOrb); registerRender(WaterOrb); registerRender(EarthOrb); registerRender(FireOrb); registerRender(NetherOrb); registerRender(InvisibleOrb); registerRender(CreativeOrb); } private static void registerRender(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory")); } } And this is what i've come up with looking at choonster's examples: public class GuruItems { public static final Set<Item> items = new HashSet<>(); public static Item AirOrb; public static Item WaterOrb; public static Item EarthOrb; public static Item FireOrb; public static Item NetherOrb; public static Item InvisibleOrb; public static Item CreativeOrb; public static void registerItems() { AirOrb = registerItem(new ItemAirOrb()); WaterOrb = registerItem(new ItemWaterOrb()); EarthOrb = registerItem(new ItemEarthOrb()); FireOrb = registerItem(new ItemFireOrb()); NetherOrb = registerItem(new ItemNetherOrb()); InvisibleOrb = registerItem(new ItemInvisibleOrb()); CreativeOrb = registerItem(new ItemCreativeOrb()); } private static <T extends Item> T registerItem(T item) { GameRegistry.register(item); items.add(item); return item; } } Everytime I go to start up the game with the 2nd code block the game crashes and makes me feel even more defeated so instead of getting frustrated I figured I'd come here to ask. How do I solve this ? Any help at all I'm thankful for... *sigh*
  14. Maybe, I did change something.... cuz I went all the way back to 1816 and its still screwed up... I did notice however that if you start a world in 1821 and then go to load it with 1817 the world will not load and it will get stuck at 0% I know i took the first pic in 1817 though.... hmmmm edit: Something fishy is going on here I know i didn't change anything. I went back and looked at my logs...
  15. After examining my other orbs I have found these stubborn lines on my other transparent type orbs as well. It has to do with how the transparency is rendered. There was some change that happened between 1817 and 1821 that would force people to use specific rotation/scale/etc on anything with transparency.
  16. Yes, I couldn't help but notice that the water texture has changed/is bugged currently in 1821. Here is an example picture in 1817: http://i.imgur.com/3dTn16f.png Here is an example picture in 1821: http://i.imgur.com/fbNDukd.png As you can see there are lines through my orb and the texture has flip flopped around in 1821 from 1817. Is there a plan on fixing this? All previous versions of forge match the pic for 1817 that I know of. So, this is a bug. My .json has not been modified in any way shape form or fashion between version 1817 and 1821. Thanks.
  17. Just got back on here to verify that build 1819 is launching and functioning. Have a good one y'all.
  18. Here is also the fml-client-latest.log to complete the report:
  19. Launcher gives the following info after crash, hope this helps somehow or another:
  20. no.... I changed the sound to something else and it still produces the wing flapping noise.. So all snowballish type items are stuck with this annoying sound they can't get rid of? This sound exists nowhere in my item model my entity renderer or anything but somehow it plays when i right click it. So so so very frustrating.
  21. SoundEvents.entity_bobber_throw Is also producing the wing flap noise too. which really disappoints me... because that should work. It doesn't make the wing flap noise in game survival or creating when I right click with a fishing pole. ... so I dunno what's up with this.
  22. I learned that this is actually a feature in 1.9... Now the next question is... how do I remove it...
  23. The sounds both for a snowball being thrown and an arrow being shot produces this other sound. It is also effecting the vanilla snowball. It was not there before and if possible that this can be removed I'd be really thankful. Two sounds playing at once almost doesn't sound right, (doesn't really sound right) and it may be a.... dragon wing sound when right clicking a snowball? Ether way It doesn't do this in creative mode, it only does this in survival. Hope this gets resolved ,\/..
×
×
  • Create New...

Important Information

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