Skip to content

Instantly share code, notes, and snippets.

@elifoster
elifoster / vanilladocs.md
Last active December 19, 2023 00:53
Miscellaneous documentation of various ambiguous things in vanilla/neoforge

Block

  • hasDynamicShape - returning true causes flowing fluids to break this block. does not have anything to do with updating shape

Fluid

  • isSource(FluidState) - does not actually work on fluidstates. returns false for all flowing fluids. use FluidState#isSource() instead.

InteractionResult

  • SUCCESS is for clientside only. Use CONSUME on the server. at least for Block#use.

Level

@elifoster
elifoster / LICENSE
Created November 6, 2023 01:50
Custom License for some of my older mods, eventually will be changed to MIT.
TERMS AND CONDITIONS
0. USED TERMS
MOD - modification, plugin, a piece of software that interfaces with the Minecraft client to extend, add, change or remove original capabilities.
MOJANG - Mojang AB
OWNER - , Original author(s) of the MOD. Under the copyright terms accepted when purchasing Minecraft (http://www.minecraft.net/copyright.jsp) the OWNER has full rights over their MOD despite use of MOJANG code.
USER - End user of the mod, person installing the mod.
1. LIABILITY
THIS MOD IS PROVIDED 'AS IS' WITH NO WARRANTIES, IMPLIED OR OTHERWISE. THE OWNER OF THIS MOD TAKES NO RESPONSIBILITY FOR ANY DAMAGES INCURRED FROM THE USE OF THIS MOD. THIS MOD ALTERS FUNDAMENTAL PARTS OF THE MINECRAFT GAME, PARTS OF MINECRAFT MAY NOT WORK WITH THIS MOD INSTALLED. ALL DAMAGES CAUSED FROM THE USE OR MISUSE OF THIS MOD FALL ON THE USER.
@elifoster
elifoster / mods.md
Created June 29, 2017 01:26
Mods that have missing tile names on their main article

Category:Mods

  • Advanced Fluxian Tools
  • Advanced Machines (AtomicStryker)
  • Advanced Machines (Chocohead)
  • Advanced Power Management
  • Advanced Satellite Upgrade
  • AE2 Tech Addon
  • AgriCraft
  • Agriculture
## Log session started at Sun Jan 29 10:51:08 2017 ###
[10:51:08] SatanicSanta [~SatanicSa@c-76-115-175-15.hsd1.or.comcast.net] has joined #FTB-Wiki
[10:51:08] Channel topic is: The IRC channel for the official FTB Wiki - http://ftb.gamepedia.com | RC Feed @ #FTB-Wiki-recentchanges | Wiki MC: play.feed-the-beast.com:25554 and 25555
[10:51:08] Topic was set by PeterRabbit!~Peter@pool-71-126-63-82.bstnma.east.verizon.net on Tue Jul 5 12:55:32 2016
[10:51:08] MineBot [MineBot@minebot.services.esper.net] has set mode +o SatanicSanta
[10:51:27] catastrophe.esper.net [*@*] has set channel mode +Fntz
[10:51:27] Channel was created at Wed Jun 19 03:57:10 2013
[10:51:28] Channel synchronized in 19.957 seconds
[11:00:29] <+ImmortalPharaoh7> sup SatanicSanta
[11:00:47] <@SatanicSanta> hi
require 'mediawiki/butt'
@mw = MediaWiki::Butt.new('https://ftb.gamepedia.com/api.php', query_limit_default: 'max', assertion: :bot, use_continuation: true)
@mw.login('username', 'password')
def parse(title)
params = {
action: 'parse',
page: title,
contentmodel: 'json',
digraph classes {
BlockColdFluidPipe -> TileEntityColdFluidPipe
BlockColdFluidPipe -> FluidPipeBlockCapabilities
BlockSteamPipe -> SteamNetworkBlocks
BlockSteamPipe -> TileEntitySteamPipe
BlockSteamPipe -> BlockValvePipe
BlockValvePipe -> TileEntityValvePipe
BlockValvePipe -> BlockSteamPipe
BlockClassSensitivePlate -> MetalItems
BlockPressurePlateWeighted -> MetalItems
digraph classes {
BlockSteamTransporter -> ISteamTransporter
BookCategory -> BookEntry
BookCategory -> BookPage
BookCategory -> BookPiece
BookEntry -> BookPage
BookEntry -> BookPiece
BookPage -> IGuiJournal
BookPageAlloy -> Constants
BookPageAlloy -> CrucibleFormula

Consider package by feature- handlers get split up and put into their according package or class

Currently not sure if I want to change the codebase to be organized more like this. Awaiting response from other developers whom I trust in regards to code design and similar things.

Lowercased things are packages, upcased things are classes.

  • eiteam
    • esteemedinnovation
      • commons
  • Config
@elifoster
elifoster / modelbase_to_json.perl
Last active August 22, 2016 03:52 — forked from ljfa-ag/modelbase_to_json.perl
Script for converting exported Techne models for Minecraft into other model formats
#!/usr/bin/env perl
# Released into Public Domain
# A quick and dirty script to convert ModelBase Java code as generated
# by Techne or Tabula (untested) into Minecraft's JSON model format.
# It is quite limited (it does not handle rotations, as the JSON model format
# is limited in that regard anyway), but it is at least a help.
# Usage:
# modelbase_to_json input.java > output.json