I am not extending the rotated pillar / blockLog classes, since I need some extra functionality. At the time being by block class simply extends Block.class
After digging through the native sided textures for a while I tried this:
{
"parent": "block/cube_all",
"textures": {
"side": "technica:blocks/rubberlogSide",
"top": "technica:blocks/rubberlogTop"
}
}
Shouldn't this cause the textures of my block to be sided?
The block is called "rubbertreeLog" btw.
I've been modding 1.8 for some time now bit I've never gotten to the point where I needed sided textures.
It seems that most textures for that purpose have been removed. Do we use the .json files now or is there a way to use code?
I had a look into it and it contains every screen overlay. E.g. the XP bar or the boss bar. Sadly it is not what I need right now. But it is good to know that it exists.
It looks like it would be really expensive to render such a tooltip without a coremod but I don't want to do that right now...
I wonder how Thaumcraft does it.
Hello,
is there something such as an event that is being called when the tooltip / name next to an item or the item itself is being rendered?
I would like to add some additional information and graphics to it.
Thanks in advance,
Busti
Hello,
there are multiple Json readers available in the different common Library's.
Is there one that is widely used across the Minecraft sources?
Thanks in advance,
- Busti
All of these mods should have dev versions you can download.
In order to add these but them into the libs folder. Some also have source files you can add. APIs also belong there.
If a mod doesn't have a dev version, put it in the libs folder anyways.
Re run gradlew setupDecompWorkspace in order to add the librarys.
Are you working below Minecraft 1.7?
The right way to register an Event like this in 1.7 is to put this code in the Event class:
@SubscribeEvent
public void onEntityDrop(LivingDropsEvent event) {
and this in the Init method in your mod class:
MinecraftForge.EVENT_BUS.register(new EntityEventClass());
That would be the LivingDropsEvent
Just make that drop a new item entity which is spawned with an ItemStack of a Sword you modified to have those effects.
After digging through minecraft a bit I actually found an easy method to harvest blocks with enchantment effects.
blockInstance.harvestBlock(world, player, pos, world.getBlockState(pos), world.getTileEntity(posD))
world.setBlockToAir(pos)