Skip to content

Instantly share code, notes, and snippets.

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

Brennan Ward Shadows-of-Fire

View GitHub Profile
> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.0.13_mapped_snapshot_20190630-1.14.3_at_f4fb21579ed286f9a2155a34e708ee246a372cc7
> Task :eclipseClasspath
Setting up MCP environment
Initializing steps
Executing steps
> Running 'downloadManifest'
> Running 'downloadJson'
---- Minecraft Crash Report ----
// Why did you do that?
Time: 6/21/19 2:08 AM
Description: Exception in server tick loop
java.util.ConcurrentModificationException: null
at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(Unknown Source) ~[?:1.8.0_211] {}
at java.util.IdentityHashMap$ValueIterator.next(Unknown Source) ~[?:1.8.0_211] {}
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:797) ~[?:?] {pl:accesstransformer:B,pl:runtimedistcleaner:A}
@Shadows-of-Fire
Shadows-of-Fire / en_us.lang
Created May 4, 2019 03:14
English translation files for Cavern
gui.edit=Edit
gui.add=Add
gui.remove=Remove
gui.clear=Clear
gui.disabled=Disabled
gui.volume=Volume
cavern.description=Have a nice cave life!
cavern.version.message=A new version of %s is available
package shadows.compatched;
import com.tattyseal.compactstorage.tileentity.TileEntityChest;
import com.tattyseal.compactstorage.tileentity.TileEntityChestBuilder;
import net.minecraft.inventory.IInventory;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.MinecraftForge;
public void doRender(EntityLightningBolt entity, double x, double y, double z, float entityYaw, float partialTicks)
{
Tessellator tessellator = Tessellator.getInstance();
BufferBuilder bufferbuilder = tessellator.getBuffer();
GlStateManager.disableTexture2D();
GlStateManager.disableLighting();
GlStateManager.enableBlend();
GlStateManager.blendFunc(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE);
double[] adouble = new double[8];
double[] adouble1 = new double[8];
@Shadows-of-Fire
Shadows-of-Fire / BossTweaker.md
Last active February 20, 2019 08:16
Apotheosis Boss CraftTweaker Support

Documentation

Bosses can be tweaked by adding enchantments and by adding/removing valid armor sets for the bosses.


Armor Sets (mods.apotheosis.BossArmor)

Armor Sets are a combination of items for each equipment slot of the entity. Each set has a level. The higher the level, the higher in the sorted order the set will go. By default, the provided armor sets have levels 0 (chain), 1 (gold), 2 (iron), and 3 (diamond). The levels of added armor sets do not need to be in order, as at runtime the armor set list will be sorted so there are no gaps between the levels. Each boss is assigned a level when generating, as determined by the boss level up chance in the config. Some types of monsters, like spiders, will not have their armor visible, but will still be strengthened by it.

Set Removal:
@Shadows-of-Fire
Shadows-of-Fire / Enchantments.md
Last active December 3, 2023 11:07
Enchantment Descriptions for Apotheosis

Enchantments (This document is outdated - see curseforge)

Berserker's Fury

Equipment Slots: Chest, Legs
Minimum Enchantment Power: 60 + level * 15
Maxiumum Enchantment Power: 100 + level * 15
Maxiumum Level: 4
Enchantment Types: Corrupted
Effect: When damaged, the player will take an additional level * level corrupted damage and gain 200 * level ticks of Resistance, Strength, and Speed. Potion levels are equivalent to enchantment level. Multiple enchantments can stack, the sum of all levels will be treated as the level. The effect will not trigger if the user has resistance active.

package shadows.nobounce;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.world.World;
import net.minecraftforge.common.MinecraftForge;

Your application will likely need to store data in order to accomplish functions that require communication between elements.

There are a few ways to do this. The easiest way is client-side data storage. This is accomplished by using HTML Web Storage, a string to string map in the browser's cache. There are two kinds of storage, localStorage and sessionStorage. Both are members of the root element window, and have two methods: getItem(String) and setItem(String, String).
The difference between local and session is that local will persist if the page is closed, while session data is cleared.

An example of this in app maker is having two buttons to save or load something from local storage into a text field. In this case, the current page is TestPage, and the text box is TextBox1.

Each button has an on click action. The top button saves the data to localStorage, via `window.localStorage.setItem("tempData", app.pages.TestPage.descenda

App Maker uses CSS to style elements. Each element can be assigned one or more CSS classes, via the display section.
To learn how CSS works, visit https://www.w3schools.com/css/default.asp

To start creating CSS files, access the Style Editor (click the paint palette next to the pencil in the top right).
You can either create styles that apply globally (global style) or to the active page (page style).
If you want to style elements individually, each element needs a CSS class. This class will be used in the style sheet, to create styles for all elements of that class.

An example is creating a button, and giving it the class test.
To add a class, select the element, and scroll down to the bottom of the property editor, and expand display. Select styles, and enter test, then click add. If the name provided is not a valid css class, add will be grayed out.
If we add this information to our style sheet: