I think the
I18N
class we should be using now is
net.minecraft.client.resources.I18N
. Atleast that is what every vanilla and Forge class is using. In the
I18N#format
method you can leave the second parameter empty if you don't have any formatting in the first
String
.
Last time I checked
I18n.translateToLocal
was deprecated, so which one to use next?
I18N.format
? (BTW, that is in another Minecraft I18N class... there are 2...)
The advanced tooltips are enabled when you pres F3 + H ingame.
I haven't dealt with sounds in a LONG time, so don't qoute me on this.
Right now you have 1 sound "object" in which you specify multiple sound files. This makes it, that whenever you play the sound, Minecraft selects a random sound specified in your sound "object". If you want to play these sounds yourself you have to make a new sound "object".
EDIT: Apparently I was right
If you send a packet to the server, you can use an
IGuiHandler
to open a custom
Container
as well as a custom
Gui
.
P.S. There may be other, better ways, but this is the only way I know of.
1) Update your Forge, yours is really old.
2) Don't use
IExtendedEntityProperties
. Use the new
Capabilities
instead. Here's how you can switch over: http://mcforge.readthedocs.io/en/latest/datastorage/capabilities/ (on the bottom of the page)
A "modpack" is just a collection of mods with all the the conflicts resolved. What do you mean with "how do I make a modpack which can drop in the (mods I assume) folder on the server and it will run?"? You just have to put all the mods in the mods folder and your done.
In your case, it has to be an
EnumFacing
, and you only allow
EnumFacing.HORIZONTALS
, so you have to use
EnumFacing.NORTH
,
EnumFacing.EAST
,
EnumFacing.SOUTH
or
EnumFacing.WEST
.
I am getting the idea you don't actually know Java very well, in which I suggest you learn that first, and not via modding, as that generally doesn't end well.
It can go anywhere in the constuctor, you just have to put it after the
super
call. And no, you don't have to save the return value as it simply returns
this
for chaining.
First of all, WTF?:
int entityID = MathHelper.getRandomUUID().hashCode();
mod entities are per-mod, so just start at 0 and increment per entity added.
What is the
Item
name ingame? That is the line you should put in your language file.
You never set the default state. To do so, use this line in your
Block
constructor:
setDefaultState(getBlockState().getBaseState().withProperty(PROPERTY, defaultValue));
Your access to the folder got denied. Are you using the administrator account?
You either have to move your server folder to a location where you are allowed to access it or you should use the
cd
command in your
.bat
folder to change the location where your batch file is executed.
And how do I change that? Because that isn't in the boot file or anywhere I know of.
Don't run the .bat file in Administrator Mode, as that will start it in C:\Windows\system32.