BukkitRunnable

from org.bukkit import Bukkit from org.bukkit import Location from org.bukkit.util import Vector from org.bukkit.entity import EntityType from org.bukkit.entity import Snowball from org.bukkit.entity import * from org.bukkit.projectiles import * from time import * from org.bukkit import Effect from mcapi_spigot import * from org.bukkit.event.block import BlockPlaceEvent from org.bukkit.scheduler import BukkitRunnable from java.lang import Math class JythonRun(BukkitRunnable): def […]

JyCraft

from org.bukkit import Bukkit from org.bukkit import Location from org.bukkit.util import Vector from org.bukkit.entity import EntityType from org.bukkit.entity import Snowball from org.bukkit.entity import * from org.bukkit.projectiles import * from time import * from org.bukkit import Effect from mcapi_spigot import * from org.bukkit.event.block import BlockPlaceEvent s = Bukkit.getServer() players=Bukkit.getOnlinePlayers() player=players[0] loc=player.getLocation() w=player.getLocation().getWorld() x1=int(loc.x) z1=int(loc.z) i=1 for […]

Jycraft 2017 Lectia 1

from org.bukkit import Bukkit from org.bukkit import Location from org.bukkit.util import Vector from org.bukkit.entity import EntityType from org.bukkit.entity import Snowball from org.bukkit.entity import * from org.bukkit.projectiles import * from time import * from org.bukkit import Effect from mcapi_spigot import * from org.bukkit.event.block import BlockPlaceEvent s = Bukkit.getServer() players=Bukkit.getOnlinePlayers() player=players[0] loc=player.getLocation() w=player.getLocation().getWorld() def build(e): pos=e.getBlockPlaced().getLocation() for […]

Sinus

import mcpi.minecraft as minecraft import mcpi.minecraftstuff as minecraftstuff import mcpi.block as block import math as math mc = minecraft.Minecraft.create() mcdrawing = minecraftstuff.MinecraftDrawing(mc) precy=4 for z in range(1000,1100): y=int(math.sin(z/4)*10)+14 mcdrawing.drawLine(1000,precy,z-1,1000, y,z,1) precy=y print y import mcpi.minecraft as minecraft import mcpi.minecraftstuff as minecraftstuff import mcpi.block as block import math as math mc = minecraft.Minecraft.create() mcdrawing = minecraftstuff.MinecraftDrawing(mc) […]

Functii

Fisier Python (trebuie pus in folderul sitas) import mcpi.minecraft as minecraft import mcpi.minecraftstuff as minecraftstuff import mcpi.block as block mc = minecraft.Minecraft.create() mcdrawing = minecraftstuff.MinecraftDrawing(mc) def tunel(): for x in range(75,105,2): mc.setBlock(x,4,-543,70) mc.setBlock(x,4,-544,55) mc.setBlock(x,4,-542,55) for x in range (75,105): mc.setBlock(x,4,-545,123) mc.setBlock(x,4,-541,123) mc.setBlock(x,5,-545,123) mc.setBlock(x,5,-541,123) mc.setBlock(x,6,-542,123) mc.setBlock(x,6,-544,123) mc.setBlock(x,7,-543,123) def tunel1(z): for x in range(75,105,2): mc.setBlock(x,4,z,70) mc.setBlock(x,4,z-1,55) mc.setBlock(x,4,z+1,55) […]