Cover image

python脚本在您的Minecraft Pi World,Raspberry Pi版本中产生一些暴民

3 years

Works with Finder

6

Github Watches

9

Github Forks

27

Github Stars

spawn_mobs_mcpi Awesome

Python script to spawn some mobs in your Minecraft Pi world. Animals and monsters... yeah everything's OK ! Impossible right ? Hum... well... just follow bellowing guidance then !

Table of Contents

  • [What you need](### What you need)
  • [How to install ](### How to install )
  • [How to use the script ](### How to use the script)
  • Ignore Whitespace

Read this in other languages: English, French, 日本語.

What you need

A Raspberry Pi :sparkles: with Raspbian installed. Minecraft Pi is installed by default.

How to install

We open a Terminal session to do it with command line

1 .In your Raspberry Pi, start a Terminal session.

We go in the folder we chose for the install (ex: desktop)

2 .type the following command

$ git clone https://github.com/Will-777/spawn_mobs_mcpi.git
$ cd ~

You should have a folder in your Raspberry Pi Pi desktop.

How to use the script

in your downloads, you should have a folder nammed "spawn_mobs_mcpi". Have a look inside and search "mcpi_mobs.py". Just Launch it with right click and "open"/"Python2 IDLE" You should have a window with the code. Then press F5 to launch it. I will try to provide some details on the next update...

Examples part

From Raspberry Pi

Be sure that your Minecraft Pi game is turned Off. This process is Offline.

  1. Select your world from the menu according its number example : from the menu, press "2" and enter.

  2. You have now the Python prompt. Give a name to your file first (e.g. myMCPI) by typing this command. myMCPI can be replaced by any name you want.

>>> myMCPI = mcpi_mobs_mgr()
  1. Add mobs by adding .addMob to your world, write the type and how many mobs you want.
>>> myMCPI.addMob("Sheep", 10)
>>> myMCPI.addMob("Chicken", 10)
>>> myMCPI.addMob("Skeleton", 10)
>>> myMCPI.addMob("Cow", 10)
>>> myMCPI.addMob("Creeper", 10)
>>> myMCPI.addMob("Spider", 10)
>>> myMCPI.addMob("Pig", 10)
>>> myMCPI.addMob("Zombie", 10)
>>> myMCPI.addMob("Zombie Pigman", 10)

x, y, z coordinate not implemented yet. Sorry. If you go around POS: 26.1 / 14.5 / -25.6 on your map you will find the Mobs you added.

4.1) check how many mobs will be inside your world.

 >>> myMCPI.Mobs_howMany()
 >>> myMCPI.Mobs_show_stats()
 >>> myMCPI.Mobs_list_display()

4.2) and if you are really curious, look Binary representation of entities.dat file.

>>> myMCPI.NBT_Header
>>> myMCPI.NBT_Body
  1. Save your change. You are done with the Python script.
>>> myMCPI.saveNewFile()
  1. Start Minecraft Pi game from the menu and select the world you changed.

  2. Please note that you cannot kill Mobs with weapons. You need to use dynamite. some Mobs like Skeletons will die (because of the sun ?) Mobs might hrt each others with arrows or their attacks. There is a way to turn your Minecraft Pi world as survival mode. There is a way to patch with Binary Patch your Minecraft Pi and unlock Craft and your own inventory. I didn't find the way to be able to kill Mobs in the game with "Steve's weapons". If you search by your own, you might be able to change steve's armor !^^

Additional info : Comment this line for windows tests only

>>> mcpi_world_path = 'C:\Users\username\myFile\Programming\Python\MCPI'

Things I need to do still..

  • Correct the bugs you will find.
  • add x, y, z for spawning Mobs
  • add function to change your Armor by what you want.
  • save poor skelets that are dieing too fast.
  • find why we cannot shoot mobs.
  • Your imagination and beyond ..!

and remember :

  • :chicken: Little Endian = 0A 00 00 00
  • :cow: Little Endian = 0B 00 00 00
  • :pig: Little Endian = 0C 00 00 00
  • :sheep: Little Endian = 0D 00 00 00
  • :zombie: Little Endian = 20 00 00 00
  • :creeper: Little Endian = 21 00 00 00
  • :skeleton: Little Endian = 22 00 00 00
  • :spider: Little Endian = 23 00 00 00
  • :zombie pigman: Little Endian = 24 00 00 00

Enjoy ! :+1:

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • appcypher
  • 很棒的MCP服务器 - 模型上下文协议服务器的策划列表

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • chongdashu
  • 使用模型上下文协议(MCP),启用Cursor,Windsurf和Claude Desktop等AI助手客户,以通过自然语言控制虚幻引擎。

    Reviews

    1 (1)
    Avatar
    user_dlkebQW2
    2025-04-18

    If you're looking to enhance your Minecraft Pi Edition experience, the 'spawn_mobs_mcpi' by Will-777 is a fantastic tool. It allows you to easily spawn various mobs into your game, making for endless fun and creativity. Installation is straightforward thanks to the comprehensive guide on the GitHub page. Highly recommended for any MCP enthusiast!