Questions tagged [minecraft]

5

votes
0

answer
90

Views

How to decode Data (ie block state) bytes in Minecraft schematic (nbt) file?

I am parsing a schematic file with the following structure The .schematic file format was created by the community to store sections of a Minecraft world for use with third-party programs. Schematics are in NBT format The Named Binary Tag (NBT) file format is an extremely simple structured binary f...
lancew
1

votes
0

answer
16

Views

SQLite syntax error but the statement is perfectly correct

I want to make a normal insert into a database, or just select one. But I can't do that, there is always an error. Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (near 'ScientistRick': syntax error) at org.sqlite.core.DB.newSQLException(DB.java:941) ~ [spigot.ja...
1

votes
0

answer
38

Views

How can I block abusing Spigot PlugIns (Server run in Dockers)

I want to create Dockers on Ubuntu. The problem is that user can run plugins with code like these: public static void create() throws IOException { String path = '/'; String fname='test.cpp'; File fl=new File(path+fname); fl.createNewFile(); } This will create a file 'test.cpp' in the '/' direction...
Tristan Ochs
0

votes
1

answer
11

Views

How can I enter commands in Minecraft server that was run remotely using PowerShell invoke-command on local computer?

I am running a Minecraft server from my laptop since it has an i7 and more RAM than my desktop. I want to be able to see the server command line on my desktop and be able to enter commands while the server is actually running on my laptop. I was able to see the command line by setting up for remote...
Idunnowhy
1

votes
2

answer
106

Views

Why is my recpie shows this error?

I have tried developing Minecraft plugins for my friends so I have been trying to experiment the item recipe example, but when I reload this error shows up on my console: [17:10:41 ERROR]: Error occurred while enabling test vbeta0.1 (Is it up to date?) java.lang.IllegalArgumentException: Symbol does...
OfficialCode
1

votes
2

answer
509

Views

Batch script to send commands to gracefully shutdown multiple Spigot Minecraft servers

I'm wondering if it possible to make a windows batch script send commands to three already running .jar file instances. In this case the open .jar files correspond to a bungeeCord instance, a survival instance and a hub instance. Each of these .jar instances together, form the entire Spigot Minecr...
GR412
1

votes
0

answer
156

Views

Minecraft Forge 1.12.2 custom arrow pickup not returning my CustomArrow

I would like the player to pickup the Custom Arrow not an normal arrow. I think its something to do with an ItemStack is this possible to do in Minecraft 1.12.2? My arrow class called CustomArrow: package domain.items.objects; import domain.entity.ECustomArrow; import domain.register.RegisterItems;...
OfficialNoob
1

votes
0

answer
45

Views

minecraft deop a player

Need help with opping and deop'ing a player in Minecraft Forge 1.12.2. I can find out if a player is opped, but I need to be able to first find out if the player is an OP, save that info, then deop the player. After some conditions are met, I must be able to OP a player again if he/she was OP. Code...
Rudi Van Eeden
1

votes
3

answer
378

Views

How to get the name of a clicked item in an Inventory

So, I need to get the name of a Custom Item that's in a Custom inventory using the InventoryClickEvent event. I've tried to get the Item Meta but it returns a NullPointerException. So, I made a little if statement to take care of the Item that's clicked not having Meta and the If statement fired. So...
Coda Plays
1

votes
0

answer
48

Views

Minecraft bufferedImage write

Update: I found where it writes the image file, and it writes it in the 'eclipse' folder of the mod instead of the 'bin' folder which is where I want it to write to. Any ideas? (eclipse and bin are both subfolders of the main folder for the mod, so I cannot access bin from eclipse unless I am able t...
Elijah S
1

votes
1

answer
129

Views

Spawn mob from other mods

I'm looking for a way to spawn entities from other mods. I found that for blocks and items there are a way to fetch them with GameRegistry.findBlock() but didnt found anything similar for mobs. I also didnt found any similar at forge off documentation. Is there any references/guides about communica...
cronzzz
1

votes
0

answer
42

Views

Minecraft Java Plugin - Trouble with resetting and setting scoreboard

I made a plugin and throughout development I have had some troubles with scoreboard. This time I really hit a wall whereas I don't know how I'm going to solve this on my own. I need some help. I can steer you in the right direction though. After looking at the Error message and changing my code a li...
EssemCSH
1

votes
1

answer
155

Views

Spigot on heroku using docker

I'm trying to host a spigot minecraft server on heroku using docker. I know that heroku doesn't really support tcp so I use ngrok(localhost tunneling) to get around this. The image is based on the official openjdk 8-jre image and starts spigot and ngrok and then gets the ngrok address and uploads it...
Paper Benni
1

votes
1

answer
54

Views

Frustrating NPE/NME from a bukkit plugin (Citizens 2 and Factions)

So I'm writing a citizens 2 trait which is supposed to make NPC's faction-ownable, but I've hit some problems I can't resolve. Any help would be appreciated! This happens when I start the server up: [19:32:26] [Server thread/WARN]: [Citizens] Task #67 for Citizens v2.0.22- SNAPSHOT (build 1487) gen...
1

votes
1

answer
112

Views

Exporting project in eclipse only exporting .classpath and .project

I imported a git folder https://github.com/TeamLapen/Vampirism.git ((If you were wondering)). And so now I have it within my eclipse workspace, but not 'really'. Here's what I mean: The project shows up in the tree on the left of the eclipse window, but the folder itsself is NOT located in the /wor...
Peter_Browning
1

votes
0

answer
28

Views

Blender Bone Constraint Issue

https://streamable.com/fjeaa I was creating a basic rig and I wanted to add ankles. I don't want to copy the z location because it'd just look bad. Without the Z axis enabled it bugs out like crazy. I've been at this for a few days now and it makes me want to just give up. Any ideas on how to fix th...
M2Paint
1

votes
1

answer
170

Views

1.7.10 Minecraft Forge Compiling Error

[ { 'MODID': 'ms', 'name': 'More Stuff', 'description': 'This adds more items to minecraft', 'version': '${1.0}', 'mc_version': '${1.7.10}', 'url': '', 'updateUrl': '', 'authorList': ['Sean Blumenfeld'], 'credits': 'Sean Blumenfeld', 'logoFile': '', 'screenshots': [], 'dependencies': [] } ] When I r...
Sean Blumenfeld
1

votes
1

answer
99

Views

Bukkit - How can I create a .replace in an item lore (String list)

So I am trying to create a custom feature for my minecraft server, and one of the things that I am needing to do is to replace %CommonPackages% with an integer that is limited to a player in the config (I know how do to all of the config side of things, just not how to do the replacement in the stri...
Askingg
1

votes
0

answer
37

Views

Cannot find any turtle.inspect commands in turtle Lua shell

This should be a simple issue but I have been scratching my head for a while - I am using Tekkit 1.2.9g from the Technic launcher and the integrated ComputerCraft turtles. I am specifically interested in the turtle.inspectUp/Down commands, but at least from the lua shell within the turtle I cannot...
Scott Anderson
1

votes
1

answer
144

Views

How would I get color output from MC/Bukkit server to be displayed in custom server wrapper?

I'm working on a console-based wrapper for a Minecraft server written in C#, and am currently using System.Diagnostics.Process to start the server and redirect input/output (which works as intended). The downside is that I can't seem to get color output working. I'm sure jline/jansi perform some so...
bmlzootown
1

votes
0

answer
39

Views

JavaScript - Minecraft Authentication Error

Im trying to authenticate my self using the mojang Yggdrasil api, however its giving me this error, the api is https://wiki.vg/Authentication var jsonTest = '{'agent': { 'name': 'Minecraft', 'version': 1 }, 'username': 'test', 'password': 'password'}'; var url = 'https://authserver.mojang.com/authe...
BlazingTide
1

votes
0

answer
66

Views

Java Modding Minecraft: Error Advice

Hi i am trying to create a mod for minecraft 1.12.2, i have set up my modding space with forge mdk and java jdk. when i come to run it to check see if it set up correctly i get this error: Error:Cannot run program 'C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe' (in directory 'C:\Users\Hayde\...
HaydenRowleyYT
1

votes
1

answer
80

Views

java declare anonymous class using proxy api

This morning I fell into a particular case that never happened to me before. I'm developing a Minecraft plugin using the minecraft server API which is usually called NMS with reference to the name of its packages (eg net.minecraft.server.v1_13_R1 for version 1.13). The main problem with the use of...
Thorgal
1

votes
0

answer
36

Views

When switching from 1 server to another data doesn't update

I am having troubles with saving data and switching between servers on bungee. So, I load the players data when they join the server and when they leave I save their data. So, when they leave 1 server to go to another, the mysql data (I am guessing) doesn't update fast enough before it is already lo...
Simon Mitchell
1

votes
0

answer
10

Views

Deprecated Features Error When Compiling Gradle for Minecraft Forge

I am working on developing a Minecraft mod, and I am running into issues compiling the gradlew file provided by Minecraft Forge. I have attempted to install multiple versions of Gradle, then uninstall all of them, using using SDKMAN!. In order to build the Gradle project, I set the working directory...
William4650
1

votes
1

answer
40

Views

Bukkit - NPE using VaultAPI (Chat)

When trying to set the player suffix/prefix from the GUI I am getting a null pointer exception for setting the said prefix/suffix. (I get the 'You applied the x tag' message, and it does close the inventory.) Main class (Where the chat is defined and setup, not the entire class) public static Chat c...
Askingg
0

votes
1

answer
36

Views

How to create an instance of a integer variable?

So I have @Override public IBlockState getActualState(IBlockState state, IBlockAccess blockAccess, BlockPos pos) { TileEntity tileEntity = blockAccess.getTileEntity(pos); if(tileEntity instanceof TileEntityBlender) { TileEntityBlender te = (TileEntityBlender)tileEntity; } return state.withProperty...
UME F0R TH3 W1N
1

votes
2

answer
77

Views

Remap Java calls in JavaScript Nashorn

I am currently trying to make JavaScript support for the game 'Minecraft' using Nashorn. My goal is to give users the ability to create their own commands and features. For the most part it is working fine so far but the problem is that Minecraft's code is obfuscated when using it with Forge. For th...
Marco MC
1

votes
0

answer
148

Views

BungeeCord - Detected an authenticated player in offline mode

I've been trying for a few days how to detect if the account of a player is authenticated Mojang while he is in OfflineMode. Why do I want to do that? Currently, I have a basic management system that consists of checking if the player's nickname exists in the mojang database, if there is setOnlineMo...
William Aventin
1

votes
1

answer
130

Views

Java minecraft server cannot run/listen on IPv4 at a linux virtual server machine

There is a Linux centOS 6 system installed on a parallels virtual machine as a vServer with one public IPv4 address XX.XXX.XXX.XX I try to run a Java Minecraft Server on it but that does not work. I can't connect to the server with my IPv4 address at the specified port. If I run the command: java -...
ccputer
1

votes
1

answer
26

Views

Error by double to string and back in bukit 1.13

i want to let the player in bukkit minecraft 1.13 solve a equation for x, i wrote a generator and its working fine. But there are fractions possible as answers so i thought i could get the players answer, check if its a fraction, convert it to a double, back to a string and see if the fraction in de...
Dominik
1

votes
1

answer
43

Views

importing command arguments from another class

I have to been working on a plugin for a couple of days or so now and I'm not sure on how to do this. I have a command /punish which opens an inventory where moderators can mute, kick, ban or warn the player in arg[0]. once the command has opened the first inventory, I made a different class called...
Ben Parkes
1

votes
1

answer
105

Views

Minecraft Entity Registry failed on Server load

For the life of me, I can't figure out why this code works fine in the client based launcher, but as soon as you try to register the entities, the server cracked's the shits. Here is the code, I'm just lost now, I've also tried the other way of registering, but that did nothing as well. package com...
Jarrod Muddyman
1

votes
0

answer
37

Views

RandomAccessFile doesn't work with Minecraft Forge

I'm working at the moment on a Mod for Minecraft with a dedicated Gui system written in C++ and Qt5. I let my GUI and Minecraft communicate through a named pipe, but I have there a small problem. I can read and write with a simple Java and C++(Qt) program into the pipe. But when I create a new insta...
Panakotta00
1

votes
0

answer
47

Views

Change prices according to supply and demand

Currently, I am working on a project shop (minecraft) which consists of varying the prices of the store according to demand. For the purchase, if a lot of people buy, the price goes up and vice versa For sale, the more sales there are, the lower the selling price, and vice versa I have a list storin...
William Aventin
1

votes
0

answer
63

Views

Could not load minecraft plugin: NoClassDefFoundError

First of all I'm beginner and I'm not the author of the plugin I'm working on (also I don't speak English well). If I'm not specific enough, tell me. This plugin was running in the 1.12 version of minecraft properly. My goal is to update it for the 1.13 version. I've already fix all issues Gradle sh...
Gak_
1

votes
0

answer
12

Views

I want to give player blindness in mcp“mod coder pack”

I was making an MCP mod and now, I need to make player blind and I found a function: EntityLivingBase.addPotionEffect(); but I don't know wat should I put in the bracket
TTPS OU Ke
1

votes
1

answer
56

Views

Minecraft/Node - Writing to process.stdin and Child Process Also Receiving Input

I'm trying to write a terminal application that would allow me to start and stop a Minecraft server, write arguments through readline that would first be checked by the Node process and then, if determined by the script, sent to the Minecraft server for use instead. Running on Windows 10 with latest...
Daniel
1

votes
1

answer
40

Views

How to write to an other terminal with a running program in it in Python 2.7?

I am currently making a program in python to open minecraft servers. I've already done a window where you can choose a server in a list and launch it or make a backup. When you launch it, a new terminal open (with os.system('gnome-terminal...')) and the java program starts. Is there a way to send so...
Lord Baryhobal
1

votes
0

answer
47

Views

Get Random itens from a config and put it in a custom inventory (Bukkit)

Well, Hello, I'm new member here and here's my first post on a dev forum. I'm doing a quest plugin for minecraft. Let's go to my question, I've a config.yml file with a list of quests numbered from 0 to 5, each number is a type of quests. Example: Quest 0 type is Mine. Quest 1 type is Farm. Quest 2...
Darkness Hunter

View additional questions