Skip to content

Instantly share code, notes, and snippets.

View nicholasrobertm's full-sized avatar

Robert Nicholas nicholasrobertm

View GitHub Profile
@SubscribeEvent
public static void onRegisterBlocksEvent(@Nonnull final RegistryEvent.Register<Block> event) {
container.callMethod(core, "register_blocks", event);
}
java_annotation 'SubscribeEvent'
def register_blocks(event)
call_method(:register_blocks, event)
end
@nicholasrobertm
nicholasrobertm / mod_example.rb
Created May 24, 2021 05:10
An example minecraft mod in ruby
# frozen_string_literal: true
class Example
def pre_init
@block = Block.new(:wood)
@block.set_unlocalized_name('bigboi')
@block.set_registry_name('test:bigboiblock')
@itemBlock = ItemBlock.new(@block)