Everything posted by Anon10W1z
-
[1.7.10] onLivingUpdate Entity
Just wondering, why not?
-
What's the most efficient way to use event handlers?
If you use comments and JavaDoc it will look much nicer.
-
[1.7.10] onLivingUpdate Entity
I found this code: @SubscribeEvent public void onEntityUpdate(LivingUpdateEvent event) throws InterruptedException { } But I need to get the current player that is grabbing it ... It would be perfect if i can set a "grabber-id" variable on the entity with which to obtain the player.. or How can i do it? First off, remove that throws declaration, Second, look up data watchers.
-
What's the most efficient way to use event handlers?
I take it one step further and make my event handler final. Then I store the singleton instance of the event handler in itself.
-
[1.8] TNT does not prime when I use my own sort of flint and steel. [SOLVED]
You need to use posSide when getting the block state from the world.
-
[1.8] Craft++ v3.0 - a simple vanilla-enhancing mod
Try again.
-
[1.8] Get ahold of working (pre-obf) minecraft+forge.jar
Why, may I ask?
-
1.7.10 - Help starting to mod for servers
Yes.
-
1.7.10 - Help starting to mod for servers
It's good that you have put in effort to learn, and the desire is there. However, for server-side modding, Bukkit plugin development is what you want to look into, not Forge modding. Look up kennethbgoodin Bukkit tutorials on YouTube. They're great for beginners.
-
[1.8] Making stairs/slabs
http://www.minecraftforge.net/forum/index.php/topic,26403.0.html
-
[1.7.2] Event for block placing?
That was added in 1.8. EDIT: 1.7.10.
-
[1.8] Updating Mods from 1.7.10 to 1.8
Did you register the inventory block renderer?
-
[1.7.10] Problem with detecting armor and setting walk speed.
The hell? Don't use reflection. Use player.capabilities...
-
Creating a 'commandblock' that only runs one predetermined command
EDIT: Ok this is getting really weird: Apparently my code works 100% correctly. The only problem is that on loading a world where the block is already placed, nothing happens. If I set a new block, it works without any problem. Really strange. Ah, this is because if you add a tile entity to your block, then blocks placed before the tile entity was added will not have the tile entity. Tile entities are only added when the block is placed.
-
Creating a 'commandblock' that only runs one predetermined command
MinecraftServer.getServer().getCommandManager().executeCommand(player, command); Runs a command. Set your block to tick randomly and override the on random tick method.
-
[SOLVED]Block/Item Names with a Color in 1.8?
Look at the Minecraft wiki for color codes. Use them in your language file.
-
Anon10W1z's tutorials
No problem
-
Minecraft 1.8 Structure generation?
1.8 uses block states now.
-
[1.7.10] Problem with custom recipe (not all the time)
We need the crash report.
-
[1.8] Error on block rendering - can't convert back into data
This is an error with your block...make sure you override getMetaFromState as well as getStateFromMeta
-
[UNSOLVED!!!!][1.6.4] A custom Fruit block like the fruit in Growthcraft
Yes, make it extend BlockCocoa.
-
[UNSOLVED!!!!][1.6.4] A custom Fruit block like the fruit in Growthcraft
Uh, redo it and give me the crash.
-
[1.7.10] On block break with item; transform item
Alright then. public class YourEventHandler { @SubscribeEvent public void onBlockBreak(BlockEvent.BreakEvent event) { //do stuff } } And in your init method in the main mod file, put MinecraftForge.EVENT_BUS.register(new YourEventHandler());
-
[1.7.10] On block break with item; transform item
Use the BlockEvent.BreakEvent.
-
[1.7.10]GameRegistry throws an error?
I see you used diesieben07's tutorial. Read the replies, you'll find the SRG names. Add them to the lines following like so: private static final Field eventHandlerField = ReflectionHelper.findField(InventoryCrafting.class, "eventHandler", "srgEventHandlerNameGoesHere"); private static final Field containerPlayerPlayerField = ReflectionHelper.findField(ContainerPlayer.class, "thePlayer", "sameForThePlayer"); private static final Field slotCraftingPlayerField = ReflectionHelper.findField(SlotCrafting.class, "thePlayer", andSoOn);
IPS spam blocked by CleanTalk.