Skip 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. I don't know why you're doing this in PlayerTick anyway. But that aside... 1) Do you have more than one sword in your inventory? 2) Are you calling this function from anywhere else?
  2. Well you have to actually update the things that need updating. protected boolean isArrow(ItemStack stack) { return stack.getItem() instanceof ItemArrow; } You're still consuming arrows in order to consume ammo. ItemArrow itemarrow = (ItemArrow)((ItemArrow)(itemstack.getItem() instanceof ItemArrow ? itemstack.getItem() : Items.ARROW)); EntityArrow entityarrow = itemarrow.createArrow(worldIn, itemstack, entityplayer); And still using arrows to get the entity to spawn.
  3. @SubscribeEvent public void onPlayerTick(PlayerTickEvent event) { if (!event.player.getEntityWorld().isRemote) { if (event.phase == Phase.START) { System.out.println(event.player.world.getTotalWorldTime()); } } } I am not able to replicate. 42997 42998 42999 43000 43001 43002 If it was running twice per tick, I would see doubled output.
  4. Are you checking Server vs. Client as well? I don't know because you haven't posted any code
  5. PlayerTickEvent is one of the events that has a phase, START and END.
  6. Well...is your current code posted somewhere?
  7. Math. Time Left In Ticks = Duration - (Current Time - Start Time) Time Left in Minutes = Time Left in Ticks / (20 * 60)
  8. "It hurts doctor. It hurts." Please define "doesn't work" in a manner that is actually troubleshootable.
  9. "It hurts doctor. It hurts." Please define "doesn't work" in a manner that is actually troubleshootable.
  10. It is fired for everything.
  11. Well. You're still asking the vanilla arrow item for the entity that it spawns...
  12. The tooltip gets updated every render frame. You can query the current time from the world (getInformation is Side-Only so you can safely use Minecraft.getMinecraft() if necessary) and calculate the duration.
  13. The block doesn't control texture and model. The json files and the registry name do.
  14. If you want a projectile to not look like an arrow, you'd need to create a new entity class. The last time I did that was 1.7: https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/entity/EntitySpecialArrow.java
  15. Technically there are 4 different names: The original source (only Mojang has this) The obfuscated names, aka Notch names (these are generated by the compile process and look like aa.bbcfa, you would see these if you opened the vanilla jar in JD-GUI, these will be arbitrary as source code changes) The SRG names (these are the ones you're seeing, generated by the decompile process with names like p_12345_c and func_765432_f and are generally stable as the source code changes and new versions are released) The MCP names (these are community supplied via MCPbot, mapped to SRG names)
  16. Current version is 1.12, previous version is 1.11. 1.7.10 threads have been locked and closed as unsupported for at least 6 months. Heck, there's one still on the first page.
  17. 1.7.10 is no longer supported here
  18. Have you considered posting this in Support and Bug Reports?
  19. You can download it from GitHub https://github.com/MinecraftForge/Documentation
  20. No, no it does not. It means the exact opposite.
  21. No you don't, not when you ask questions like "how do I make a variable?"
  22. Caused by: java.io.FileNotFoundException: mby:models/block/secadora.json
  23. This is literally not a problem. And...what did you expect this to do?

Important Information

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

Account

Navigation

Search

Search

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.