Skip to content

Instantly share code, notes, and snippets.

@Lothrazar
Lothrazar / button death screen minecraft
Created March 23, 2020 02:21
button death screen minecraft
@SubscribeEvent
public void onRenderDeathScreen(InitGuiEvent e) {
if (e.getGui() instanceof DeathScreen) {
DeathScreen screen = (DeathScreen) e.getGui();
//
try {
Method m = ObfuscationReflectionHelper.findMethod(Screen.class, "addButton", Widget.class);
m.setAccessible(true);
Button b = new Button(screen.width / 2 - 100, screen.height / 4 + 96 + 24, 200, 20, "hello twitter", (thing) -> {
`[21:25:01] [Client thread/INFO] [net.minecraft.client.gui.GuiNewChat]: [CHAT] LZMP加入了游戏
[21:25:01] [Server thread/INFO] [Waila]: Player EntityPlayerMP['LZMP'/219, l='新的世界', x=-242.50, y=81.00, z=232.50] connected. Sending ping
[21:25:01] [Server thread/INFO] [EnderCore]: Sending server configs to client for com.enderio.core.common.config.ConfigHandler
[21:25:01] [Server thread/INFO] [Actually Additions]: Sending Player Data to player LZMP with UUID eb1efc42-b162-3072-8659-93b0eb622cf9.
[21:25:09] [Netty Server IO #4/ERROR] [FML]: NetworkDispatcher exception
io.netty.handler.codec.DecoderException: java.io.IOException: Packet 0/27 (CPacketCreativeInventoryAction) was larger than I expected, found 1 bytes extra whilst reading packet 27
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:442) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.ch
#General settings
[growthcontrols]
#List of biomes for sapling
"minecraft:birch_sapling" = ["minecraft:birch_forest", "minecraft:forest", "minecraft:birch_forest_hills", "minecraft:tall_birch_forest", "minecraft:tall_birch_hills"]
#List of biomes for sapling
"minecraft:jungle_sapling" = ["minecraft:jungle_edge", "minecraft:jungle", "minecraft:jungle_hills", "minecraft:modified_jungle", "minecraft:bamboo_jungle", "minecraft:bamboo_jungle_hills", "minecraft:modified_jungle_edge", "minecraft:modified_jungle"]
#List of biomes for sapling
"minecraft:oak_sapling" = ["minecraft:forest", "minecraft:dark_forest", "minecraft:wooded_mountains", "minecraft:wooded_hills", "minecraft:swamp", "minecraft:swamp_hills", "minecraft:flower_forest"]
#List of biomes for sapling
@Lothrazar
Lothrazar / elementaryores.toml
Created July 29, 2019 15:16
elementaryores.toml
#General settings
[elementaryores]
[elementaryores.end]
[elementaryores.end.ender]
#Min and max y levels for spawn
#Range: 0 ~ 256
high = 127
@Lothrazar
Lothrazar / elementaryores.toml
Created July 28, 2019 22:13
example config
#General settings
[elementaryores]
[elementaryores.end]
[elementaryores.end.redstone]
#Vein Size
#Range: 0 ~ 64
high = 62
@Lothrazar
Lothrazar / vanilla
Created July 7, 2019 21:28
stonecutter
{
"type": "minecraft:stonecutting",
"ingredient": {
"item": "minecraft:andesite"
},
"result": "minecraft:andesite_slab",
"count": 2
}
- OS license to be determined
- pay is flat rate (negotiable) for ownership of code and curse page to myself (total to be determined)
- work input required ends when i accept the code and ship the very first build to curse, at that point it is deemed complete
- with regular checkings/git push as normal as we both playtest during progress (once something is running anyway)
- I will manage issue tracker, bugfix updates or features, curseforge stuff from then on.
- I will create and own github private repository (likely to go public in future on completion)
- both members credited as creators of mod
- https://github.com/Lothrazar/DiminishingReturns
import mods.cyclicmagic.Solidifier;
// output, recipe, fluid, quantity
Solidifier.addRecipe(<minecraft:clay>, [<minecraft:dirt>, <minecraft:dirt>], "water", 300);
Solidifier.removeShapedRecipe(<minecraft:obsidian>);
import mods.cyclicmagic.Melter;
// input, fluid, quantity
@Lothrazar
Lothrazar / update113plan.txt
Created March 16, 2019 01:57
1.13 Plan that lists every mod that I currently support in 1.12
Plan that lists every mod that I currently support in 1.12
(If you use any of my mods that are NOT listed here, let me know. )
Wave 1: Small Mods
Easy stuff to get used to the 1.13 workspace and learning curve
- Similsax https://minecraft.curseforge.com/projects/similsax-transtructors
- Block Layers https://minecraft.curseforge.com/projects/block-layers
- Absent by Design https://minecraft.curseforge.com/projects/absent-by-design/
package vazkii.blockdispenser;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import com.google.common.collect.ImmutableSet;
import net.minecraft.block.Block;
import net.minecraft.block.BlockDirectional;