Skip to content

Instantly share code, notes, and snippets.

View Shadows-of-Fire's full-sized avatar

Brennan Ravenscroft Shadows-of-Fire

View GitHub Profile

To access google app maker, you need to go to https://developers.google.com/appmaker/overview
Once here, in the top corner, switch to your USF Gmail account. If you aren't on this account, you will be redirected to GSuite.
Select "Build It" to access App Maker.

Additional Resources (Created)
Working With CSS: https://gist.github.com/Shadows-of-Fire/c03d78d78750771c5f4e46aa6c4d0b85
Data Storage: https://gist.github.com/Shadows-of-Fire/293cd453bc47c18e2737487565f56453

Additional Resources (Provided)
Sample Apps: https://developers.google.com/appmaker/samples/

---RenderItem---
Old Details:
Item Type: net.minecraft.item.ItemMultiTexture@630390b9
Item Aux: 0
Item NBT: null
Item Foil: false
New Details:
Item Type: net.minecraft.item.ItemMultiTexture@630390b9
---- Minecraft Crash Report ----
WARNING: coremods are present:
IELoadingPlugin (ImmersiveEngineering-core-0.12-81.jar)
AstralCore (astralsorcery-1.12.2-1.8.9.jar)
CTMCorePlugin (CTM-MC1.12-0.2.3.12.jar)
Inventory Tweaks Coremod (InventoryTweaks-1.63.jar)
ForgelinPlugin (Forgelin-1.6.0.jar)
Do not report to Forge! Remove FoamFixAPI (or replace with FoamFixAPI-Lawful) and try again. (foamfix-0.9.9-1.12.2-anarchy.jar)
LoadingPlugin (Quark-r1.4-123.jar)
import mymod.Main;
import mymod._01_ChapterOne_ForgeYourSword.CustomMonster;
import mymod._07_ChapterSeven_ExplosionsAndSpecialEffects.EntityGrenade;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.RenderItem;
import net.minecraft.client.renderer.block.model.ItemCameraTransforms;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.client.renderer.texture.TextureMap;
{
"forge_marker": 1,
"defaults": {
"model": "cultivatedtech:debarker/00"
},
"variants": {
"inventory": [{}],
"state": {
"0": {
"model": "cultivatedtech:debarker/00"

With the release of Forge 14.23.2.2638, a proper way to render items with GL was implemented. Using this system is much simpler than the old system, which required a TileEntity, and does not allow access to the ItemStack.

Using TileEntityItemStackRenderer

TileEntityItemStackRenderer allows you to render your item using public void renderByItem(ItemStack itemStackIn).
There is an overload that takes partialTicks as a parameter, but it is never called in vanilla.

In order to use a TEISR, the Item must first satisfy the condition that its model returns true for IBakedModel#isBuiltInRenderer. Once that returns true, the Item's TEISR will be accessed for rendering. If it does not have one, it will use the default TileEntityItemStackRenderer.instance. For an example IBakedModel to use, see below.

import mods.foundry.Casting;
recipes.remove(<tconstruct:casting:*>);
recipes.remove(<tconstruct:smeltery_controller>);
Casting.addRecipe(<tconstruct:cast>.withTag({PartType: "tconstruct:binding"}), <liquid:liquidbrass> * 108, <foundry:mold:1>, <tconstruct:binding>.withTag({Material: "stone"}), 40);
Casting.addRecipe(<tconstruct:cast>.withTag({PartType: "tconstruct:wide_guard"}), <liquid:liquidbrass> * 108, <foundry:mold:1>, <tconstruct:wide_guard>.withTag({Material: "stone"}), 40);
Casting.addRecipe(<tconstruct:cast>.withTag({PartType: "tconstruct:knife_blade"}), <liquid:liquidbrass> * 108, <foundry:mold:1>, <tconstruct:knife_blade>.withTag({Material: "stone"}), 40);
Casting.addRecipe(<tconstruct:cast>.withTag({PartType: "tconstruct:tough_tool_rod"}), <liquid:liquidbrass> * 108, <foundry:mold:1>, <tconstruct:tough_tool_rod>.withTag({Material: "stone"}), 40);
Casting.addRecipe(<tconstruct:cast>.withTag({PartType: "tconstruct:arrow_head"}), <liquid:liquidbrass> * 108, <foundry:mold:1>, <tconstruct:arrow_head>
This file has been truncated, but you can view the full file.
[14:10:44] [Server thread/INFO] [fastbench]: minecraft:armordye took 675027363 nanoseconds to craft a stack!
[14:10:44] [Server thread/INFO] [fastbench]: minecraft:armordye took 809132 nanoseconds to fast-craft a stack!
[14:10:45] [Server thread/INFO] [fastbench]: minecraft:bookcloning took 638923748 nanoseconds to craft a stack!
[14:10:45] [Server thread/INFO] [fastbench]: minecraft:bookcloning took 49821 nanoseconds to fast-craft a stack!
[14:10:45] [Server thread/INFO] [fastbench]: minecraft:mapcloning took 626221875 nanoseconds to craft a stack!
[14:10:45] [Server thread/INFO] [fastbench]: minecraft:mapcloning took 43689 nanoseconds to fast-craft a stack!
[14:10:53] [Server thread/INFO] [fastbench]: minecraft:mapextending took 7396356680 nanoseconds to craft a stack!
[14:10:59] [Server thread/INFO] [fastbench]: minecraft:mapextending took 6126356006 nanoseconds to fast-craft a stack!
[14:11:00] [Server thread/INFO] [fastbench]: minecraft:fireworks took 601595833 nanoseconds to craft a stack!
[14:11:00] [S
0 means 7
1 means 3
2 means 9
3 means 4
4 means 0
5 means 6
6 means 2
7 means 7
8 means 3
9 means 5
#site div#site-main,
#site .atf,
#content,
ul.e-drop-menu,
li {
background: #333333;
color: #ffffff;
border-bottom: 0px;
}
.e-header-nav .e-wrapper .e-menu>li>a,