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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Is your BaseItems class of type Item? I bet not.
  2. Or if you want to be super lazy, create an item entity (don't spawn it) and tell the render engine to render it normally.
  3. Why is the capability attached to your mod class, not the entity?
  4. Say...The timeInPortal counter that already exists in the Entity class....
  5. On obj: I tried this the other week, to display a triangular prism (block cut in half diagonally) and I could not specify UV coordinates such that the triangular face displayed the way I wanted (that is, not distorted). Heck, the example on the Read the Docs (is that where I saw it?) had a standard obj file shown with all the vt lines commented out! Both of my attempts to leave them in resulted in parsing errors.
  6. And yet you expect support.
  7. Sorry, somehow missed that
  8. Don't register an ItemBlock for it...?
  9. Of course Eclipse has its own compiler. How did you think the run button worked?
  10. Q: why are you creating a new Item here?
  11. Or rather: you only need one proxy and so not need to know which one it is.
  12. Question: why isn't your unlocalized name also the registry name?
  13. Edge is literally Internet Explorer (v11, IIRC), the worst browser ever. If it doesn't know how to run that javascript, something is fucked up. Royally. Get any other browser ever. Now.
  14. Also there is no need to preface getRegistryName with your mod ID because getRegistryName already does that.
  15. Because the class is loaded . Merely by being called into existence, the JVM needs to load up every class that it then references before ANY method can be run.
  16. 1.6.4 is so old you can't even download and set up the workspace any more: the location of several files moved and the URLs in the setup config are no longer valid.
  17. My guess would be this: @Override protected void entityInit() { if(!worldObj.isRemote) //why is this here? this.dataWatcher.addObject(fuseID, Integer.valueOf(fuse)); } Based on looking at what Vanilla does, e.g. minecarts: protected void entityInit() { this.dataManager.register(ROLLING_AMPLITUDE, Integer.valueOf(0)); this.dataManager.register(ROLLING_DIRECTION, Integer.valueOf(1)); this.dataManager.register(DAMAGE, Float.valueOf(0.0F)); this.dataManager.register(DISPLAY_TILE, Integer.valueOf(0)); this.dataManager.register(DISPLAY_TILE_OFFSET, Integer.valueOf(6)); this.dataManager.register(SHOW_BLOCK, Boolean.valueOf(false)); }
  18. By the way, why is this in the Common proxy? https://github.com/archery2000/Mod/blob/master/core/CommonProxy.java#L48
  19. There's also public boolean removedByPlayer(IBlockState state, World world, BlockPos pos, EntityPlayer player, boolean willHarvest) or public void harvestBlock(World worldIn, EntityPlayer player, BlockPos pos, IBlockState state, @Nullable TileEntity te, @Nullable ItemStack stack) ?
  20. ....Try clicking on them? They're buttons...?
  21. So I took a look at your pick-block method (I don't know much about collision boxes right now). And gah! What is this mess!? @Override public ItemStack getPickBlock(IBlockState blockState, RayTraceResult rayTraceResult, World world, BlockPos blockPos, EntityPlayer entityPlayer) { return new ItemStack(Block.getBlockFromName("trafficstuffmod:sidewalk_normal_" + StringUtils.substringAfterLast(getUnlocalizedName(), "_")), 1, blockState.getValue(HEIGHT) - 1); } You're requesting a block from the Blocks array by name rather than using this or a static MainMod.blockRef and then combine it with the unlocalized name!?[/t] WHY?
  22. Ok, so tell me what's wrong here: //new function public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) { //open paren //new function private void effectPlayer(EntityPlayer player1, Potion potionIn, int amplifier) { //open paren

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.