-
Posts
211 -
Joined
-
Last visited
Everything posted by Insane96MCP
-
Yeah you may have more java versions
-
Why is NetherBrick's harvestTools equal to null?
Insane96MCP replied to Insane96MCP's topic in Modder Support
That did the job by checking if the StrVsBlock is > 1.0f -
Why is NetherBrick's harvestTools equal to null?
Insane96MCP replied to Insane96MCP's topic in Modder Support
Don't think so since I need to know if an Item can harvest the Block as Tool, not Level -
Why is NetherBrick's harvestTools equal to null?
Insane96MCP replied to Insane96MCP's topic in Modder Support
But this is not true for the NetherBrick -
How what?
-
As you can see on the right side of the F3 screen, with forge your minecraft runs with the sheetty integrated GPU, while the non-forge runs with the UberPowerful GPU. Just change that. YOu should be able to do this from desktop > rightclick > NVIDIA control panel and there you have to set the right GPU. It's not a forge problem. I assume that you run the non-forge version from the original launcher and the Forge version from a different launcher (Twitch App, MultiMC, etc.) That gave me an headache for a month when I bought a new PC for "Why I have now a powerful computer and minecraft runs at 20 FPS??"
-
Do you have any mod installed (other than Optifine)? Could you send an F3-screen screenshot in-game? Do you experience something like this?
-
I'm checking if the tool I'm using on blocks is effective on those. But for some reasons, netherbrick's harvestTool is null and not "pickaxe" Printing the actual tool class, block's unloalized name and block's harvestTool System.out.println(toolClass + " " + block.getUnlocalizedName() + " " + block.getHarvestTool(event.getState())); Outputs pickaxe tile.netherBrick null
-
How to use unlocalized strings other than on item / block names?
Insane96MCP replied to Insane96MCP's topic in Modder Support
Nevermind. Found out that I can use %d / %s / ... and the parameters parameter in I18n.format() -
How to use unlocalized strings other than on item / block names?
Insane96MCP replied to Insane96MCP's topic in Modder Support
There's any convention I should use for placeholders? -
How to use unlocalized strings other than on item / block names?
Insane96MCP replied to Insane96MCP's topic in Modder Support
Oh, forgot about placeholders. -
How to use unlocalized strings other than on item / block names?
Insane96MCP replied to Insane96MCP's topic in Modder Support
Thanks everyone. I18n did the job. Another small question. How can I add a space after a string in the lang file? Like tooltip.item.base_info=This is an OP sword <-Space Seems like minecraft doesn't recognize the space. Nevermind. I'm stupid. ^ The same question goes for a space after the equal (=) tooltip.item.base_info= This is an OP sword In this case, minecraft doesn't recognize the string at all. I had to do tooltip.add(I18n.format("tooltip.item.base_info") + " "); and tooltip.add(" " + I18n.format("tooltip.item.base_info")); but I don't think that is a neat solution -
How to use unlocalized strings other than on item / block names?
Insane96MCP replied to Insane96MCP's topic in Modder Support
Double post. Deleted -
I have those 2 simple subscribed events: @SubscribeEvent public void PlayerDropsEvent(PlayerDropsEvent event) { Entity entity = event.getEntity(); System.out.println("Drop " + entity); } @SubscribeEvent public void PlayerRespawnEvent(PlayerEvent.PlayerRespawnEvent event) { System.out.println(event.player); } But none of them are called, neither when the player dies and when he respawns
-
The problem is that I've tried but the game crashes saying that the block has been registered twice: ResourceLocation location = new ResourceLocation("minecraft", "farmland"); newFarmland = new BlockNewFarmland(); newFarmland.setRegistryName(location); newFarmland.setCreativeTab(CreativeTabs.DECORATIONS); GameRegistry.register(newFarmland); GameRegistry.register(new ItemBlock(newFarmland), location); What's the point of this reply?
-
Get a list of every entity registered and know if it is a mob?
Insane96MCP replied to Insane96MCP's topic in Modder Support
As already said, I managed to do it. No need to instantiate every mob: -
Get a list of every entity registered and know if it is a mob?
Insane96MCP replied to Insane96MCP's topic in Modder Support
I was doing the wrong way around. The solution is the opposite if (EntityCreature.class.isAssignableFrom(EntityList.getClass(entity))) //returns true if entity is a subtype of EntityCreature -
Get a list of every entity registered and know if it is a mob?
Insane96MCP replied to Insane96MCP's topic in Modder Support
Yeah, I meant the resource location for the lightning bolt does this what?