Skip to main content

Questions tagged [minecraft]

Minecraft is a voxel-based sandbox game coded in Java by Mojang where players place and destroy blocks to gain armor, weapons and tools in a randomly generated world.

Filter by
Sorted by
Tagged with
4 votes
2 answers
267 views

Is it possible to make this Minecraft Bedrock addon script less resource intensive, so that it no longer triggers performance warnings?

Following the notice that block events will be removed in a future update, I have been implementing custom block mechanics (such as crop growth and groundcover spreading) using server-side scripts ...
Quack E. Duck's user avatar
4 votes
1 answer
94 views

How can I make my mini-game simpler and more efficient?

I've recently started to learn Python and the task was to create a "hot or cold" game. They gave me the basic structure for the code and so far so good. But the bonus objective is to find a ...
Spirit's user avatar
  • 43
4 votes
1 answer
361 views

2D Minecraft - infinite chunk system

I am making a 2d minecraft clone for a hobby. Here is my code: 2D_MC.py: ...
coder's user avatar
  • 179
0 votes
1 answer
603 views

Using a RegEx to create a UUID string

I'm writing a Discord bot that sometimes requires a Minecraft account UUID to be looked up so this is the function (and MWE) I have written to do this. ...
Jake's user avatar
  • 131
2 votes
0 answers
277 views

Minecraft Code That Gives Player God Like Abilities

Here's Some Context So I was messing around in Minecraft and decided to make some code that basically makes you god. While making the code and testing it I noticed there were some problems that I didn'...
Boneless Cheese Flame's user avatar
6 votes
1 answer
402 views

Base Class System for splitting a spigot command in subcommands

Related to this question: Spigot Plugin: Generic form of the plugin's main clas I've created a Clan-Plugin, in which I have one "main" command, which is simply ...
monamona's user avatar
  • 475
4 votes
2 answers
908 views

Find minecraft colour codes in string

I've written a simple util-method in my spigot plugin to check if a message contains a valid minecraft colour code. A valid minecraft colour code consists of a &...
monamona's user avatar
  • 475
4 votes
1 answer
382 views

Spigot Plugin: Generic form of the plugin's main class

I have created a lot of spigot plugins in my "career" as a developer for a bunch of Minecraft servers, but every time I start writing a new plugin, I basically "reinvent" the ...
monamona's user avatar
  • 475
2 votes
1 answer
251 views

SafeBlockPopulator to ensure neighboring chunks are generated before population

Bukkit/CraftBukkit/Spigot are Minecraft server extenders that allow for creating and using plugins. A particular type of plugin is a generator, which creates the game world. Generators operate chunk-...
Michael Brandon Morris's user avatar
2 votes
1 answer
107 views

Refactoring coordinates for Minecraft Pi buildings written in Python

I'm fairly new to coding and I wrote this script in Python for a house with a roof in Minecraft Pi. I've found different ways to write the coordinates to make the code base shorter, but I'm wondering ...
DysFunction's user avatar
16 votes
2 answers
2k views

Minecraft block generator

This script is a tool to help minecraft mod development. When you want to add a new block to the game you have to create three json files. This script generates three JSON files in specific locations. ...
Dalton's user avatar
  • 263
-2 votes
1 answer
339 views

Using Reflection to call multiple methods and cast various classes [closed]

I have written the following Reflection code: ...
Joehot200's user avatar
  • 107
1 vote
1 answer
123 views

Building a 64 × 64 particle accelerator frame in Minecraft with a computercraft turtle

I dont think this will work anywhere besides in minecraft with computercraft but it's all correct syntax. I just feel like it has some lines of code I could eliminated somehow and made it a cleaner ...
Donnie's user avatar
  • 13
1 vote
2 answers
873 views

Minecraft resource calculator

I'm writing a basic program that calculates the total base resources needed to craft items in Minecraft. It's intended to be modular for support for modded versions of Minecraft (new items or ...
Hobopowers's user avatar
6 votes
1 answer
625 views

Library for RCON clients

I wrote a library implementing the RCON protocol to automate interaction with Minecraft servers. I know that there are already a couple of implementations out there, but neither I found was convincing ...
Richard Neumann's user avatar
2 votes
0 answers
108 views

Purely functional minecraft-like mesh compiler

I'm creating a minecraft clone (for practice), in scala, using largely functional programming. When a chunk doesn't have a mesh loaded into VRAM, it create a Future for the vertex and index arrays, ...
Phoenix's user avatar
  • 267
4 votes
2 answers
164 views

Registering various kinds of blocks in Minecraft

After looking at a few tutorials on making minecraft mods i got as far as making my own blocks and the ModBlocks class to me looks awful and unruly especially when ...
user1383163's user avatar
3 votes
2 answers
246 views

Minecraft server querier that generates an image of online players

This little chunk of code is run every 10 seconds on my desktop. It generates a PNG with up to 6 player faces based on the list of online players. Is there any way for this code to execute faster? ...
user avatar
2 votes
1 answer
669 views

Using HikariCP and JDBC to store data for a Minecraft plugin

I'm creating a plugin for the game Minecraft, and with it I'm using HikariCP and MySQL to store data between server restarts. I've created working code but I'm wanting to improve it. While the code ...
Jerred Shepherd's user avatar
4 votes
1 answer
327 views

Vanisher plugin for Minecraft (Written with the Bukkit API)

Would this code for my Vanisher plugin for the game Minecraft, written with the Bukkit API, be optimised and conventionally right? VanishAPI: ...
Azoraqua's user avatar
2 votes
1 answer
173 views

Java MySQL handler for a Minecraft mod

I am studying computer science and recently I developed an application in Java (it is a minecraft mod) that connects a MySQL database and queries to fetch, update or insert data. My DatabaseHandler ...
Vpant's user avatar
  • 139
3 votes
1 answer
280 views

Bukkit API Town plugin for Minecraft

I'm creating a town plugin for the game Minecraft using the Bukkit API. It works fine and all, however I'm not satisfied with the quality of the code and I'd like to know how I can improve. I've been ...
Jerred Shepherd's user avatar
1 vote
1 answer
218 views

Documentation for a Minecraft server plugin

I'm working on a minecraft plugin for my Spigot Minecraft server. I have a class which works as expected. I've done my best to hammer every single bug out (famous last words, I know) and am now ...
Spotlight's user avatar
  • 175
3 votes
0 answers
709 views

Event-driven UDP listener wrapper

I wrote this wrapper around the UdpClient,using events for new datagrams: ...
beppe9000's user avatar
  • 191
6 votes
1 answer
274 views

Bukkit/Spigot plugin for Minecraft servers

I have created a Bukkit/Spigot plugin for Minecraft servers because I wanted to change the dynamic of mining to prevent people with really bright monitors or the Fullbright mod from being able to skip ...
IMcPwn's user avatar
  • 233
6 votes
2 answers
249 views

Efficiently return a ChatColor

I am working on a plugin for a Minecraft server. In it, I have a function that returns a ChatColor depending on what permission level you are. Whenever I need ...
Spotlight's user avatar
  • 175
4 votes
1 answer
85 views

Video frame to Minecraft map colors

I'm still somewhat new to C, so pardon me for any silly mistakes I've made. I'm trying to convert video frames into Minecraft map colors using JNI and ...
Cirno's user avatar
  • 43
7 votes
1 answer
3k views

Builder - A 2D Minecraft clone

I was poking around on my Raspberry Pi that I hadn't turned on or used in a while, and I stumbled upon this Python script that I wrote ~1.5 years ago, and I was intrigued. Essentially, it's a 2D ...
Ethan Bierlein's user avatar
2 votes
3 answers
171 views

Personal Minecraft Android app

This won't be released publicly, but that doesn't mean I want to have bad coding habits. I was not too far into this before realizing I could make it better. One of my main concerns is finding an ...
andyADD's user avatar
  • 181
6 votes
2 answers
183 views

Game object structure for Minecraft server

I'm trying to write a Minecraft server in Ruby as an educational project and I've hit the point now where I need to decide on how I am going to structure the in-game objects (entities). In my mind, an ...
user38435's user avatar
7 votes
1 answer
3k views

Minecraft query tools

This is my first major PHP project and I haven't gotten much feedback. I wanted to learn how to use PHP and I wanted to learn about Minecraft's status protocol, so I did what was obvious at the time. ...
Winny's user avatar
  • 283
3 votes
1 answer
290 views

Database schema for a Minecraft logging plugin

This is my attempt at creating a database schema for a Minecraft logging plugin. I'm by no means a SQL expert, so suggestions would be greatly appreciated. ...
Andy Shulman's user avatar
3 votes
2 answers
234 views

Meshing algorithm for generating faces in Minecraft

To generate faces of a Minecraft-like world from a three dimensional array, I developed the following meshing algorithm. The faces are given vertices and indices. A vertex consists of a position in ...
danijar's user avatar
  • 205
3 votes
1 answer
350 views

Minecraft auto-backup utility

I live in a country where an electricity blackout happens after every hour, which corrupts the Minecraft save files, so I came up with this auto backup utility which backs up the %appData%.minecraft\...
BUCKSHOT's user avatar
2 votes
1 answer
955 views

Plugin for finding placed blocks and if they are in a certain sequence

This is for a plugin I am making for the game called Minecraft. The code is responsible for finding out the blocks placed by the player and if they are in the following sequence as shown in the ...
Jonathan's user avatar
  • 123
4 votes
3 answers
950 views

Optimizing lighting algorithm for a voxel engine

I am creating a Minecraft-like terrain engine in XNA to learn HLSL and more XNA. The problem is my lighting algorithm. Whenever a block which emits light is placed, it takes about half a second to ...
Darestium's user avatar
  • 151