Everything posted by Draco18s
-
PlayerTickEvent being called twice in 1.12?
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?
-
[1.11.2] Create a custom shot out entity
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.
-
PlayerTickEvent being called twice in 1.12?
@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.
-
PlayerTickEvent being called twice in 1.12?
Are you checking Server vs. Client as well? I don't know because you haven't posted any code
-
PlayerTickEvent being called twice in 1.12?
PlayerTickEvent is one of the events that has a phase, START and END.
-
[1.11.2] Create a custom shot out entity
Well...is your current code posted somewhere?
-
[1.11.2] Conversion Question for Ticks and Misc.
Math. Time Left In Ticks = Duration - (Current Time - Start Time) Time Left in Minutes = Time Left in Ticks / (20 * 60)
-
ItemStack item changing
"It hurts doctor. It hurts." Please define "doesn't work" in a manner that is actually troubleshootable.
-
[1.11.2] Create a custom shot out entity
"It hurts doctor. It hurts." Please define "doesn't work" in a manner that is actually troubleshootable.
-
Replace Biome X by Biome Y on Biome X spawn
It is fired for everything.
- ItemStack item changing
-
[1.11.2] Create a custom shot out entity
Well. You're still asking the vanilla arrow item for the entity that it spawns...
-
[1.11.2] Conversion Question for Ticks and Misc.
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.
-
Custom Harvest Tool with Harvestability by Hand [11.2]
The block doesn't control texture and model. The json files and the registry name do.
-
[1.11.2] Create a custom shot out entity
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
-
Documentation for p_ variables ?
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)
-
[1.7.10] Pixel format not accelerated (runClient task)
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.
-
[1.7.10] Pixel format not accelerated (runClient task)
1.7.10 is no longer supported here
- ItemStackHolder crashes on private field (ObjectHolder doesn't)
-
[1.12] Can not register to a locked registry
You can download it from GitHub https://github.com/MinecraftForge/Documentation
-
[1.12] Can not register to a locked registry
No, no it does not. It means the exact opposite.
-
[1.12] Can not register to a locked registry
No you don't, not when you ask questions like "how do I make a variable?"
-
[1.8+][Solved] Reasons for inside faces going dark when blocks are adjacent?
Ambient occlusion probably.
-
[1.11.2] Texture problems
Caused by: java.io.FileNotFoundException: mby:models/block/secadora.json
-
[1.7.10] Crash Upon Initialization
This is literally not a problem. And...what did you expect this to do?
IPS spam blocked by CleanTalk.