I followed the picture, but I met a problem.
In eclipse I have my packages like mods.roserod.textures.items
I must put my png files in a path like E:\Minecraft152\.minecraft\mods\roserod\mods\roserod\textures\items
It works.
@Override
public void registerIcons(IconRegister iconRegister) {
itemIcon = iconRegister.registerIcon("roserod:roseRod");
}
The fourth-to-last directory (second "mods/") is supposed to go in the mod jar.
His problem is with textures.
For blocks with subtypes you also need to override getIcon(side,meta)
Instead of just using 90 and 0, you can use the actual yaw and pitch.
player.setLocationAndAngles(x, y, z, player.rotationYaw, player.rotationPitch);
Good point, not that I'm sure it matters.
You're setting all the bounds to 0... it seems doubtful that that would work...
Also, apparently setPosition(x,y,z) changes the bounding box... according to the "width" and "height". So you'll have to override that too.
Oh, sorry, I was talking to redria7. We should probably move our discussion to a seperate thread
Anyway, your problem... it doesn't look like it's possible to change the moon texture without changing it universally. Alternatively, you could draw a custom moon.
You'll have to delete the configuration as well. If it's set as 5000 in your config, then changing the default won't change anything until the config regenerates.
...
Odd. To say the least. Perhaps I should take a look at your generation code myself. You wouldn't happen to have a Github?
Anyway. I did some looking into your other question, and have you tried setting myWorldProvider.hasNoSky to true?
I don't know how to use IAdditionalEntityData... but teleporting a player is player.setLocationAndAngles(x,y,z,yaw,pitch). I use 90 and 0 for the last two arguments; that works well enough.