FAQ Database Discussion Community


Block textures and block names not loading minecraft forge

java,minecraft,minecraft-forge
I am making a mod for minecraft but I can't get the textures to load: Also the names dont show up correctly (tile.Yarrite Ore.Name instead of Yarrite Ore): here is the code I used to Create the block(YarriteOre.java): package com.NoNameYetMod.common; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; public class...

Minecraft plugin error in Eclipse (color, replaceall)

eclipse,plugins,jar,minecraft
I am editing a plugin that an owner hasn't updated for a long time and I get this error: The method replaceAll(String, String) in the type String is not applicable for the arguments (String, ChatColor) public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (!(sender instanceof Player))...

Minecraft Server closes immediately after running?

server,minecraft,hamachi
Sorry if it's not the right place to ask this, I'm a bit new here. Everything was PERFECT. I did a Hamachi server with a friend. My friend put his IPv4 in "server-ip=" in the server properties. We needed only to open the Server file and the Hamachi software(we are...

NullPointerException when trying to set item texture - minecraft 1.8 modding [closed]

java,nullpointerexception,textures,minecraft,minecraft-forge
I'm learning how to java and trying to build a minecraft mod. The problem is I'm having trouble with the 1.8 item texture adding system and even though Google is my best friend I still haven't found what I should do to fix this NPE. Here is the Base Mod...

Translating Minecraft Color Codes into HTML

javascript,jquery,html,colors,minecraft
Recently, I was trying to convert Minecraft MOTD into Plain HTML. A Minecraft MOTD is basic text, with Minecraft Color Codes to represent color changes. Example: "§d§lThe Nexus§8: §6§oO_O §a§l[MUTATION MONDAY]" Translated: <span style='color:pink'><b>The Nexus</b></span><span style='color:gray'>:</span>... So on... So basically, there are color codes, which change the color of the...

Issues with Screen - Running Minecraft in a while loop through a screen session

bash,while-loop,sh,minecraft
So Earlier today, I changed my startup scripts for my minecraft server. Problem is, after about 3 hours, the screen for it that was open vanished and refuses to appear when using -ls. The server is still running and from what I can see below, the screen process should still...

As I can make a configuration list through a command on java bukkit?

java,minecraft,bukkit
In this case I am creating a plugin to learn, I need to know the following things. What I want to do is to establish points on the map and at these points when another command will fall lightning. 1- For example: /thor setpoint 1, 2, 3, 4... And in...

Minecraft plugin WorldEdit get region

java,minecraft,bukkit
I'am trying to resolve owner of region so far i have stuck trying to select region this is my code: package pl.maccraft.regs; import java.util.logging.Logger; import net.milkbowl.vault.economy.Economy; import org.bukkit.plugin.RegisteredServiceProvider; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.World; import org.bukkit.block.Block; import org.bukkit.block.Sign; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import...

Minecraft plugin sign reading

java,plugins,minecraft
I've got problem trying to get values of sign lines in minecraft plugin. Here is my code: package pl.maccraft.regssal; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.block.Sign; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.Action; import org.bukkit.event.block.SignChangeEvent; import org.bukkit.event.player.PlayerInteractEvent; public final class rgs...

scala minecraft forgemod 'gradle runClient' gives runtime exception

scala,gradle,akka,minecraft,minecraft-forge
I'm trying to use akka inside my scala based mod. The when testing using "gradle runClient" it gives errors, best I can tell its missing the akka library at runtime. I don't see how to add akka library though. If it helps my project is here: https://github.com/tesract/NilCraft Any advice would...

Bukkit drop exploded blocks

java,minecraft,bukkit
I am using the Bukkit 1.8.3 API with Java 7. I have code that explodes blocks upon when you break it. It launches an explosion that breaks blocks around the block you just broke. My problem is that the exploded blocks are not dropping, just the one that the player...

System.currentTimeMillis() keeps resetting

java,minecraft
I'm trying to make a cooldown utility in my spigot plugin: package net.gettrillium.trillium.api.cooldown; import com.google.common.collect.HashBasedTable; import com.google.common.collect.Table; import net.gettrillium.trillium.Utils; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import java.util.UUID; public class Cooldown { private static Table<UUID, CooldownType, Long> cooldown = HashBasedTable.create(); public static void setCooldown(Player p, CooldownType type) { cooldown.put(p.getUniqueId(), type,...

Bukkit Java Coding, night checker

java,minecraft,bukkit
I want to make a plugin that fills a location on my map at a certain time. But when I try to use the event WorldEvent, it does not work; it says Unable to find handler list for event org.bukkit.event.world.WorldEvent This is what I have so far: @EventHandler public void...

Forge modding - Error: Unable to load definition cc:range_block#normal

java,minecraft,minecraft-forge
I'm currently following Mr. Crayfish'es tutorials on how to make a Minecraft mod for Minecraft 1.8 with Forge. I've followed what he is doing, but Forge is: Unable to load definition cc:range_block#normal The whole error message looks like this: [18:05:29] [Client thread/WARN]: Unable to load definition cc:range_block#normal java.lang.RuntimeException: Encountered an...

jdbc slow insertion into tables (Prepared Statements)

java,mysql,jdbc,minecraft
this is my first question here, so please don't freak out when I am asking something wrong ;) I am running A Minecraft-Server Network and I use spigot, which is the Server software. This runs on a linux Root-Server with 16GB and an Intel Xeon. For Spigot you can code...

How to pass on a bukkit item-meta Color value as a String?

java,plugins,methods,minecraft,bukkit
I have stumbled across a problem while trying to make my code dynamic. Instead of making one class (like "cal", as seen below) for each color-code hardcoded (one containing "WHITE", one "RED", etc.) I want to pass on an argument as a String containing the name of the color I...

Communication Java-Javascript with http requests

java,javascript,minecraft,bukkit,mit-scratch
Lately i have been trying to make communication between minecraft server (running with Java) and scratch (running with JavaScript). I have written the code in java already: package me.yotam180; import java.io.IOException; import java.io.OutputStream; import java.net.InetSocketAddress; import java.util.HashMap; import java.util.Map; import org.bukkit.Bukkit; import com.sun.net.httpserver.HttpExchange; import com.sun.net.httpserver.HttpHandler; import com.sun.net.httpserver.HttpServer; public class HttpProcessor...

Split plugin array into 2 halfs

java,minecraft,bukkit
I'm getting the array of plugins on the server using: Plugin[] pls = Bukkit.getPluginManager().getPlugins(); I need to split the array into 2 halfs. I understand that I can split the array into one half using: Plugin[] hHalf = Arrays.copyOfRange(pls, 0, pls.length/2); But how do I get the other half? Edit:...

How to stop a repeating task schedule in Bukkit

java,plugins,minecraft,schedule,bukkit
I am writing a minigame for Minecraft and have a problem with the schedule. I don't know how to stop the schedule. Please tell me how I can stop running this loop / Timer / Schedule: public void WarteTimer() { count = Bukkit.getScheduler().scheduleSyncRepeatingTask( (Plugin) this, new Runnable() { @Override public...

Merging Jar Files (Or a ZIP with a Jar) in C++

java,c++,jar,zip,minecraft
I have a jar file and a zip file. I need to move the contents of the .zip into the .jar--how can I do this using C++? I have no pre-existing code, not really sure where to begin. Is there a system() batch command that can merge the files? Perhaps...

How to create 3d model to display for online use

html,model,minecraft
So this question may seem hard to understand and very vague and that's because I have no other way of explaining this, so I'll try and describe what I want to achieve. So essentially I want to create a character model (based from the protagonist of Minecraft, Steve). What I'd...

Minecraft Color Formatting

javascript,jquery,css,colors,minecraft
I'd like to format this to css colors: <div id="test">§2§l<<§6§lStack§6§lOverflow§6§lIV§2§l>></div> I've found a Jquery plugin, but I don't know how to use it. There is no sample code / documentation. JsFiddle: https://jsfiddle.net/jeroen_13/rhydg6Le/ Github plugin: https://gist.github.com/JLChnToZ/bde5ea7ade5db37d5e72 Minecraft Color Codes: http://ess.khhq.net/mc/ Could anyone point me in the right direction on how to...

Maven dependency not found for org.bukkit:bukkit

java,maven,intellij-idea,dependencies,minecraft
The groudID, artifactId and version dependencies are not being found in Maven? I followed this tutorial to set up a Minecraft plugin which uses Maven. But I get the error org.bukkit:bukkit:1.7.2-RO3 not found and the text font is red where everything else in the pom file is white. Here is...

What do these java arguments do? [closed]

java,minecraft
So I am starting out trying to learn how to make a Bukkit plugin for minecraft, and when I was reading through the tutorials, it gave me some code that would create an in-game command in which when typed in it would accept some arguments. However in the code the...

Array instead of Array Element

php,arrays,json,minecraft
I'm trying to turn Minecraft names into UUIDs, which can be converted into a "name history". I have the name->UUID part down pat, but the name history is getting an error. Running this code, the $uuid variable contains an array of all the UUIDs I'm trying to convert into a...

Unsupported major.minor version 52.0 error when my spigot/bukkit plugin is run on the server [duplicate]

java,minecraft,bukkit
This question already has an answer here: How to fix: Unsupported major.minor version 51.0 error? 30 answers I made a very simple blank spigot plugin for Minecraft and I exported everything but I got an error when I started the plugin on the server that said: Unsupported major.minor version...

Getting Minecraft Images

javascript,minecraft
I am trying to make something, where, if you input your minecraft username, you get your profile icon. I found this website Minotar, where you could get icons by the url. So, I tried making a JavaScript script out of it, and display it. But, the picture doesn't want to...

Raspberry Pi using a python script to launch minecraft server jar file

python,raspberry-pi,server,minecraft
I have been researching how to run a minecraft server from the raspberry pi, so I finally got it set up! So I thought to myself, I can go one set further... So I have been working on making a python script that runs the server whenever a button IRL...

Nested For-Loop Not working Java

java,for-loop,nested-loops,minecraft
I don't know if I'm right here, so if not, please feel free to delete this question. I want to iterate over a 2-Dimensional Plane of Blocks in a Minecraft Plugin written in Java. Therefore I want to go through every Block in every Row. The following is my code....

When making a Minecraft mod, can't localize names in IntelliJ

java,eclipse,intellij-idea,minecraft,minecraft-forge
I'm new to Minecraft modding (just started picking up some tutorials today) and somewhat a beginner to Java (about 7 months experience). The tutorial I am specifically following is this one right here (and I marked the current relevant time): https://www.youtube.com/watch?v=fhhMoxKSkss&t=335 I'm trying to localize the names of the items...

Replace color of a dye in player's inventory with another

java,minecraft,bukkit
I would like to replace a dye in player's inventory with a new dye, of a different color, for example from cyan to gray. My plugin changes one dye to another perfectly, but when I move it to my hotbar, I can't drop it and when I click on it...