minecraft

Python - send login packet to Minecraft Server

邮差的信 提交于 2020-01-16 19:45:23
问题 Is there a way to send a login packet to minecraft server from python? Here is what i have right now: import socket client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) addr = ("localhost", 25565) client.connect(addr) client.sendall(chr(0x02)) client.sendall(chr(0xFD)) client.sendall(chr(0xCD)) # After sending this line server still don't kick me client.sendall(chr(0x06)+str(117)+str(70)+str(-46)) # And now server kicks me :-( client.sendall(chr(0x03)+str("Hello World")) print client

Custom Minecraft launcher

回眸只為那壹抹淺笑 提交于 2020-01-15 03:54:12
问题 I want to create my own Minecraft launcher where when the player checks Force Update it downloads a modified minecraft.jar, an updated lwjgl (both not a big problem) and 2 extra folders in your .minecraft directory. I can do the first 2 by changing the MinecraftDownload directory to one on my own website and putting the modified files on my site, but i don't exactly know how to make it download and extract an archive into the .minecraft directory (i guess i will use lzma because the libs for

Custom Minecraft launcher

我怕爱的太早我们不能终老 提交于 2020-01-15 03:54:05
问题 I want to create my own Minecraft launcher where when the player checks Force Update it downloads a modified minecraft.jar, an updated lwjgl (both not a big problem) and 2 extra folders in your .minecraft directory. I can do the first 2 by changing the MinecraftDownload directory to one on my own website and putting the modified files on my site, but i don't exactly know how to make it download and extract an archive into the .minecraft directory (i guess i will use lzma because the libs for

Launch Minecraft from the command line Python/C++

我的未来我决定 提交于 2020-01-11 10:29:07
问题 I have an issue where I am trying to use my previous knowledge of programming to write a Minecraft launcher. I have use of commands that are in the standard C++ libraries and any Python eggs that are not huge. I would prefer to use system("java ...") in order to launch Minecraft. The question in short: How do I launch Minecraft from the command line without any auxillary Java code? (Without using launcher code like net.minecraft.LauncherFrame ) Is it possible? I tried java -cp mine craft.jar

Syntax error: end of file unexpected (expecting “then”)

流过昼夜 提交于 2020-01-11 02:07:18
问题 I am making this code for a minecraft server plugin updater I am a new shell scripter so I don't know alot... when I run this code I get a error: #!/bin/sh export PATH=$PATH:. #Options PLUGINDOWNLOADLINK=http://api.bukget.org/3/plugins/bukkit/$PLUGINNAME/latest/download # Plugin folder if [ -f $PWD\plugins ]; then PLUG=$PWD\plugins else PLUG=$PWD\plug-ins fi cd $PLUG if [ ! -f .\update ]; then mkdir update echo Making Directory "update".. fi # Plugins Found for i in $( ls ); do PLUGINNAME=$i

Java if statement checking [closed]

烈酒焚心 提交于 2020-01-06 12:44:30
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I'm making a terrible 2D remake of Minecraft as a class project in java, and I have a crafting bench thing (or whatever it's called) and I have an if statement that checks if you have one piece of wood in the top left and nothing in the other 3, or if you have one piece of wood in the top right and

Java if statement checking [closed]

半腔热情 提交于 2020-01-06 12:44:23
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I'm making a terrible 2D remake of Minecraft as a class project in java, and I have a crafting bench thing (or whatever it's called) and I have an if statement that checks if you have one piece of wood in the top left and nothing in the other 3, or if you have one piece of wood in the top right and

Bukkit How to change an int in the config file then be able to change it again without reloading (Custom config file class.))

独自空忆成欢 提交于 2020-01-06 06:10:49
问题 Okay so I am making a custom feature for my OP-Prison server, one of the things that I need to do is get an integer from the players.yml file, check if it is >= one, if it is take away one, save it and then if it is still above one then they can repeat the action untill it's 0. The issue comes with the fact that I have to restart the server for the file to change, and even when I do, it will only go down by one integer at a time, before having to reload it again. GUI Creation code: Main main

Bukkit How to change an int in the config file then be able to change it again without reloading (Custom config file class.))

五迷三道 提交于 2020-01-06 06:10:02
问题 Okay so I am making a custom feature for my OP-Prison server, one of the things that I need to do is get an integer from the players.yml file, check if it is >= one, if it is take away one, save it and then if it is still above one then they can repeat the action untill it's 0. The issue comes with the fact that I have to restart the server for the file to change, and even when I do, it will only go down by one integer at a time, before having to reload it again. GUI Creation code: Main main

Bukkit plugin get locations from config.yml

浪尽此生 提交于 2020-01-05 05:45:28
问题 I'm trying to create plugin, that will check when someone open the chest if the chest's location doesn't match with any location in my config.yml. So I want to do something like this: ArratList<Location> list = new ArrayList(); foreach(get world, x, y, z from each key in section Locations in my config) { list.add(new Location(world, x, y, z)); foreach(Location l : list) { if(l == p.location... } } EDIT: Now I have this code: public class Listeners implements Listener { public Core plugin;