这个需要拿到分页地址的url 然后拼装下里面的page。例如百度搜索的分页为
https:防吞//www.baidu.com/s?wd=input%20email&pn=30这里的分页控制是pn=30。下一页就是pn=40。以百度为例
<input type="text" id="pagenum"/> var page=document.document.getElementById('pagenum').valuewindow.location.href='url到pn='+page+'剩余的部分'
/*使用方法:攻击生物,头部即会自动瞄准目标
点击任意方块即取消瞄准
*/
vic = null
function useItem(x,y,z,i,b,s){
vic = null
}
function attackHook(player, victim){
vic = victim
}
function leaveGame(){
vic = null
}
function modTick(){
if(vic != null){
pfocus(Entity.getX(vic), Entity.getY(vic), Entity.getZ(vic))
}
}
//玩家的头部朝向传进的坐标
function pfocus(tx, ty, tz){
//获取玩家的实体id
ent = getPlayerEnt()
//先获取不科学的minecraft空间坐标轴中玩家的坐标(ps:Markus Persson是个数学渣)
px = getPlayerX()
py = getPlayerY()
pz = getPlayerZ()
//坐标轴平移
ax = (tx - px)
ay = (ty - py)
az = (tz - pz)
//转换成数学中的标准空间直角坐标系
mathX = az
mathY = -ax
mathZ = ay
yaw = Math.atan2(mathY, mathX) / Math.PI * 180
if(yaw <0){
yaw = 360 + yaw
}
xy = Math.sqrt((mathX * mathX) + (mathY * mathY))
pitch = -(Math.atan2(mathZ, xy) / Math.PI * 180)
setRot(ent, yaw, pitch)
}